DataScientest / helm-wordpress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kubernetes WordPress + MySQL helm chart

Dependencies

kubectl will be automatically configured to your created cluster

You can check your demo-cluster status with next command

kubectl get nodes

Usage

  1. Clone this git repository
git clone https://github.com/DataScientest/helm-wordpress.git
  1. Execute next commands from repository directory

check that all templates are valid

cd helm-wordpress
helm template .

install chart

helm install wordpress-mysql . --values=values.yaml
  1. Check your WordPress service NodePort with next command (may take some time)
kubectl get service -n wordpress

By-default namespace that used in the chart called wordpress. If you changed it, make sure you define the proper namespace in kubectl get command.

Now you can check this IP address with web-browser

Helm Variables

Defined in values.yaml

Name Default Value Difinition
namespace wordpress Kubernetes namespace

wordpress:

Name Default Value Difinition
deployment.image wordpress:4.8-apache Docker image for Wordpress
deployment.replicaCount 1 Number of Pods to run
service.type NodePort Kubernetes Service type
service.port 80 Publishing port

mysql:

Name Default Value Difinition
deployment.image mysql:5.6 Docker image for MySQL
deployment.replicaCount 1 Number of Pods to run
service.type ClusterIP Kubernetes Service type
service.port 3306 Publishing port
pvc.accessMode ReadWriteOnce PVC Access mode
pvc.storage 2Gi PVC Storage size

Uninstall

  1. Execute the next command to get the list of helm releases
helm list
  1. Execute the next command to uninstall helm release by RELEASE_NAME
helm uninstall wordpress-mysql

License

MIT License

Copyright (c) 2023 Datascientest

About

License:MIT License


Languages

Language:Mustache 100.0%