diff --git a/apps/templates/mbg-folder.yaml b/apps/templates/mbg-wordpress-folder.yaml similarity index 83% rename from apps/templates/mbg-folder.yaml rename to apps/templates/mbg-wordpress-folder.yaml index 4d13877..a9a4d06 100644 --- a/apps/templates/mbg-folder.yaml +++ b/apps/templates/mbg-wordpress-folder.yaml @@ -1,7 +1,7 @@ apiVersion: argoproj.io/v1alpha1 kind: Application metadata: - name: mbg-folder + name: mbg-wordpress-folder namespace: argocd finalizers: - resources-finalizer.argocd.argoproj.io @@ -10,10 +10,10 @@ spec: source: repoURL: https://github.com/rubenhensen/k8scd.git targetRevision: HEAD - path: mbg + path: mbg-wordpress destination: server: https://kubernetes.default.svc - namespace: mbg + namespace: mbg-wordpress syncPolicy: syncOptions: - CreateNamespace=true diff --git a/apps/templates/mbg-wordpress-helm.yaml b/apps/templates/mbg-wordpress-helm.yaml new file mode 100644 index 0000000..5642520 --- /dev/null +++ b/apps/templates/mbg-wordpress-helm.yaml @@ -0,0 +1,95 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: mbg-wordpress-helm + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + destination: + namespace: mbg-wordpress + server: https://kubernetes.default.svc + project: default + source: + repoURL: registry-1.docker.io/bitnamicharts + targetRevision: 24.1.13 + chart: wordpress + helm: + values: | + service: + ## @param service.type WordPress service type + ## + type: ClusterIP + ingress: + enabled: true + ingressClassName: nginx + hostname: scoutingmbg.nl + path: / + annotations: + cert-manager.io/cluster-issuer: prod-cluster-issuer + nginx.ingress.kubernetes.io/proxy-body-size: 1G + tls: true + tlsWwwPrefix: false + selfSigned: false + extraHosts: + - name: www.scoutingmbg.nl + extraPaths: [] + extraTls: + - secretName: letsencrypt-prod + hosts: + - scoutingmbg.nl + - www.scoutingmbg.nl + secrets: [] + extraRules: [] + + persistence: + ## @param persistence.enabled Enable persistence using Persistent Volume Claims + ## + enabled: true + ## @param persistence.storageClass Persistent Volume storage class + ## If defined, storageClassName: + ## If set to "-", storageClassName: "", which disables dynamic provisioning + ## If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner + ## + storageClass: "" + ## @param persistence.accessModes [array] Persistent Volume access modes + ## + accessModes: + - ReadWriteOnce + ## @param persistence.accessMode Persistent Volume access mode (DEPRECATED: use `persistence.accessModes` instead) + ## + accessMode: ReadWriteOnce + ## @param persistence.size Persistent Volume size + ## + size: 10Gi + ## @param persistence.dataSource Custom PVC data source + ## + dataSource: {} + ## @param persistence.existingClaim The name of an existing PVC to use for persistence + ## + existingClaim: "" + ## @param persistence.selector Selector to match an existing Persistent Volume for WordPress data PVC + ## If set, the PVC can't have a PV dynamically provisioned for it + ## E.g. + ## selector: + ## matchLabels: + ## app: my-app + ## + selector: {} + ## @param persistence.annotations Persistent Volume Claim annotations + ## + annotations: {} + allowEmptyPassword: false + existingSecret: wordpress-credentials + wordpressUsername: rubenhensen + smtpExistingSecret: wordpress-credentials + customHTAccessCM: prod-wordpress-cm + resourcesPreset: "large" + livenessProbe: + enabled: false + + syncPolicy: + syncOptions: + - CreateNamespace=true + automated: + selfHeal: true diff --git a/mbg/default-pw-es.yaml b/mbg-wordpress/default-pw-es.yaml similarity index 100% rename from mbg/default-pw-es.yaml rename to mbg-wordpress/default-pw-es.yaml diff --git a/mbg/local-svc.yaml b/mbg-wordpress/local-svc.yaml similarity index 100% rename from mbg/local-svc.yaml rename to mbg-wordpress/local-svc.yaml diff --git a/mbg/wp-cm.yaml b/mbg-wordpress/wp-cm.yaml similarity index 100% rename from mbg/wp-cm.yaml rename to mbg-wordpress/wp-cm.yaml