Skip to content

Latest commit

 

History

History

mysql-deployment-single-instance

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

MySQL deployment

Run a single-instance stateful MYSQL application

Deploy

# Navigate to this hands-on
cd hands-on/mysql-deployment-single-instance

# Deploy
kubectl apply -f mysql_deployment.yaml

Verify

# Deployment inspecting
kubectl describe deployment mysql
# Pods checking
kubectl get pods -l app=mysql
# PVC
kubectl describe pvc mysql-pv-claim

Access to the pod

kubectl run -it --rm --image=mysql:5.6 --restart=Never mysql-client -- mysql -h mysql -ppassword

Cleanup

kubectl delete -f mysql_deployment.yaml