Get startedSign in

Use Kustomize to inflate a Helm chart

Learn how to deploy WordPress using Kustomize to inflate Helm charts, combining the power of Helm for packaging and Kustomize for customization

Overview

In this guide, you'll learn how to deploy WordPress on your Kubernetes cluster using Plural with Kustomize to inflate Helm charts. This approach combines the power of Helm for packaging applications with Kustomize for customization, giving you more flexibility in managing your deployments. You'll see how to use Liquid templates to generate secrets and configuration values, making your deployments more secure and maintainable.

Prerequisites

Before you begin, make sure to cover prerequisites and setup.

Step-by-Step Guide: Deploying WordPress with Kustomize and Helm

Let's walk through deploying WordPress using Kustomize to inflate Helm charts. Feel free to adjust provided file examples according to your needs and commit them to your configured Git repository.

Step 1: Create a GeneratedSecret resource

First, we'll create a GeneratedSecret resource to generate secure credentials for our WordPress deployment.

apps/examples/kustomize-inflate-helm/generatedsecret.yaml.liquid
yaml
apiVersion: deployments.plural.sh/v1alpha1
kind: GeneratedSecret
metadata:
  name: plrl-04-wordpress-config
  namespace: examples
spec:
  destinations:
    - name: plrl-04-wordpress-config
      namespace: examples
  template:
    dbUser: admin
    dbPassword: '{{ "{{ 32 | randAlphaNum " }}}}'
    dbRootPassword: '{{ "{{ 32 | randAlphaNum " }}}}'
    dbReplicationPassword: '{{ "{{ 32 | randAlphaNum " }}}}'
    dbName: 'bitnami_wordpress'
    dbSecret: 'wordpress-mariadb'
    wordpressSecret: 'wordpress'
    wordpressPassword: '{{ "{{ 32 | randAlphaNum " }}}}'