Skip to content

Latest commit

 

History

History
92 lines (72 loc) · 2.3 KB

bump-to-v0.21.0.md

File metadata and controls

92 lines (72 loc) · 2.3 KB

Bump to CFCF 0.21.0

Login to Bastion server.

./ssh-bastion.sh 

Load BOSH environment variables.

cd cfcr-manifests
source bosh-aws-env.sh

Fetch v0.21.0 manifests.

cd kubo-deployment
git fetch origin --tag
git checkout v0.21.0
cd ..

Update stemcells for CFCR v0.21.0.

STEMCELL_VERSION=97.15 # latest as of writing
bosh upload-stemcell https://bosh.io/d/stemcells/bosh-aws-xen-hvm-ubuntu-xenial-go_agent?v=${STEMCELL_VERSION}

Create a ops-file for CFCR v0.21.0.

cat <<EOF > ops-files/kubernetes-kubo-0.21.0.yml
- type: replace
  path: /releases/name=kubo?
  value:
    name: kubo
    version: 0.21.0
    url: https://bosh.io/d/github.com/cloudfoundry-incubator/kubo-release?v=0.21.0
    sha1: 24d6f17865dbf0e68cef4495c6d5bdcb46b4a132
EOF

Update deploy-kubernetes.sh. Note that manifests/ops-files/use-coredns.yml is included to enable CoreDNS instead of KubeDNS

cat <<'EOF' > deploy-kubernetes.sh
#!/bin/bash
bosh deploy -d cfcr kubo-deployment/manifests/cfcr.yml \
    -o kubo-deployment/manifests/ops-files/misc/single-master.yml \
    -o kubo-deployment/manifests/ops-files/addons-spec.yml \
    -o kubo-deployment/manifests/ops-files/iaas/aws/lb.yml \
    -o kubo-deployment/manifests/ops-files/iaas/aws/cloud-provider.yml \
    -o kubo-deployment/manifests/ops-files/use-coredns.yml \
    -o ops-files/kubernetes-kubo-0.21.0.yml \
    -o ops-files/kubernetes-worker.yml \
    -o ops-files/kubernetes-master-lb.yml \
    --var-file addons-spec=<(for f in `ls specs/*.yml`;do cat $f;echo;echo "---";done) \
    -v kubernetes_cluster_tag=${kubernetes_cluster_tag} \
    -v kubernetes_master_host=${master_lb_ip_address} \
    --no-redact
EOF
chmod +x deploy-kubernetes.sh

Deploy CFCR 0.21.0.

./deploy-kubernetes.sh

Update addons.

bosh -d cfcr run-errand apply-addons

You will get a k8s 1.11.2 cluster!

$ kubectl get node -o wide
NAME                                          STATUS    ROLES     AGE       VERSION   EXTERNAL-IP   OS-IMAGE      KERNEL-VERSION       CONTAINER-RUNTIME   CONTAINER-RUNTIME
ip-10-0-8-6.ap-northeast-1.compute.internal   Ready     <none>    1h        v1.11.2   10.0.8.6      <none>        Ubuntu 16.04.5 LTS   4.15.0-33-generic   docker://17.12.1-ce

Run smoke tests

bosh -d cfcr run-errand smoke-tests