Overview 🔗︎

As an example, this guide shows you how to deploy the WordPress application on a Kubernetes cluster using the Banzai CLI tool.

Prerequisites 🔗︎

To complete this procedure, you must already have:

Deploying WordPress 🔗︎

  1. List your clusters to select the cluster where you’d like to deploy the WordPress application:

    banzai cluster list
  2. Use the shell function of banzai CLI to open a new shell session with the kubeconfig environment of your selected cluster:

    banzai cluster shell

    The command will ask you to select a cluster. Alternatively, you can use the --cluster=cluster-name option of the banzai cluster command to select the cluster.

  3. A new session of your default shell opens. In this session, you can use the kubectl and helm commands on your cluster. (The Banzai CLI automatically installs these tools and adds them 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. Read our blog for more information about Helm post.

  4. Update the Helm repository:

    helm repo update
  5. Install the WordPress chart using the helm client. Depending on the type of cluster you have installed the evaluation version of your Banzai Cloud Pipeline platform, the command you have to use differs.

    Expected output: The login credentials for the installed WordPress instance are displayed, for example:

    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)
  6. Open the WordPress service in a browser window by running the following command (as displayed in the Helm output).

Next steps 🔗︎

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