- Create Namespace
kubectl create namespace mysql-server
- Create Persistent storage PVC
kubectl apply -f pvc.yml
- Create the configuration
kubectl create configmap mysql-config --from-file=main-config=my-custom.cnf -n mysql-server
- Create Deployment
kubectl apply -f .
You can check if everything is okay by running
kubectl get svc -n mysql-server