WordPress Helm chart
A minimal installation of the latest version of the Wordpress Helm chart
This example lives in the pulumi/examples repository. Check out just this directory to use it:
git clone --filter=blob:none --sparse https://github.com/pulumi/examples pulumi-examplesgit -C pulumi-examples sparse-checkout set kubernetes-ts-helm-wordpresscd pulumi-examples/kubernetes-ts-helm-wordpressUses the Helm API of @pulumi/kubernetes to deploy v9.6.0 of the WordPress Helm chart to a
Kubernetes cluster. Pulumi will expand the Helm chart and submit the expanded YAML to the cluster.

Prerequisites#
Deploying the example#
-
Create a new stack:
Terminal window pulumi stack init dev -
Install dependencies:
Terminal window npm install -
Deploy the stack:
Terminal window pulumi upUpdating (ts-helm-wordpress)Type Name Status+ pulumi:pulumi:Stack wordpress-ts-helm-wordpress created+ └─ kubernetes:helm.sh:Chart wpdev created+ ├─ kubernetes:core:Secret default/wpdev-mariadb created+ ├─ kubernetes:core:Secret wpdev-wordpress created+ ├─ kubernetes:core:PersistentVolumeClaim wpdev-wordpress created+ ├─ kubernetes:core:Service wpdev-wordpress created+ ├─ kubernetes:core:ConfigMap default/wpdev-mariadb created+ ├─ kubernetes:core:Service default/wpdev-mariadb created+ ├─ kubernetes:apps:StatefulSet default/wpdev-mariadb created+ └─ kubernetes:apps:Deployment wpdev-wordpress createdOutputs:wordpressIP: "35.193.210.254"Resources:+ 10 createdDuration: 53s -
We can see in the
Outputs:section that WordPress was allocated a public IP, in this case35.193.210.254. It is exported with a stack output variable,wordpressIP. Usecurlandgrepto retrieve the<title>of the site the proxy points at:Terminal window curl -sL $(pulumi stack output wordpressIP):80 | grep "<title>"<title>User's Blog! – Just another WordPress site</title>You can also navigate to the site in a web browser.
Cleaning up#
Once you’re finished experimenting, you can destroy your stack and remove it to avoid incurring any additional cost:
pulumi destroypulumi stack rm