Install WordPress in Kubernetes

To install WordPress in Kubernetes, you need to install helm package manager.

Now run

helm install stable/wordpress

After the helm chart is run, you will get commands to get login for WordPress admin area.

Advertisement

Here is services it create

boby@sok-01:~$ kubectl get service
NAME                             TYPE           CLUSTER-IP      EXTERNAL-IP    PORT(S)                      AGE
kubernetes                       ClusterIP      10.39.240.1              443/TCP                      34m
whopping-labradoodle-mariadb     ClusterIP      10.39.248.140            3306/TCP                     2m
whopping-labradoodle-wordpress   LoadBalancer   10.39.253.160   35.193.33.14   80:32054/TCP,443:30939/TCP   2m
boby@sok-01:~$

List of all pods

boby@sok-01:~$ kubectl get pod
NAME                                             READY   STATUS      RESTARTS   AGE
ubuntu                                           0/1     Completed   0          21m
whopping-labradoodle-mariadb-0                   1/1     Running     0          3m
whopping-labradoodle-wordpress-8bddb5fdf-2l24d   1/1     Running     0          3m
boby@sok-01:~$

Deployments

boby@sok-01:~$ kubectl get deployment
NAME                             DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
whopping-labradoodle-wordpress   1         1         1            1           4m
boby@sok-01:~$

To scale the deployment, run

boby@sok-01:~$ kubectl scale deployment/whopping-labradoodle-wordpress --replicas=2
deployment.extensions/whopping-labradoodle-wordpress scaled
boby@sok-01:~$
Add a comment

Leave a Reply

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

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Advertisement