docs: Migrate to staging/prod configuration

This commit is contained in:
2026-06-13 14:44:34 +02:00
parent a5de0859b5
commit 5f32f34543
3 changed files with 29 additions and 6 deletions
+7 -3
View File
@@ -1,8 +1,8 @@
{{ if .Values.clusterConfig.argo.enabled }}
{{- if .Values.clusterConfig.argo.enabled }}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: docs
name: {{ .Values.docs.env }}-docs
namespace: argocd
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
@@ -11,7 +11,11 @@ metadata:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
{{- if eq .Values.docs.env "prod" }}
namespace: docs
{{- else }}
namespace: {{ .Values.docs.env }}-docs
{{- end }}
server: https://kubernetes.default.svc
project: default
sources:
@@ -24,7 +28,7 @@ spec:
- name: CLUSTER_NAME
value: {{ .Values.clusterConfig.cluster }}
- name: HELMFILE_ENVIRONMENT
value: default
value: {{ .Values.docs.env }}
- name: HELMFILE_FILE_PATH
value: docs.yaml.gotmpl
syncPolicy:
+19
View File
@@ -0,0 +1,19 @@
fullnameOverride: prod-docs
ingress:
enabled: true
className: "haproxy"
annotations:
cert-manager.io/cluster-issuer: letsencrypt-production
haproxy.org/backend-protocol: h1
haproxy.org/cors-enable: "true"
oceanbox.io/expose: public
hosts:
- host: docs.oceanbox.io
paths:
- path: /
pathType: ImplementationSpecific
tls:
- hosts:
- docs.oceanbox.io
secretName: prod-docs-tls
+3 -3
View File
@@ -15,11 +15,11 @@ ingress:
haproxy.org/cors-enable: "true"
oceanbox.io/expose: internal
hosts:
- host: docs.oceanbox.io
- host: docs.dev.oceanbox.io
paths:
- path: /
pathType: ImplementationSpecific
tls:
- hosts:
- docs.oceanbox.io
secretName: docs-tls
- docs.dev.oceanbox.io
secretName: default-docs-tls