Skip to content

Instantly share code, notes, and snippets.

@jkremser
Last active April 13, 2023 10:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkremser/8ec12c94e4ff2fc8aa0ee0754363a035 to your computer and use it in GitHub Desktop.
Save jkremser/8ec12c94e4ff2fc8aa0ee0754363a035 to your computer and use it in GitHub Desktop.
kubecon-booth-demo.md
export CLUSTER=hello-kubecon

Provision Cluster

cat vsphere/cluster-list.yaml | envsubst | k apply -f -
clusterctl describe cluster $CLUSTER -n org-giantswarm
k get machine -A
watch "kubectl get machine -A -o jsonpath='{range .items[*]}{.metadata.name} is {.status.phase}{\"\n\"}{end}'"

https://vcenter-rhr3c72bx1.ionoscloud.tools/ui/

takes ~2.5 mins

clusterctl get kubeconfig $CLUSTER -n org-giantswarm > $CLUSTER.kc
k --kubeconfig $CLUSTER.kc get no

In case CNI is not up and running:

expand
helm install cilium cilium/cilium \
    --version 1.11.2 \
    --namespace kube-system \
    --set ipam.mode=kubernetes

Scale

k edit cm -n org-giantswarm $CLUSTER-user-values

adding node is less than minute or gitops way for MC in MCF repo

LB

k apply -f vsphere/addons/nginx-deployment.yaml
k expose deployment nginx-deployment --port=80 --type=LoadBalancer

or podinfo

helm upgrade -i frontend --set ui.message="hello GiantSwarm" podinfo/podinfo --version 5.1.1
k expose service frontend-podinfo --port=80 --target-port=9898 --type=LoadBalancer --name podinfo-external

Destroy Cluster

k delete app -n org-giantswarm $CLUSTER $CLUSTER-default-apps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment