Deploying CloudBees Core on VMware Cloud PKS

Dan Illson
Oct 8, 2018 · 7 min read

Cluster Creation and Preparation

Figure 1. The ‘Downloads’ tab of the Developer Center page.
vke account login -t <organization-id> -r <refresh-token>
Figure 2. The VMware Cloud PKS Developer Center. The org-id has been redacted, and the ‘Get Your Refresh Token’ link has been highlighted
Figure 3. An example of the API Tokens view linked to from the highlighted link in Figure 2. Information about the token has been redacted in this image.
vke cluster create --name <cluster name> --region <region> --privilegedMode
vke cluster auth setup <cluster name>

Helm Configuration

helm init
kubectl get pods -n kube-system -w

Installing CloudBees Core

helm package ./CloudBeesCore
kubectl create namespace cloudbees
kubectl create namespace ingress-nginx
kubectl create clusterrolebinding nginx-ingress-cluster-rule --clusterrole=cluster-admin --serviceaccount=ingress-nginx:nginx-ingress
helm install --namespace ingress-nginx --name nginx-ingress stable/nginx-ingress --version 0.23.0 --set rbac.create=true --set controller.service.externalTrafficPolicy=Local --set controller.scope.enabled=true --set controller.scope.namespace=cloudbees
kubectl describe service nginx-ingress-controller -n ingress-nginx
helm install cloudbeescore --set cjocHost=<lb-ingress-hostname> --namespace cloudbees
kubectl rollout status sts cjoc --namespace cloudbeesWait for output of this type (ID after 'cjoc-' will change):
statefulset rolling update complete 1 pods at revision cjoc-59cc694b8b...
kubectl exec cjoc-0 cat /var/jenkins_home/secrets/initialAdminPassword --namespace cloudbees


Dan Illson

Written by

Native Cloud Advocate @ VMware Cloud Services between attempts at eating my way across San Francisco

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade