This quick guide will show you how to deploy the Wordpress application on a Kubernetes cluster using the Banzai CLI tool. We presume you already have Banzai CLI tool installed and logged in to an instance of Banzai Cloud Pipeline, and have an available cluster.

First list your clusters and select the cluster where you’d like to deploy the Wordpress application to:

banzai cluster list

Next, we will use the shell function of banzai CLI which opens a new shell session, which hase an environment with the kubeconfig of your selected cluster:

banzai cluster shell

The command will ask you to select a cluster, which can be specified by the --cluster=cluster-name option as well.

After that, a new session of your default shell will launch. In this session, you can use kubectl and helm against your cluster. These are installed by Banzai CLI automatically and appended to the path.

Helm is the de-facto package manager for Kubernetes, which helps you manage Kubernetes applications. You can install, upgrade, list, or delete applications. For more information about helm check this post.

Update the Helm repository:

helm repo update

Install the Wordpress chart using the helm client:

helm install --name my-wordpress stable/wordpress --set wordpressUsername=banzai --set wordpressPassword=banzai

Alternatively instead of starting a banzai shell session you can just run helm install directly in the context of a cluster:

banzai shell -- helm install --name my-wordpress stable/wordpress --set wordpressUsername=banzai --set wordpressPassword=banzai

Expected output: The login credentials for the installed Wordpress instance are displayed

Login with the following credentials to see your blog
echo Username: banzai
echo Password: $(kubectl get secret --namespace default my-wordpress -o jsonpath="{.data.wordpress-password}" | base64 --decode)

Now you can open the Wordpress service in a browser window by running the following command:

open http://$(kubectl get svc  my-wordpress -o jsonpath='{.status.loadBalancer.ingress[0].hostname}')

Next steps

Once you have deployed workload, try out the cluster features of Banzai Cloud Pipeline, or dive into the details of deployments.