
$ open Whatever way you prefer, you need the initial admin password for Jenkins and/or you may need to see logs. $ kubectl describe service jenkins-service -namespace qa-namespace | grep NodePort $ kubectl get service jenkins-service -namespace qa-namespace $ kubectl get services -namespace qa-namespace $ kubectl expose pod -namespace=qa-namespace -type=NodePort -name jenkins-service This possibility is recommended only for local environments! For example on AWS you use load-balancer and there the way is a little bit different. $ open The 2nd way is to expose a service. $ kubectl port-forward 8080:8080 -namespace=qa-namespace # create port-forward to specific namespace Probably the easiest option to do that is a simple port-forward. Jenkins is already running but you cannot access Jenkins without one important step! You need to configure the network routing. $ kubectl describe pod -namespace qa-namespace $ kubectl get pods -namespace qa-namespace $ kubectl create -f ~/Projects/KubernetesJenkins/namespace.yml Let’s go – start Jenkins container on Kubernetes # show nodes (optional) $ mkdir -p ~/Projects/KubernetesJenkins & cd ~/Projects/KubernetesJenkins For example, this tutorial uses 2 YAML files. That’s may confusing for advanced peoples or experts but it should help beginner to get in that topic. I will try to describe with very basic steps the tutorial. If you haven’t Kubernetes running yet, feel free to have a look on my previous tutorial. Now we will deploy Jenkins-Docker on local Kubernetes. Steffen Lorenz diagnostic tool, Grafana, Heapster, InfluxDB, Kubernetes, Mac OS X, macOS Running Jenkins on Kubernetes (Docker for Mac) $ kubectl describe services monitoring-grafana -namespace kube-system # show details of monitoring-grafana (NodePort) That’s it already – our monitoring is enabled! Let’s take a look at everything. K8s-app: grafana # create resources from files

… But leave the rest of the content as is. # edit heapster.ymlĪttention: The respective sections Services have to be adapted!

$ kubectl -n kube-system describe secret deployment-controller-token-s4xdgĭownload all 3 files from GitHub kubernetes/Heapster into your project. After download we need to modify a little bit and create deployment + service. $ kubectl -n kube-system get secret | grep deployment-controller-tokenĭeployment-controller-token-s4xdg kubernetes.io/service-account-token 3 17d $ kubectl port-forward kubernetes-dashboard-5bd6f767c7-f9w4j 8443:8443 -namespace=kube-system Kube-system kubernetes-dashboard-5bd6f767c7-f9w4j 1/1 Running 1 17d Installed and running Docker for Mac ( edge).The whole thing we now realize super fast via Heapster, InfluxDB and Grafana. There is a very easy way to pimp the Kubernetes WebUI with monitoring output.
