Skip to content

Deploy Wordpress on Kuberenetes: Deployment, Configmap, Secret, Service

License

Notifications You must be signed in to change notification settings

akashsemil/wordpress-on-kubernetes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

wordpress-on-kubernetes

Deploy Wordpress on Kubernetes using Deployment, Configmap, Secret, Service.

Working

Deployment Object consist of template for three containers nginx, WordPress with php-fpm and mariadb.With ConfigMaps we are able to store nginx configuration file, With Secrets we are able to store sensitive information like database credentials, With Service client are able to connect and at last using host volume to store persistent data.

Tested on minikube

Make sure to enable following addons on minikube

$ minikube start
$ minikube addons add ingress
$ minikube addons add metrics-server

You can check whether the above addons are enabled or not.

$ minikube addons list

Usage

Deploy Application

$ kubectl apply -f https://raw.githubusercontent.com/akashsemil/wordpress-on-kubernetes/main/wordpress-example.yaml

Access the wordpress

Use the EXTERNAL-IP assigned to the service

$ kubectl get svc -l app=wordpress-example

If EXTERNAL-IP status is "pending" make sure to run following and check again

$ minikube tunnel

Delete Application

$ kubectl delete -f https://raw.githubusercontent.com/akashsemil/wordpress-on-kubernetes/main/wordpress-example.yaml

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

Deploy Wordpress on Kuberenetes: Deployment, Configmap, Secret, Service

Resources

License

Stars

Watchers

Forks