docs: Migrate to staging/prod configuration
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
{{ if .Values.clusterConfig.argo.enabled }}
|
{{- if .Values.clusterConfig.argo.enabled }}
|
||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: Application
|
kind: Application
|
||||||
metadata:
|
metadata:
|
||||||
name: docs
|
name: {{ .Values.docs.env }}-docs
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
annotations:
|
annotations:
|
||||||
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
||||||
@@ -11,7 +11,11 @@ metadata:
|
|||||||
- resources-finalizer.argocd.argoproj.io
|
- resources-finalizer.argocd.argoproj.io
|
||||||
spec:
|
spec:
|
||||||
destination:
|
destination:
|
||||||
|
{{- if eq .Values.docs.env "prod" }}
|
||||||
namespace: docs
|
namespace: docs
|
||||||
|
{{- else }}
|
||||||
|
namespace: {{ .Values.docs.env }}-docs
|
||||||
|
{{- end }}
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
project: default
|
project: default
|
||||||
sources:
|
sources:
|
||||||
@@ -24,7 +28,7 @@ spec:
|
|||||||
- name: CLUSTER_NAME
|
- name: CLUSTER_NAME
|
||||||
value: {{ .Values.clusterConfig.cluster }}
|
value: {{ .Values.clusterConfig.cluster }}
|
||||||
- name: HELMFILE_ENVIRONMENT
|
- name: HELMFILE_ENVIRONMENT
|
||||||
value: default
|
value: {{ .Values.docs.env }}
|
||||||
- name: HELMFILE_FILE_PATH
|
- name: HELMFILE_FILE_PATH
|
||||||
value: docs.yaml.gotmpl
|
value: docs.yaml.gotmpl
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -15,11 +15,11 @@ ingress:
|
|||||||
haproxy.org/cors-enable: "true"
|
haproxy.org/cors-enable: "true"
|
||||||
oceanbox.io/expose: internal
|
oceanbox.io/expose: internal
|
||||||
hosts:
|
hosts:
|
||||||
- host: docs.oceanbox.io
|
- host: docs.dev.oceanbox.io
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- docs.oceanbox.io
|
- docs.dev.oceanbox.io
|
||||||
secretName: docs-tls
|
secretName: default-docs-tls
|
||||||
|
|||||||
Reference in New Issue
Block a user