Updated: Hello World in K8s using Nutanix Karbon
Getting started with Karbon and K8s in general can seem like a daunting task. I wanted to create a simple “Hello World” website in K8s. This is meant for people…
Read more »Simple Kubernetes WordPress Deployment
Load the config file
1 |
export KUBECONFIG=/<path>/<kubectl-config.cfg> |
Verify nodes
1 |
kubectl get nodes |
Download yaml packages for WordPress
1 2 |
wget https://kubernetes.io/examples/application/wordpress/mysql-deployment.yaml wget https://kubernetes.io/examples/application/wordpress/wordpress-deployment.yaml |
Set secret for DB access
1 |
kubectl create secret generic mysql-pass --from-literal=password=<password> |
Create deployment from downloaded yaml
1 2 |
kubectl create -f mysql-deployment.yaml kubectl create -f wordpress-deployment.yaml |
Verify port binding
1 |
get services wordpress |
…
Read more »