Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 582 Bytes

File metadata and controls

36 lines (26 loc) · 582 Bytes

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