Deploying CloudBees Core on VMware Cloud PKS

Cluster Creation and Preparation

  • kubectl
  • helm
  • VKE command line package
Figure 1. The ‘Downloads’ tab of the Developer Center page.
  • Deployment type: Choose ‘Development Cluster’ to minimize spend
  • Region: Select one from the available list
  • Privileged Mode: Check this box as it will be required to perform container image builds within the cluster
  • Name: Assign the cluster a descriptive name for your reference
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

Conclusion

--

--

--

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

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

5 Reasons Why You Should Use Microsoft Dapr to Build Event-driven Microservices

Innovation isn’t hard, conflict is

S.O.L.I.D Principles | JavaScript | Version Controlling | NoSQL

Consider management former recognize.

RMI (Remote Method Invocation)

How we migrated our Drupal 8 sites to use Composer (in 8 steps)

Google forms (Front end customization) with data stored in Google Spreadsheets

What is EWM in SAP? Kit to Order without VAS in EWM ?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Dan Illson

Dan Illson

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

More from Medium

Deploying a Swift API on Google Cloud Run with Google Cloud Build

Google Container Registry (GCR): Logging into a private registry from GKE, GCE, Docker

Setting up Digital Ocean DNS Records for Github Pages using Terraform

ArgoCD + Minikube + Ngrok + Github Webhook