Colt help

Getting started with Tanzu Application Catalog

                # Install:
helm install db tac/mysql --version 6.14.7 --set db.user=<REPLACE WITH YOUR db USERNAME> --set db.password=<REPLACE WITH YOUR db PASSWORD> --set root.password=<REPLACE WITH YOUR root PASSWORD> --set db.name=testdb -n <REPLACE WITH YOUR NAMEPSPACE NAME>
 
# Create PSP for TKGs cluster:
kubectl create clusterrolebinding default-tkg-admin-privileged-binding --clusterrole=psp:vmware-system-privileged --group=system:authenticated
 
# Update PVC to use default Storage class created by TKGs:
kubectl describe pvc data-db-mysql-master-0 -n <REPLACE WITH YOUR NAMEPSPACE NAME>
kubectl get pvc data-db-mysql-master-0 -n <REPLACE WITH YOUR NAMEPSPACE NAME> -o yaml > data-db-mysql-master-0-pvc.yaml
vim data-db-mysql-master-0-pvc.yaml
kubectl delete pvc data-db-mysql-master-0 -n <REPLACE WITH YOUR NAMEPSPACE NAME>
kubectl get pvc -n <REPLACE WITH YOUR NAMEPSPACE NAME>
kubectl create -f data-db-mysql-master-0-pvc.yaml
 
kubectl get pvc data-db-mysql-slave-0 -n <REPLACE WITH YOUR NAMEPSPACE NAME> -o yaml > data-db-mysql-slave-0-pvc.yaml
kubectl delete pvc data-db-mysql-slave-0 -n <REPLACE WITH YOUR NAMEPSPACE NAME>
vim data-db-mysql-slave-0-pvc.yaml
kubectl create -f data-db-mysql-slave-0-pvc.yaml -n <REPLACE WITH YOUR NAMEPSPACE NAME>
kubectl get pvc -n <REPLACE WITH YOUR NAMEPSPACE NAME>
 
# Test:
``$(kubectl get secret --namespace <REPLACE WITH YOUR NAMEPSPACE NAME> db-mysql -o jsonpath="{.data.mysql-root-password}" | base64 --decode)
kubectl run db-mysql-client --rm --tty -i --restart='Never' --image  gcr.io/sys-2b0109it/demo/bitnami/mysql:8.0.22-centos-7-r0 --namespace <REPLACE WITH YOUR NAMEPSPACE NAME> --command -- bash