This topic describes how to deploy a WordPress application in a Container Service for Kubernetes (ACK) cluster by using the Helm CLI.
Prerequisites
- An ACK cluster is created. For more information, see Create an ACK managed cluster.
- Your machine is connected to the cluster by using kubectl. For more information, see Use kubectl to connect to an ACK cluster.
Install and set up Alibaba Cloud CLI and kubectl
- Install Helm. You can install Helm in the following ways:
- Use the source code or a binary package to install Helm. For more information, see Installing Helm.
- Run the following script to install Helm:
curl -sSL https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
- Use a package manager to install Helm.
- Install Helm in macOS. For more information, see Homebrew. After the package manager is installed, run the following command to install Helm:
brew install helm
- Install Helm in Windows. For more information, see Chocolatey. After the package manager is installed, run the following command to install Helm:
choco install kubernetes-helm
- Install Helm in macOS. For more information, see Homebrew. After the package manager is installed, run the following command to install Helm:
- Create a Helm repository.
- Run the following command to create a stable repository:
helm repo add stable https://kubernetes-charts.storage.googleapis.com/
- Run the following command to search for the stable repository.
helm search repo stable
- Run the following command to create a stable repository:
- Install and set up a kubectl client. For more information, see Install and Set Up kubectl.
Deploy WordPress
Access the WordPress application
Delete the WordPress application
Run the following command to delete the WordPress application:
helm delete wordpress
release "wordpress" uninstalled