- kubectl (installation guide is here)
- helm (installation guide is here)
kubectl will be automatically configured to your created cluster
You can check your demo-cluster status with next command
kubectl get nodes
- Clone this git repository
git clone https://github.com/DataScientest/helm-wordpress.git
- 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
- 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
Defined in values.yaml
Name | Default Value | Difinition |
---|---|---|
namespace |
wordpress |
Kubernetes namespace |
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 |
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 |
- Execute the next command to get the list of helm releases
helm list
- Execute the next command to uninstall helm release by RELEASE_NAME
helm uninstall wordpress-mysql
Copyright (c) 2023 Datascientest