wordpress

by joaquinito2051

Helm chartv15.2.13App 6.1.0

WordPress is the world's most popular blogging and content management platform. Powerful yet simple, everyone from students to global corporations use it to build beautiful, functional websites.

About this chart

WordPress packaged by Bitnami

WordPress is the world's most popular blogging and content management platform. Powerful yet simple, everyone from students to global corporations use it to build beautiful, functional websites.

Overview of WordPress

Azure-ready Charts with Containers from marketplace.azurecr.io

This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.

$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo

TL;DR

$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/wordpress

Introduction

This chart bootstraps a WordPress deployment on a Kubernetes cluster using the Helm package manager.

It also packages the Bitnami MariaDB chart which is required for bootstrapping a MariaDB deployment for the database requirements of the WordPress application, and the Bitnami Memcached chart that can be used to cache database queries.

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.2.0+
  • PV provisioner support in the underlying infrastructure
  • ReadWriteMany volumes for deployment scaling

Installing the Chart

To install the chart with the release name my-release:

helm install my-release my-repo/wordpress

The command deploys WordPress on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Parameters

Global parameters

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""

Common parameters

NameDescriptionValue
kubeVersionOverride Kubernetes version""
nameOverrideString to partially override common.names.fullname template (will maintain the release name)""
fullnameOverrideString to fully override common.names.fullname template""
commonLabelsLabels to add to all deployed resources{}
commonAnnotationsAnnotations to add to all deployed resources{}
clusterDomainKubernetes Cluster Domaincluster.local
extraDeployArray of extra objects to deploy with the release[]
diagnosticMode.enabledEnable diagnostic mode (all probes will be disabled and the command will be overridden)false
diagnosticMode.commandCommand to override all containers in the deployment["sleep"]
diagnosticMode.argsArgs to override all containers in the deployment["infinity"]

WordPress Image parameters

NameDescriptionValue
image.registryWordPress image registrydocker.io
image.repositoryWordPress image repositorybitnami/wordpress
image.tagWordPress image tag (immutable tags are recommended)6.1.0-debian-11-r5
image.digestWordPress image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag""
image.pullPolicyWordPress image pull policyIfNotPresent
image.pullSecretsWordPress image pull secrets[]
image.debugSpecify if debug values should be setfalse

WordPress Configuration parameters

NameDescriptionValue
wordpressUsernameWordPress usernameuser
wordpressPasswordWordPress user password""
existingSecretName of existing secret containing WordPress credentials""
wordpressEmailWordPress user email[email protected]
wordpressFirstNameWordPress user first nameFirstName
wordpressLastNameWordPress user last nameLastName
wordpressBlogNameBlog nameUser's Blog!
wordpressTablePrefixPrefix to use for WordPress database tableswp_
wordpressSchemeScheme to use to generate WordPress URLshttp
wordpressSkipInstallSkip wizard installationfalse
wordpressExtraConfigContentAdd extra content to the default wp-config.php file""
wordpressConfigurationThe content for your custom wp-config.php file (advanced feature)""
existingWordPressConfigurationSecretThe name of an existing secret with your custom wp-config.php file (advanced feature)""
wordpressConfigureCacheEnable W3 Total Cache plugin and configure cache settingsfalse
wordpressPluginsArray of plugins to install and activate. Can be specified as all or none.none
apacheConfigurationThe content for your custom httpd.conf file (advanced feature)""
existingApacheConfigurationConfigMapThe name of an existing secret with your custom httpd.conf file (advanced feature)""
customPostInitScriptsCustom post-init.d user scripts{}
smtpHostSMTP server host""
smtpPortSMTP server port""
smtpUserSMTP username""
smtpPasswordSMTP user password""
smtpProtocolSMTP protocol""
smtpExistingSecretThe name of an existing secret with SMTP credentials""
allowEmptyPasswordAllow the container to be started with blank passwordstrue
allowOverrideNoneConfigure Apache to prohibit overriding directives with htaccess filesfalse
overrideDatabaseSettingsAllow overriding the database settings persisted in wp-config.phpfalse
htaccessPersistenceEnabledPersist custom changes on htaccess filesfalse
customHTAccessCMThe name of an existing ConfigMap with custom htaccess rules""
commandOverride default container command (useful when using custom images)[]
argsOverride default container args (useful when using custom images)[]
extraEnvVarsArray with extra environment variables to add to the WordPress container[]
extraEnvVarsCMName of existing ConfigMap containing extra env vars""
extraEnvVarsSecretName of existing Secret containing extra env vars""

WordPress Multisite Configuration parameters

NameDescriptionValue
multisite.enableWhether to enable WordPress Multisite configuration.false
multisite.hostWordPress Multisite hostname/address. This value is mandatory when enabling Multisite mode.""
multisite.networkTypeWordPress Multisite network type to enable. Allowed values: subfolder, subdirectory or subdomain.subdomain
multisite.enableNipIoRedirectWhether to enable IP address redirection to nip.io wildcard DNS. Useful when running on an IP address with subdomain network type.false

WordPress deployment parameters

NameDescriptionValue
replicaCountNumber of WordPress replicas to deploy1
updateStrategy.typeWordPress deployment strategy typeRollingUpdate
updateStrategy.rollingUpdateWordPress deployment rolling update configuration parameters{}
schedulerNameAlternate scheduler""
topologySpreadConstraintsTopology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a te

Deploy wordpress with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has wordpress on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartwordpress is pinned at v15.2.13 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply