Simple Kubernetes WordPress Deployment

Load the config file

export KUBECONFIG=/<path>/<kubectl-config.cfg>

Verify nodes

kubectl get nodes

Download yaml packages for WordPress


Set secret for DB access

kubectl create secret generic mysql-pass --from-literal=password=<password>

Create deployment from downloaded yaml

kubectl create -f mysql-deployment.yaml
kubectl create -f wordpress-deployment.yaml

Verify port binding

get services wordpress

Connect with browser


You May Also Like

About the Author: devmin

systems architect with interest in automation, k8s, linux, devops, bash, real estate, anonymity

Leave a Reply

Your email address will not be published. Required fields are marked *