1) Create cluster 1 control/3 worker best-effort-med/best-effort large (2 CPU/8 GB RAM)/(4 CPU/16 GB RAM)
2) Enable Cluster (button => FluxCD will be installed on cluster)
3) Clusters -> {cluster name} -> Add-ons -> Git Repositories -> Add Git Repository -> Name= gohjcicd, URL = https://github.com/explicitworkload/cicd.git, Branch = main
4) Continuous Delivery -> Kustomizations -> application1 -> Path = /application1/pre-req, Prune = On
kubectl get kustomizations -A
kubectl get kustomizations.kustomize.toolkit.fluxcd.io -A
NAMESPACE NAME AGE READY STATUS
tanzu-continuousdelivery-resources application1 43h True Applied revision: main/7d54a879444ebebb29eb09c4cb9f1a8e95f15498
tanzu-continuousdelivery-resources tanzu-app 70m True Applied revision: main/7d54a879444ebebb29eb09c4cb9f1a8e95f15498
tanzu-continuousdelivery-resources tanzu-auth 70m True Applied revision: main/7d54a879444ebebb29eb09c4cb9f1a8e95f15498
tanzu-continuousdelivery-resources tanzu-namespace 70m True Applied revision: main/7d54a879444ebebb29eb09c4cb9f1a8e95f15498
kubectl get svc -n gohjns
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
nginx LoadBalancer 10.96.61.129 192.168.2.104 80:30931/TCP 18m
kubectl get deployments -n gohjns
NAME READY UP-TO-DATE AVAILABLE AGE
nginx 4/4 4 4 18m
kubectl get pods -n gohjns
NAME READY STATUS RESTARTS AGE
nginx-54f4568dfc-f5vcf 1/1 Running 0 18m
nginx-54f4568dfc-kxr2g 1/1 Running 0 18m
nginx-54f4568dfc-lgclv 1/1 Running 0 18m
nginx-54f4568dfc-lhfw4 1/1 Running 0 18m
This is how http-echo is sent on each mini-webserver, and later direct to the next.
POD flow: weather -> sun -> rain -> yes
On Cluster 1
4) Continuous Delivery -> Kustomizations -> cluster1 -> Path = /application1/tsm/clusters/cluster1, Prune = On
On Cluster 2
5) Continuous Delivery -> Kustomizations -> cluster2 -> Path = /application1/tsm/clusters/cluster2, Prune = On
- Scaling replicas in Gitup appberlin (sun) and appparis (rain) results see pictures below
kubectl get virtualservices -A
NAMESPACE NAME GATEWAYS HOSTS AGE
tsmsingapore rainsnow ["acme-gateway"] ["*"] 6m28s
tsmpaloalto rainsnow ["acme-gateway"] ["*"] 6m27s
kubectl get gw -A
NAMESPACE NAME AGE
tsmsingapore acme-gateway 9m14s
tsmpaloalto acme-gateway 9m13s
curl `kubectl get svc -A | grep ingressgateway | awk '{ print $5 }' | head -1`/weatherpaloalto
curl `kubectl get svc -A | grep ingressgateway | awk '{ print $5 }' | head -1`/weathersingapore
watch -n 1 -d 'http duckbank.de/weathersingapore; http paloalto.duckbank.de/weatherpaloalto'




