Skip to content
Snippets Groups Projects
Commit cb117dc4 authored by Arie Peterson's avatar Arie Peterson
Browse files

Merge branch 'master' into 85-reduce-overhead-of-cronjobs

parents b3b4d324 043d0815
No related branches found
No related tags found
1 merge request!37Resolve "Reduce overhead of cronjobs"
## Unreleased
* Update mariadb chart to 9.6.0
NOTE: the mariadb chart does not provide backwards compatibility in this
case, so manual action is required if you want to upgrade an existing
wordpress-helm release to this new version: either by migrating database data
from the old release to the new one, or by using the `existingClaim`
parameter(s) to reuse the existing persistent volumes. For details, see
[mariadb chart upgrade notes](
https://artifacthub.io/packages/helm/bitnami/mariadb/9.6.0#to-8-0-0)
## [0.2.2] - 2021-09-22
* Remove duplicate key `checksum/config` from template
## [0.2.1] - 2021-09-16
* Allow setting custom labels on pods and statefulset
## [0.2.0] - 2021-05-25 ## [0.2.0] - 2021-05-25
* Update Chart to apiVersion 2, move requirements to Chart.yaml * Update Chart to apiVersion 2, move requirements to Chart.yaml
......
...@@ -5,11 +5,11 @@ description: WordPress with a replicated MariaDB backend ...@@ -5,11 +5,11 @@ description: WordPress with a replicated MariaDB backend
name: wordpress name: wordpress
# Please only change the chart version as part of the release procedure: see # Please only change the chart version as part of the release procedure: see
# RELEASING.md # RELEASING.md
version: 0.2.0 version: 0.2.2
icon: https://make.wordpress.org/design/files/2016/09/WordPress-logotype-wmark.png icon: https://make.wordpress.org/design/files/2016/09/WordPress-logotype-wmark.png
dependencies: dependencies:
- name: mariadb - name: mariadb
version: 7.3.16 version: 9.6.0
repository: "https://charts.bitnami.com/bitnami" repository: "https://charts.bitnami.com/bitnami"
tags: tags:
- mysql - mysql
......
...@@ -38,10 +38,10 @@ For a simple WordPress installation, you only need to edit the following values: ...@@ -38,10 +38,10 @@ For a simple WordPress installation, you only need to edit the following values:
| `ansibleVars.WP_TITLE` | The title of the site | Demo WP | | `ansibleVars.WP_TITLE` | The title of the site | Demo WP |
| `ansibleVars.WP_THEME_ACTIVE` | A *slug* for the theme you want to install on your site (can also be changed through interface) | twentytwenty | | `ansibleVars.WP_THEME_ACTIVE` | A *slug* for the theme you want to install on your site (can also be changed through interface) | twentytwenty |
| `ansibleVars.WP_EMAIL` | The administrator's email adress | youremailhere@example.com | | `ansibleVars.WP_EMAIL` | The administrator's email adress | youremailhere@example.com |
| `database.db.user` | Database user | wordpress | | `database.auth.username` | Database user | wordpress |
| `database.db.password` | `wordpress` db user password | You **really** need to set this | | `database.auth.password` | `wordpress` db user password | You **really** need to set this |
| `database.db.rootUser.password ` | root user password | You **really** need to set this | | `database.auth.rootPassword ` | root user password | You **really** need to set this |
| `database.db.replicationUser.password`| replication user password | You **really** need to set this | | `database.auth.replicationPassword` | replication user password | You **really** need to set this |
You can read the descriptions of the other variables in You can read the descriptions of the other variables in
`values-local.yaml.example` and of even more variables in `values.yaml`. `values-local.yaml.example` and of even more variables in `values.yaml`.
......
...@@ -6,6 +6,9 @@ metadata: ...@@ -6,6 +6,9 @@ metadata:
labels: labels:
app: {{ include "wordpress.name" . }} app: {{ include "wordpress.name" . }}
release: {{ .Release.Name }} release: {{ .Release.Name }}
{{- if .Values.statefulSetLabels }}
{{- toYaml .Values.statefulSetLabels | nindent 4 }}
{{- end }}
spec: spec:
selector: selector:
matchLabels: matchLabels:
...@@ -18,11 +21,13 @@ spec: ...@@ -18,11 +21,13 @@ spec:
labels: labels:
app: {{ include "wordpress.name" . }} app: {{ include "wordpress.name" . }}
release: {{ .Release.Name }} release: {{ .Release.Name }}
{{- if .Values.podLabels }}
{{- toYaml .Values.podLabels | nindent 8 }}
{{- end }}
annotations: annotations:
# Reload the pod when values-local.yaml changes, so the ansible playbook # Reload the pod when values-local.yaml changes, so the ansible playbook
# gets re-run. # gets re-run.
checksum/config: {{ include (print $.Template.BasePath "/ansible-vars.yaml") . | sha256sum }} checksum/config: {{ printf "%s%s" (include (print $.Template.BasePath "/ansible-vars.yaml") .) (include (print $.Template.BasePath "/secrets.yaml") .) | sha256sum }}
checksum/config: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
{{- if .Values.podAnnotations }} {{- if .Values.podAnnotations }}
{{- toYaml .Values.podAnnotations | nindent 8 }} {{- toYaml .Values.podAnnotations | nindent 8 }}
{{- end }} {{- end }}
...@@ -52,20 +57,6 @@ spec: ...@@ -52,20 +57,6 @@ spec:
subPath: main.yml subPath: main.yml
- name: ansible-secrets - name: ansible-secrets
mountPath: /var/local/ansible/secrets mountPath: /var/local/ansible/secrets
env:
- name: WORDPRESS_DB_HOST
value: {{ .Release.Name }}-database
- name: WORDPRESS_DB_USER
value: {{ .Values.database.db.user }}
- name: WORDPRESS_DB_PASSWORD
valueFrom:
secretKeyRef:
name: {{ .Release.Name }}-database
key: mariadb-password
- name: WORDPRESS_DB_NAME
value: {{ .Values.database.db.name }}
- name: WORDPRESS_TABLE_PREFIX
value: {{ .Values.wordPressTablePrefix }}
containers: containers:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
...@@ -97,21 +88,6 @@ spec: ...@@ -97,21 +88,6 @@ spec:
successThreshold: {{ .Values.readinessProbe.successThreshold }} successThreshold: {{ .Values.readinessProbe.successThreshold }}
failureThreshold: {{ .Values.readinessProbe.failureThreshold }} failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
{{- end }} {{- end }}
env:
- name: WORDPRESS_DB_HOST
value: {{ .Release.Name }}-database
- name: WORDPRESS_DB_USER
value: {{ .Values.database.db.user }}
- name: WORDPRESS_DB_PASSWORD
valueFrom:
secretKeyRef:
name: {{ .Release.Name }}-database
key: mariadb-password
- name: WORDPRESS_DB_NAME
value: {{ .Values.database.db.name }}
- name: WORDPRESS_TABLE_PREFIX
value: {{ .Values.wordPressTablePrefix }}
# readinessProbe: # readinessProbe:
# httpGet: # httpGet:
# path: / # path: /
...@@ -144,20 +120,6 @@ spec: ...@@ -144,20 +120,6 @@ spec:
securityContext: securityContext:
runAsNonRoot: false runAsNonRoot: false
runAsUser: 0 runAsUser: 0
env:
- name: WORDPRESS_DB_HOST
value: {{ .Release.Name }}-database
- name: WORDPRESS_DB_USER
value: {{ .Values.database.db.user }}
- name: WORDPRESS_DB_PASSWORD
valueFrom:
secretKeyRef:
name: {{ .Release.Name }}-database
key: mariadb-password
- name: WORDPRESS_DB_NAME
value: {{ .Values.database.db.name }}
- name: WORDPRESS_TABLE_PREFIX
value: {{ .Values.wordPressTablePrefix }}
volumeMounts: volumeMounts:
- name: {{ include "wordpress.name" . }}-wp-storage - name: {{ include "wordpress.name" . }}-wp-storage
mountPath: /var/www/html mountPath: /var/www/html
......
...@@ -118,13 +118,11 @@ openid_connect_settings: ...@@ -118,13 +118,11 @@ openid_connect_settings:
role_key: roles role_key: roles
database: database:
db: auth:
user: wordpress username: wordpress
password: <SET A DATABASE PASSWORD> password: <SET A DATABASE PASSWORD>
rootUser: rootPassword: <SET A DB ROOT USER PASSWORD FOR UPGRADES TO WORK>
password: <SET A DB ROOT USER PASSWORD FOR UPGRADES TO WORK> replicationPassword: <SET A REPLICATION USER PASSWORD IF YOU HAVE REPLICATION ENABLED>
replication:
password: <SET A REPLICATION USER PASSWORD IF YOU HAVE REPLICATION ENABLED>
# Set this to true to have a Redis container next to your WP. The WP will be # Set this to true to have a Redis container next to your WP. The WP will be
# configured to connect to this Redis and `Redis Object Cache` plugin will be # configured to connect to this Redis and `Redis Object Cache` plugin will be
...@@ -221,3 +219,12 @@ redis: ...@@ -221,3 +219,12 @@ redis:
# service: # service:
# type: NodePort # type: NodePort
# port: 12345 # port: 12345
# Labels that will be added to pods created by the wordpress StatefulSet.
# podLabels:
# key: value
# something: else
# Labels that will be added to the wordpress StatefulSet itself.
# statefulSetLabels:
# someCustom: labelValue
...@@ -220,13 +220,13 @@ ansibleVars: ...@@ -220,13 +220,13 @@ ansibleVars:
image: image:
repository: open.greenhost.net:4567/openappstack/wordpress-helm/wordpress repository: open.greenhost.net:4567/openappstack/wordpress-helm/wordpress
tag: 0.2.0 tag: 0.2.2
pullPolicy: Always pullPolicy: Always
pullSecrets: [] pullSecrets: []
initImage: initImage:
repository: open.greenhost.net:4567/openappstack/wordpress-helm/wordpress-cli-ansible repository: open.greenhost.net:4567/openappstack/wordpress-helm/wordpress-cli-ansible
tag: 0.2.0 tag: 0.2.2
pullPolicy: Always pullPolicy: Always
ingress: ingress:
...@@ -243,14 +243,14 @@ nodeSelector: {} ...@@ -243,14 +243,14 @@ nodeSelector: {}
tolerations: [] tolerations: []
affinity: {} affinity: {}
database: database:
db: auth:
user: wordpress username: wordpress
password: CHANGE-THIS-PASSWORD password: CHANGE-THIS-PASSWORD
name: wordpress_db database: wordpress_db
replication: architecture: replication
enabled: true primary:
master:
persistence: persistence:
size: 4Gi size: 4Gi
config: |- config: |-
...@@ -274,7 +274,7 @@ database: ...@@ -274,7 +274,7 @@ database:
[manager] [manager]
port=3306 port=3306
socket=/opt/bitnami/mariadb/tmp/mysql.sock socket=/opt/bitnami/mariadb/tmp/mysql.sock
slave: secondary:
persistence: persistence:
size: 4Gi size: 4Gi
config: |- config: |-
...@@ -298,6 +298,7 @@ database: ...@@ -298,6 +298,7 @@ database:
[manager] [manager]
port=3306 port=3306
socket=/opt/bitnami/mariadb/tmp/mysql.sock socket=/opt/bitnami/mariadb/tmp/mysql.sock
redis: redis:
# Set redis.enabled to true to have a Redis container next to your WP. The WP will be # Set redis.enabled to true to have a Redis container next to your WP. The WP will be
# configured to connect to this Redis and `Redis Object Cache` plugin will be # configured to connect to this Redis and `Redis Object Cache` plugin will be
...@@ -330,11 +331,11 @@ ansibleSecrets: | ...@@ -330,11 +331,11 @@ ansibleSecrets: |
BACKUP_NAME: {{ .Release.Name }} BACKUP_NAME: {{ .Release.Name }}
BACKUP_TARGET: {{ .Values.backup.target }} BACKUP_TARGET: {{ .Values.backup.target }}
BACKUP_ISDATE: {{ .Values.backup.isDate }} BACKUP_ISDATE: {{ .Values.backup.isDate }}
DB_HOST: {{ .Release.Name }}-database DB_HOST: {{ .Release.Name }}-database-primary
DB_NAME: {{ .Values.database.db.name }} DB_NAME: {{ .Values.database.auth.database }}
DB_PASS: {{ .Values.database.db.password }} DB_PASS: {{ .Values.database.auth.password }}
DB_PREFIX: {{ .Values.wordpress.config.db.prefix}} DB_PREFIX: {{ .Values.wordpress.config.db.prefix}}
DB_USER: {{ .Values.database.db.user }} DB_USER: {{ .Values.database.auth.username }}
LANGUAGES: {{ .Values.wordpress.site.languages }} LANGUAGES: {{ .Values.wordpress.site.languages }}
DEFAULT_LANG: {{ .Values.wordpress.site.default_language }} DEFAULT_LANG: {{ .Values.wordpress.site.default_language }}
WP_CONTENT_MOUNT: {{ .Values.wordpress.wp_content.mount_path }} WP_CONTENT_MOUNT: {{ .Values.wordpress.wp_content.mount_path }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment