Tag: Helm

  • 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.

    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:~$ 
    

    See Helm Kubernetes Package Manager, Kubernetes

  • Helm Kubernetes Package Manager

    Helm is Package Manager for Kubernetes. Helm packages are called “Charts”. Charts allow you to deploy various software on Kubernetes cluster.

    https://helm.sh/

    To install helm, run

    curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get > get_helm.sh
    bash get_helm.sh
    

    If you are on Ubuntu, you can install from snap

    snap install helm --classic
    

    To update helm repos, run

    helm repo update
    

    To deploy MySQL chart to Kubernetes, run

    helm install stable/mysql
    

    Install WordPress in Kubernetes
    Deploy MySQL Server in Kubernetes using Helm

    See Kubernetes