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.

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

Now you can open up Wordpress service in a browser window running the command below:

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.