Run a single-instance stateful MYSQL application
# Navigate to this hands-on
cd hands-on/mysql-deployment-single-instance
# Deploy
kubectl apply -f mysql_deployment.yaml
# Deployment inspecting
kubectl describe deployment mysql
# Pods checking
kubectl get pods -l app=mysql
# PVC
kubectl describe pvc mysql-pv-claim
kubectl run -it --rm --image=mysql:5.6 --restart=Never mysql-client -- mysql -h mysql -ppassword
kubectl delete -f mysql_deployment.yaml