Skip to content

CloudCredo/kubernetes-release

Repository files navigation

kubernetes-release

Deploy Kubernetes easily with this BOSH release.

Kubernetes on your laptop

  • Install BOSH Lite and boot the Vagrant VM.
  • Deploy Kubernetes:
$ bosh upload stemcell https://s3.amazonaws.com/bosh-jenkins-artifacts/bosh-stemcell/warden/bosh-stemcell-389-warden-boshlite-ubuntu-trusty-go_agent.tgz
$ git clone https://github.com/cloudcredo/kubernetes-release
$ cd kubernetes-release
$ bosh upload release releases/kubernetes/kubernetes-4.yml
$ ./generate_deployment_manifest warden $(bosh status --uuid) > manifest.yml
$ bosh deployment manifest.yml
$ bosh -n deploy

Enabling DNS

The release includes an errand to deploy the DNS add-on to Kubernetes:

$ bosh run errand create-kubernetes-dns

Running the Guestbook example

The release includes an errand to deploy the GuestBook example.

$ bosh run errand guestbook-example

Pipeline

The CI pipeline for this release is implemented using Concourse.

k8s pipeline

Edit the provided vars.yml and then run the following commands against your deployed Concourse:

$ fly -t k8s-ci login -c https://concourse.example.com
$ fly -t k8s-ci set-pipeline -p kubernetes -c pipeline.yml -l vars.yml
$ fly -t k8s-ci unpause-pipeline -p kubernetes

Thanks

Thanks to Brian Ketelsen and CF Platform Engineering.