diff --git a/hydrator.metadata b/hydrator.metadata new file mode 100755 index 0000000..45be5df --- /dev/null +++ b/hydrator.metadata @@ -0,0 +1,5 @@ +{ + "commands": null, + "repoURL": "https://github.com/agaudreault/gitops-tests", + "drySha": "ca2ff0b38fae3dd02444d3615651129f1e394aba" +} \ No newline at end of file diff --git a/prod-east/README.md b/prod-east/README.md new file mode 100644 index 0000000..81b87f6 --- /dev/null +++ b/prod-east/README.md @@ -0,0 +1,13 @@ + +# Manifest Hydration + +To hydrate the manifests in this repository, run the following commands: + +```shell + +git clone https://github.com/agaudreault/gitops-tests +# cd into the cloned directory +git checkout ca2ff0b38fae3dd02444d3615651129f1e394aba +helm dependency build +helm template . --name-template simple-app-east --namespace production-2 --values /tmp/_argocd-repo/dbb92269-9c18-47ad-b229-ae14b41dd16e/services/simple-application/values.yaml --values /tmp/_argocd-repo/dbb92269-9c18-47ad-b229-ae14b41dd16e/services/simple-application/prod/values.yaml --include-crds +``` \ No newline at end of file diff --git a/prod-east/hydrator.metadata b/prod-east/hydrator.metadata new file mode 100755 index 0000000..cfeb03e --- /dev/null +++ b/prod-east/hydrator.metadata @@ -0,0 +1,8 @@ +{ + "commands": [ + "helm dependency build", + "helm template . --name-template simple-app-east --namespace production-2 --values /tmp/_argocd-repo/dbb92269-9c18-47ad-b229-ae14b41dd16e/services/simple-application/values.yaml --values /tmp/_argocd-repo/dbb92269-9c18-47ad-b229-ae14b41dd16e/services/simple-application/prod/values.yaml --include-crds" + ], + "repoURL": "https://github.com/agaudreault/gitops-tests", + "drySha": "ca2ff0b38fae3dd02444d3615651129f1e394aba" +} \ No newline at end of file diff --git a/prod-east/manifest.yaml b/prod-east/manifest.yaml new file mode 100755 index 0000000..4d77750 --- /dev/null +++ b/prod-east/manifest.yaml @@ -0,0 +1,478 @@ +apiVersion: v1 +automountServiceAccountToken: false +kind: ServiceAccount +metadata: + annotations: + argocd.argoproj.io/tracking-id: prod-east:/ServiceAccount:production-2/simple-app-east-mariadb + labels: + app.kubernetes.io/instance: prod-east + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: mariadb + helm.sh/chart: mariadb-13.0.1 + name: simple-app-east-mariadb + namespace: production-2 + +--- + +apiVersion: v1 +data: + mariadb-password: MXBYVU52U0pkRQ== + mariadb-root-password: RjV3dmNuR1h0UA== +kind: Secret +metadata: + annotations: + argocd.argoproj.io/tracking-id: prod-east:/Secret:production-2/simple-app-east-mariadb + labels: + app.kubernetes.io/instance: prod-east + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: mariadb + helm.sh/chart: mariadb-13.0.1 + name: simple-app-east-mariadb + namespace: production-2 +type: Opaque + +--- + +apiVersion: v1 +data: + wordpress-password: WVRjNjBlenhZTA== +kind: Secret +metadata: + annotations: + argocd.argoproj.io/tracking-id: prod-east:/Secret:production-2/simple-app-east + labels: + app.kubernetes.io/instance: prod-east + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: app + helm.sh/chart: app-17.0.5 + name: simple-app-east + namespace: production-2 +type: Opaque + +--- + +apiVersion: v1 +data: + my.cnf: |- + [mysqld] + skip-name-resolve + explicit_defaults_for_timestamp + basedir=/opt/bitnami/mariadb + datadir=/bitnami/mariadb/data + plugin_dir=/opt/bitnami/mariadb/plugin + port=3306 + socket=/opt/bitnami/mariadb/tmp/mysql.sock + tmpdir=/opt/bitnami/mariadb/tmp + max_allowed_packet=16M + bind-address=* + pid-file=/opt/bitnami/mariadb/tmp/mysqld.pid + log-error=/opt/bitnami/mariadb/logs/mysqld.log + character-set-server=UTF8 + collation-server=utf8_general_ci + slow_query_log=0 + long_query_time=10.0 + + [client] + port=3306 + socket=/opt/bitnami/mariadb/tmp/mysql.sock + default-character-set=UTF8 + plugin_dir=/opt/bitnami/mariadb/plugin + + [manager] + port=3306 + socket=/opt/bitnami/mariadb/tmp/mysql.sock + pid-file=/opt/bitnami/mariadb/tmp/mysqld.pid +kind: ConfigMap +metadata: + annotations: + argocd.argoproj.io/tracking-id: prod-east:/ConfigMap:production-2/simple-app-east-mariadb + labels: + app.kubernetes.io/component: primary + app.kubernetes.io/instance: prod-east + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: mariadb + helm.sh/chart: mariadb-13.0.1 + name: simple-app-east-mariadb + namespace: production-2 + +--- + +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + annotations: + argocd.argoproj.io/tracking-id: prod-east:/PersistentVolumeClaim:production-2/simple-app-east + labels: + app.kubernetes.io/instance: prod-east + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: app + helm.sh/chart: app-17.0.5 + name: simple-app-east + namespace: production-2 +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 10Gi + +--- + +apiVersion: v1 +kind: Service +metadata: + annotations: + argocd.argoproj.io/tracking-id: prod-east:/Service:production-2/simple-app-east-mariadb + labels: + app.kubernetes.io/component: primary + app.kubernetes.io/instance: prod-east + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: mariadb + helm.sh/chart: mariadb-13.0.1 + name: simple-app-east-mariadb + namespace: production-2 +spec: + ports: + - name: mysql + nodePort: null + port: 3306 + protocol: TCP + targetPort: mysql + selector: + app.kubernetes.io/component: primary + app.kubernetes.io/instance: simple-app-east + app.kubernetes.io/name: mariadb + sessionAffinity: None + type: ClusterIP + +--- + +apiVersion: v1 +kind: Service +metadata: + annotations: + argocd.argoproj.io/tracking-id: prod-east:/Service:production-2/simple-app-east + labels: + app.kubernetes.io/instance: prod-east + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: app + helm.sh/chart: app-17.0.5 + name: simple-app-east + namespace: production-2 +spec: + ports: + - name: http + nodePort: null + port: 80 + protocol: TCP + targetPort: http + - name: https + nodePort: null + port: 443 + protocol: TCP + targetPort: https + selector: + app.kubernetes.io/instance: simple-app-east + app.kubernetes.io/name: app + sessionAffinity: None + type: ClusterIP + +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + argocd.argoproj.io/tracking-id: prod-east:apps/Deployment:production-2/simple-app-east + labels: + app.kubernetes.io/instance: prod-east + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: app + helm.sh/chart: app-17.0.5 + name: simple-app-east + namespace: production-2 +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/instance: simple-app-east + app.kubernetes.io/name: app + strategy: + type: RollingUpdate + template: + metadata: + labels: + app.kubernetes.io/instance: simple-app-east + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: app + helm.sh/chart: app-17.0.5 + spec: + affinity: + nodeAffinity: null + podAffinity: null + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchLabels: + app.kubernetes.io/instance: simple-app-east + app.kubernetes.io/name: app + topologyKey: kubernetes.io/hostname + weight: 1 + containers: + - env: + - name: BITNAMI_DEBUG + value: "false" + - name: ALLOW_EMPTY_PASSWORD + value: "yes" + - name: MARIADB_HOST + value: simple-app-east-mariadb + - name: MARIADB_PORT_NUMBER + value: "3306" + - name: WORDPRESS_DATABASE_NAME + value: bitnami_wordpress + - name: WORDPRESS_DATABASE_USER + value: bn_wordpress + - name: WORDPRESS_DATABASE_PASSWORD + valueFrom: + secretKeyRef: + key: mariadb-password + name: simple-app-east-mariadb + - name: WORDPRESS_USERNAME + value: user + - name: WORDPRESS_PASSWORD + valueFrom: + secretKeyRef: + key: wordpress-password + name: simple-app-east + - name: WORDPRESS_EMAIL + value: user@example.com + - name: WORDPRESS_FIRST_NAME + value: FirstName + - name: WORDPRESS_LAST_NAME + value: LastName + - name: WORDPRESS_HTACCESS_OVERRIDE_NONE + value: "no" + - name: WORDPRESS_ENABLE_HTACCESS_PERSISTENCE + value: "no" + - name: WORDPRESS_BLOG_NAME + value: User's Blog! + - name: WORDPRESS_SKIP_BOOTSTRAP + value: "no" + - name: WORDPRESS_TABLE_PREFIX + value: wp_ + - name: WORDPRESS_SCHEME + value: http + - name: WORDPRESS_EXTRA_WP_CONFIG_CONTENT + value: "" + - name: WORDPRESS_PLUGINS + value: none + - name: APACHE_HTTP_PORT_NUMBER + value: "8080" + - name: APACHE_HTTPS_PORT_NUMBER + value: "8443" + envFrom: null + image: docker.io/bitnami/wordpress:6.2.2-debian-11-r82 + imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + httpHeaders: [] + path: /wp-admin/install.php + port: http + scheme: HTTP + initialDelaySeconds: 120 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 + name: wordpress + ports: + - containerPort: 8080 + name: http + - containerPort: 8443 + name: https + readinessProbe: + failureThreshold: 6 + httpGet: + httpHeaders: [] + path: /wp-login.php + port: http + scheme: HTTP + initialDelaySeconds: 30 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 + resources: + limits: {} + requests: + cpu: 300m + memory: 512Mi + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + readOnlyRootFilesystem: false + runAsNonRoot: true + runAsUser: 1001 + volumeMounts: + - mountPath: /bitnami/wordpress + name: wordpress-data + subPath: wordpress + hostAliases: + - hostnames: + - status.localhost + ip: 127.0.0.1 + securityContext: + fsGroup: 1001 + seccompProfile: + type: RuntimeDefault + serviceAccountName: default + volumes: + - name: wordpress-data + persistentVolumeClaim: + claimName: simple-app-east + +--- + +apiVersion: apps/v1 +kind: StatefulSet +metadata: + annotations: + argocd.argoproj.io/tracking-id: prod-east:apps/StatefulSet:production-2/simple-app-east-mariadb + labels: + app.kubernetes.io/component: primary + app.kubernetes.io/instance: prod-east + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: mariadb + helm.sh/chart: mariadb-13.0.1 + name: simple-app-east-mariadb + namespace: production-2 +spec: + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + app.kubernetes.io/component: primary + app.kubernetes.io/instance: simple-app-east + app.kubernetes.io/name: mariadb + serviceName: simple-app-east-mariadb + template: + metadata: + annotations: + checksum/configuration: ddf826fcbadca91ea9c596940d068266ad8c571e1c1d4e3f8ff094d214926ca9 + labels: + app.kubernetes.io/component: primary + app.kubernetes.io/instance: simple-app-east + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: mariadb + helm.sh/chart: mariadb-13.0.1 + spec: + affinity: + nodeAffinity: null + podAffinity: null + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchLabels: + app.kubernetes.io/component: primary + app.kubernetes.io/instance: simple-app-east + app.kubernetes.io/name: mariadb + topologyKey: kubernetes.io/hostname + weight: 1 + containers: + - env: + - name: BITNAMI_DEBUG + value: "false" + - name: MARIADB_ROOT_PASSWORD + valueFrom: + secretKeyRef: + key: mariadb-root-password + name: simple-app-east-mariadb + - name: MARIADB_USER + value: bn_wordpress + - name: MARIADB_PASSWORD + valueFrom: + secretKeyRef: + key: mariadb-password + name: simple-app-east-mariadb + - name: MARIADB_DATABASE + value: bitnami_wordpress + image: docker.io/bitnami/mariadb:11.0.2-debian-11-r2 + imagePullPolicy: IfNotPresent + livenessProbe: + exec: + command: + - /bin/bash + - -ec + - | + password_aux="${MARIADB_ROOT_PASSWORD:-}" + if [[ -f "${MARIADB_ROOT_PASSWORD_FILE:-}" ]]; then + password_aux=$(cat "$MARIADB_ROOT_PASSWORD_FILE") + fi + mysqladmin status -uroot -p"${password_aux}" + failureThreshold: 3 + initialDelaySeconds: 120 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 1 + name: mariadb + ports: + - containerPort: 3306 + name: mysql + readinessProbe: + exec: + command: + - /bin/bash + - -ec + - | + password_aux="${MARIADB_ROOT_PASSWORD:-}" + if [[ -f "${MARIADB_ROOT_PASSWORD_FILE:-}" ]]; then + password_aux=$(cat "$MARIADB_ROOT_PASSWORD_FILE") + fi + mysqladmin status -uroot -p"${password_aux}" + failureThreshold: 3 + initialDelaySeconds: 30 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 1 + resources: + limits: {} + requests: {} + securityContext: + allowPrivilegeEscalation: false + privileged: false + runAsNonRoot: true + runAsUser: 1001 + volumeMounts: + - mountPath: /bitnami/mariadb + name: data + - mountPath: /opt/bitnami/mariadb/conf/my.cnf + name: config + subPath: my.cnf + securityContext: + fsGroup: 1001 + serviceAccountName: simple-app-east-mariadb + volumes: + - configMap: + name: simple-app-east-mariadb + name: config + updateStrategy: + type: RollingUpdate + volumeClaimTemplates: + - metadata: + labels: + app.kubernetes.io/component: primary + app.kubernetes.io/instance: simple-app-east + app.kubernetes.io/name: mariadb + name: data + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 8Gi + +--- + diff --git a/prod-west/README.md b/prod-west/README.md new file mode 100644 index 0000000..7e241e7 --- /dev/null +++ b/prod-west/README.md @@ -0,0 +1,13 @@ + +# Manifest Hydration + +To hydrate the manifests in this repository, run the following commands: + +```shell + +git clone https://github.com/agaudreault/gitops-tests +# cd into the cloned directory +git checkout ca2ff0b38fae3dd02444d3615651129f1e394aba +helm dependency build +helm template . --name-template simple-app-west --namespace production-1 --values /tmp/_argocd-repo/dbb92269-9c18-47ad-b229-ae14b41dd16e/services/simple-application/values.yaml --values /tmp/_argocd-repo/dbb92269-9c18-47ad-b229-ae14b41dd16e/services/simple-application/prod/values.yaml --values /tmp/_argocd-repo/dbb92269-9c18-47ad-b229-ae14b41dd16e/services/simple-application/prod/values-production-1.yaml --include-crds +``` \ No newline at end of file diff --git a/prod-west/hydrator.metadata b/prod-west/hydrator.metadata new file mode 100755 index 0000000..9a9319e --- /dev/null +++ b/prod-west/hydrator.metadata @@ -0,0 +1,8 @@ +{ + "commands": [ + "helm dependency build", + "helm template . --name-template simple-app-west --namespace production-1 --values /tmp/_argocd-repo/dbb92269-9c18-47ad-b229-ae14b41dd16e/services/simple-application/values.yaml --values /tmp/_argocd-repo/dbb92269-9c18-47ad-b229-ae14b41dd16e/services/simple-application/prod/values.yaml --values /tmp/_argocd-repo/dbb92269-9c18-47ad-b229-ae14b41dd16e/services/simple-application/prod/values-production-1.yaml --include-crds" + ], + "repoURL": "https://github.com/agaudreault/gitops-tests", + "drySha": "ca2ff0b38fae3dd02444d3615651129f1e394aba" +} \ No newline at end of file diff --git a/prod-west/manifest.yaml b/prod-west/manifest.yaml new file mode 100755 index 0000000..286bac8 --- /dev/null +++ b/prod-west/manifest.yaml @@ -0,0 +1,478 @@ +apiVersion: v1 +automountServiceAccountToken: false +kind: ServiceAccount +metadata: + annotations: + argocd.argoproj.io/tracking-id: prod-west:/ServiceAccount:production-1/simple-app-west-mariadb + labels: + app.kubernetes.io/instance: prod-west + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: mariadb + helm.sh/chart: mariadb-13.0.1 + name: simple-app-west-mariadb + namespace: production-1 + +--- + +apiVersion: v1 +data: + mariadb-password: bUlnTTJtRlpWdA== + mariadb-root-password: S0I2cWg4dUExZw== +kind: Secret +metadata: + annotations: + argocd.argoproj.io/tracking-id: prod-west:/Secret:production-1/simple-app-west-mariadb + labels: + app.kubernetes.io/instance: prod-west + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: mariadb + helm.sh/chart: mariadb-13.0.1 + name: simple-app-west-mariadb + namespace: production-1 +type: Opaque + +--- + +apiVersion: v1 +data: + wordpress-password: NnZqWmFWQlFpaA== +kind: Secret +metadata: + annotations: + argocd.argoproj.io/tracking-id: prod-west:/Secret:production-1/simple-app-west + labels: + app.kubernetes.io/instance: prod-west + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: app + helm.sh/chart: app-17.0.5 + name: simple-app-west + namespace: production-1 +type: Opaque + +--- + +apiVersion: v1 +data: + my.cnf: |- + [mysqld] + skip-name-resolve + explicit_defaults_for_timestamp + basedir=/opt/bitnami/mariadb + datadir=/bitnami/mariadb/data + plugin_dir=/opt/bitnami/mariadb/plugin + port=3306 + socket=/opt/bitnami/mariadb/tmp/mysql.sock + tmpdir=/opt/bitnami/mariadb/tmp + max_allowed_packet=16M + bind-address=* + pid-file=/opt/bitnami/mariadb/tmp/mysqld.pid + log-error=/opt/bitnami/mariadb/logs/mysqld.log + character-set-server=UTF8 + collation-server=utf8_general_ci + slow_query_log=0 + long_query_time=10.0 + + [client] + port=3306 + socket=/opt/bitnami/mariadb/tmp/mysql.sock + default-character-set=UTF8 + plugin_dir=/opt/bitnami/mariadb/plugin + + [manager] + port=3306 + socket=/opt/bitnami/mariadb/tmp/mysql.sock + pid-file=/opt/bitnami/mariadb/tmp/mysqld.pid +kind: ConfigMap +metadata: + annotations: + argocd.argoproj.io/tracking-id: prod-west:/ConfigMap:production-1/simple-app-west-mariadb + labels: + app.kubernetes.io/component: primary + app.kubernetes.io/instance: prod-west + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: mariadb + helm.sh/chart: mariadb-13.0.1 + name: simple-app-west-mariadb + namespace: production-1 + +--- + +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + annotations: + argocd.argoproj.io/tracking-id: prod-west:/PersistentVolumeClaim:production-1/simple-app-west + labels: + app.kubernetes.io/instance: prod-west + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: app + helm.sh/chart: app-17.0.5 + name: simple-app-west + namespace: production-1 +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 10Gi + +--- + +apiVersion: v1 +kind: Service +metadata: + annotations: + argocd.argoproj.io/tracking-id: prod-west:/Service:production-1/simple-app-west-mariadb + labels: + app.kubernetes.io/component: primary + app.kubernetes.io/instance: prod-west + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: mariadb + helm.sh/chart: mariadb-13.0.1 + name: simple-app-west-mariadb + namespace: production-1 +spec: + ports: + - name: mysql + nodePort: null + port: 3306 + protocol: TCP + targetPort: mysql + selector: + app.kubernetes.io/component: primary + app.kubernetes.io/instance: simple-app-west + app.kubernetes.io/name: mariadb + sessionAffinity: None + type: ClusterIP + +--- + +apiVersion: v1 +kind: Service +metadata: + annotations: + argocd.argoproj.io/tracking-id: prod-west:/Service:production-1/simple-app-west + labels: + app.kubernetes.io/instance: prod-west + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: app + helm.sh/chart: app-17.0.5 + name: simple-app-west + namespace: production-1 +spec: + ports: + - name: http + nodePort: null + port: 80 + protocol: TCP + targetPort: http + - name: https + nodePort: null + port: 443 + protocol: TCP + targetPort: https + selector: + app.kubernetes.io/instance: simple-app-west + app.kubernetes.io/name: app + sessionAffinity: None + type: ClusterIP + +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + argocd.argoproj.io/tracking-id: prod-west:apps/Deployment:production-1/simple-app-west + labels: + app.kubernetes.io/instance: prod-west + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: app + helm.sh/chart: app-17.0.5 + name: simple-app-west + namespace: production-1 +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/instance: simple-app-west + app.kubernetes.io/name: app + strategy: + type: RollingUpdate + template: + metadata: + labels: + app.kubernetes.io/instance: simple-app-west + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: app + helm.sh/chart: app-17.0.5 + spec: + affinity: + nodeAffinity: null + podAffinity: null + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchLabels: + app.kubernetes.io/instance: simple-app-west + app.kubernetes.io/name: app + topologyKey: kubernetes.io/hostname + weight: 1 + containers: + - env: + - name: BITNAMI_DEBUG + value: "false" + - name: ALLOW_EMPTY_PASSWORD + value: "yes" + - name: MARIADB_HOST + value: simple-app-west-mariadb + - name: MARIADB_PORT_NUMBER + value: "3306" + - name: WORDPRESS_DATABASE_NAME + value: bitnami_wordpress + - name: WORDPRESS_DATABASE_USER + value: bn_wordpress + - name: WORDPRESS_DATABASE_PASSWORD + valueFrom: + secretKeyRef: + key: mariadb-password + name: simple-app-west-mariadb + - name: WORDPRESS_USERNAME + value: user + - name: WORDPRESS_PASSWORD + valueFrom: + secretKeyRef: + key: wordpress-password + name: simple-app-west + - name: WORDPRESS_EMAIL + value: user@example.com + - name: WORDPRESS_FIRST_NAME + value: FirstName + - name: WORDPRESS_LAST_NAME + value: LastName + - name: WORDPRESS_HTACCESS_OVERRIDE_NONE + value: "no" + - name: WORDPRESS_ENABLE_HTACCESS_PERSISTENCE + value: "no" + - name: WORDPRESS_BLOG_NAME + value: User's Blog! + - name: WORDPRESS_SKIP_BOOTSTRAP + value: "no" + - name: WORDPRESS_TABLE_PREFIX + value: wp_ + - name: WORDPRESS_SCHEME + value: http + - name: WORDPRESS_EXTRA_WP_CONFIG_CONTENT + value: "" + - name: WORDPRESS_PLUGINS + value: none + - name: APACHE_HTTP_PORT_NUMBER + value: "8080" + - name: APACHE_HTTPS_PORT_NUMBER + value: "8443" + envFrom: null + image: docker.io/bitnami/wordpress:6.2.2-debian-11-r82 + imagePullPolicy: IfNotPresent + livenessProbe: + failureThreshold: 6 + httpGet: + httpHeaders: [] + path: /wp-admin/install.php + port: http + scheme: HTTP + initialDelaySeconds: 120 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 + name: wordpress + ports: + - containerPort: 8080 + name: http + - containerPort: 8443 + name: https + readinessProbe: + failureThreshold: 6 + httpGet: + httpHeaders: [] + path: /wp-login.php + port: http + scheme: HTTP + initialDelaySeconds: 30 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 5 + resources: + limits: {} + requests: + cpu: 300m + memory: 512Mi + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + readOnlyRootFilesystem: false + runAsNonRoot: true + runAsUser: 1001 + volumeMounts: + - mountPath: /bitnami/wordpress + name: wordpress-data + subPath: wordpress + hostAliases: + - hostnames: + - status.localhost + ip: 127.0.0.1 + securityContext: + fsGroup: 1001 + seccompProfile: + type: RuntimeDefault + serviceAccountName: default + volumes: + - name: wordpress-data + persistentVolumeClaim: + claimName: simple-app-west + +--- + +apiVersion: apps/v1 +kind: StatefulSet +metadata: + annotations: + argocd.argoproj.io/tracking-id: prod-west:apps/StatefulSet:production-1/simple-app-west-mariadb + labels: + app.kubernetes.io/component: primary + app.kubernetes.io/instance: prod-west + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: mariadb + helm.sh/chart: mariadb-13.0.1 + name: simple-app-west-mariadb + namespace: production-1 +spec: + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + app.kubernetes.io/component: primary + app.kubernetes.io/instance: simple-app-west + app.kubernetes.io/name: mariadb + serviceName: simple-app-west-mariadb + template: + metadata: + annotations: + checksum/configuration: e4cdbfd085a464056af74052bc4754946eedd85ae91668fc6a0e7532bbfe645a + labels: + app.kubernetes.io/component: primary + app.kubernetes.io/instance: simple-app-west + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: mariadb + helm.sh/chart: mariadb-13.0.1 + spec: + affinity: + nodeAffinity: null + podAffinity: null + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchLabels: + app.kubernetes.io/component: primary + app.kubernetes.io/instance: simple-app-west + app.kubernetes.io/name: mariadb + topologyKey: kubernetes.io/hostname + weight: 1 + containers: + - env: + - name: BITNAMI_DEBUG + value: "false" + - name: MARIADB_ROOT_PASSWORD + valueFrom: + secretKeyRef: + key: mariadb-root-password + name: simple-app-west-mariadb + - name: MARIADB_USER + value: bn_wordpress + - name: MARIADB_PASSWORD + valueFrom: + secretKeyRef: + key: mariadb-password + name: simple-app-west-mariadb + - name: MARIADB_DATABASE + value: bitnami_wordpress + image: docker.io/bitnami/mariadb:11.0.2-debian-11-r2 + imagePullPolicy: IfNotPresent + livenessProbe: + exec: + command: + - /bin/bash + - -ec + - | + password_aux="${MARIADB_ROOT_PASSWORD:-}" + if [[ -f "${MARIADB_ROOT_PASSWORD_FILE:-}" ]]; then + password_aux=$(cat "$MARIADB_ROOT_PASSWORD_FILE") + fi + mysqladmin status -uroot -p"${password_aux}" + failureThreshold: 3 + initialDelaySeconds: 120 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 1 + name: mariadb + ports: + - containerPort: 3306 + name: mysql + readinessProbe: + exec: + command: + - /bin/bash + - -ec + - | + password_aux="${MARIADB_ROOT_PASSWORD:-}" + if [[ -f "${MARIADB_ROOT_PASSWORD_FILE:-}" ]]; then + password_aux=$(cat "$MARIADB_ROOT_PASSWORD_FILE") + fi + mysqladmin status -uroot -p"${password_aux}" + failureThreshold: 3 + initialDelaySeconds: 30 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 1 + resources: + limits: {} + requests: {} + securityContext: + allowPrivilegeEscalation: false + privileged: false + runAsNonRoot: true + runAsUser: 1001 + volumeMounts: + - mountPath: /bitnami/mariadb + name: data + - mountPath: /opt/bitnami/mariadb/conf/my.cnf + name: config + subPath: my.cnf + securityContext: + fsGroup: 1001 + serviceAccountName: simple-app-west-mariadb + volumes: + - configMap: + name: simple-app-west-mariadb + name: config + updateStrategy: + type: RollingUpdate + volumeClaimTemplates: + - metadata: + labels: + app.kubernetes.io/component: primary + app.kubernetes.io/instance: simple-app-west + app.kubernetes.io/name: mariadb + name: data + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 8Gi + +--- +