From 464f2ba7b9c5737babfe6a7c2d6013795157ef66 Mon Sep 17 00:00:00 2001 From: Brutus5000 Date: Sun, 14 Apr 2024 23:26:23 +0200 Subject: [PATCH] Add wordpress --- apps/wordpress/Chart.yaml | 7 +++++++ apps/wordpress/templates/ingress.yaml | 13 +++++++++++++ apps/wordpress/templates/secret.yaml | 18 ++++++++++++++++++ apps/wordpress/values.yaml | 12 ++++++++++++ 4 files changed, 50 insertions(+) create mode 100644 apps/wordpress/Chart.yaml create mode 100644 apps/wordpress/templates/ingress.yaml create mode 100644 apps/wordpress/templates/secret.yaml create mode 100644 apps/wordpress/values.yaml diff --git a/apps/wordpress/Chart.yaml b/apps/wordpress/Chart.yaml new file mode 100644 index 0000000..765e16d --- /dev/null +++ b/apps/wordpress/Chart.yaml @@ -0,0 +1,7 @@ +apiVersion: v2 +name: wordpress +version: 1.0.0 +dependencies: + - name: wordpress + version: 22.1.7 + repository: https://charts.bitnami.com/bitnami diff --git a/apps/wordpress/templates/ingress.yaml b/apps/wordpress/templates/ingress.yaml new file mode 100644 index 0000000..55d976a --- /dev/null +++ b/apps/wordpress/templates/ingress.yaml @@ -0,0 +1,13 @@ +apiVersion: traefik.io/v1alpha1 +kind: IngressRoute +metadata: + name: wordpress +spec: + entryPoints: + - websecure + routes: + - match: Host(`direct.{{.Values.baseDomain}}`) || Host(`{{.Values.baseDomain}}`) || Host(`clans.{{.Values.baseDomain}}`) + kind: Rule + services: + - name: wordpress + port: 80 diff --git a/apps/wordpress/templates/secret.yaml b/apps/wordpress/templates/secret.yaml new file mode 100644 index 0000000..7d2c6ea --- /dev/null +++ b/apps/wordpress/templates/secret.yaml @@ -0,0 +1,18 @@ +apiVersion: secrets.infisical.com/v1alpha1 +kind: InfisicalSecret +metadata: + name: wordpress + namespace: faf-apps +spec: + authentication: + serviceToken: + serviceTokenSecretReference: + secretName: infisical-service-token + secretNamespace: faf-apps + secretsScope: + envSlug: {{.Values.infisicalSlug}} + secretsPath: "/wordpress" + managedSecretReference: + secretName: wordpress + secretNamespace: faf-apps + creationPolicy: "Owner" diff --git a/apps/wordpress/values.yaml b/apps/wordpress/values.yaml new file mode 100644 index 0000000..027e921 --- /dev/null +++ b/apps/wordpress/values.yaml @@ -0,0 +1,12 @@ +wordpress: + wordpressSkipInstall: true + wordpressEmail: admin@faforever.com + mariadb: + enabled: false + externalDatabase: + host: mariadb + port: 3306 + user: faf-wordpress + database: fafwordpress + existingSecret: wordpress + wordpressPlugins: all