Lumen help
The VMware Tanzu Application Catalog enables you to select pre-packaged and continually maintained and tested software application components for use in production environments.
The Service Description describes how VMware Tanzu Application Catalog handles common vulnerabilities and exposures (CVEs), timeframes, etc.
Use the following commands to deploy MYSQL using 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
Explore Edge Computing Solutions
© 2024 Lumen Technologies. All Rights Reserved. Lumen is a registered trademark in the United States, EU and certain other countries.