install ingress-nginx for k8s kind cluster
* to allow exposing the voltha-api and etcd endpoints from within the
k8s (kind) cluster, we need to install an ingress controller
* install the ingress-nginx controller specifically patched for kind
installations as documented here:
https://kind.sigs.k8s.io/docs/user/ingress/#ingress-nginx
* use the same helm release branch for ingress-nginx manifest as done
for hardware clusters (upgrade is currently only possible when also
upgrading the k8s version itself to match endpoint api versions of
k8s itself)
* ingress-nginx / k8s version compatibility matrix for reference:
https://github.com/kubernetes/ingress-nginx#supported-versions-table
-> helm version 4.2.5 is the latest release supporting our currently
used kubernetes versions 1.20.15 on hardware and 1.21.1 on VMs via
kind)
Add extra change in jjb/ to trigger jenkins
Signed-off-by: Jan Klare <jan.klare@bisdn.de>
Change-Id: I7a77ceedfe137a1c73f0af0de447670a3ca27578
diff --git a/jjb/pipeline/voltha/physical-build.groovy b/jjb/pipeline/voltha/physical-build.groovy
index 9dfb588..17d48b3 100755
--- a/jjb/pipeline/voltha/physical-build.groovy
+++ b/jjb/pipeline/voltha/physical-build.groovy
@@ -16,7 +16,6 @@
// NOTE we are importing the library even if it's global so that it's
// easier to change the keywords during a replay
-
library identifier: 'cord-jenkins-libraries@master',
retriever: modernSCM([
$class: 'GitSCMSource',
diff --git a/vars/createKubernetesCluster.groovy b/vars/createKubernetesCluster.groovy
index 399532a..9229d69 100644
--- a/vars/createKubernetesCluster.groovy
+++ b/vars/createKubernetesCluster.groovy
@@ -121,6 +121,9 @@
for MNODE in \$(kubectl get node --selector='node-role.kubernetes.io/master' -o json | jq -r '.items[].metadata.name'); do
kubectl taint node "\$MNODE" node-role.kubernetes.io/master:NoSchedule-
done
+ # install ingress-nginx to allow usage of ingress to expose voltha
+ # endpoints (etcd and voltha-api)
+ kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/helm-chart-4.2.5/deploy/static/provider/kind/deploy.yaml
""")
sh(label : 'Normalize config permissions',