|
@@ -0,0 +1,35 @@
|
|
|
+#
|
|
|
+
|
|
|
+Following directions from https://www.jenkins.io/doc/book/installing/kubernetes/
|
|
|
+
|
|
|
+```
|
|
|
+git clone https://github.com/scriptcamp/kubernetes-jenkins
|
|
|
+cp kubernetes-jenkins/serviceAccount.yaml ./1.serviceAccount.yaml
|
|
|
+vim 1.serviceAccount.yaml
|
|
|
+# Changed namespace to 'default'
|
|
|
+
|
|
|
+kubectl apply -f 1.serviceAccount.yaml
|
|
|
+
|
|
|
+
|
|
|
+cp kubernetes-jenkins/volume.yaml ./2.volume.yaml
|
|
|
+vim 2.volume.yaml
|
|
|
+# More or less changed the whole thing
|
|
|
+
|
|
|
+mkdir /mnt/kubernetes/volumes/static/jenkins-pv-volume
|
|
|
+kubectl apply -f 2.volume.yaml
|
|
|
+
|
|
|
+cp kubernetes-jenkins/deployment.yaml ./3.deployment.yaml
|
|
|
+vim 3.deployment.yaml
|
|
|
+# Change namespace to default
|
|
|
+
|
|
|
+kubectl apply -f 3.deployment.yaml
|
|
|
+# check on status
|
|
|
+
|
|
|
+cp kubernetes-jenkins/service.yaml ./4.service.yaml
|
|
|
+vim 4.service.yaml
|
|
|
+# Change namespace
|
|
|
+# disable NodePort (both lines)
|
|
|
+# Add the Ingress section
|
|
|
+
|
|
|
+### ... much debugging later
|
|
|
+```
|