mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 16:46:51 +02:00
Added template variables
This commit is contained in:
@@ -14,6 +14,6 @@ spec:
|
|||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
project: default
|
project: default
|
||||||
source:
|
source:
|
||||||
path: argocd/app-of-apps/test
|
path: {{ tpl .Values.appOfApps.path . }}
|
||||||
repoURL: https://git.2martens.de/2martens/cloud-configuration/
|
repoURL: {{ .Values.appOfApps.repoURL }}
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
@@ -4,7 +4,7 @@ metadata:
|
|||||||
name: argocd-server-ingress
|
name: argocd-server-ingress
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: lets-encrypt
|
cert-manager.io/cluster-issuer: {{ .Values.ingress.certIssuer }}
|
||||||
ingress.kubernetes.io/rewrite-target: /
|
ingress.kubernetes.io/rewrite-target: /
|
||||||
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
|
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
|
||||||
# If you encounter a redirect loop or are getting a 307 response code
|
# If you encounter a redirect loop or are getting a 307 response code
|
||||||
@@ -14,7 +14,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
ingressClassName: public
|
ingressClassName: public
|
||||||
rules:
|
rules:
|
||||||
- host: argocd.2martens.de
|
- host: {{ tpl .Values.ingress.host . }}
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
@@ -26,5 +26,5 @@ spec:
|
|||||||
name: https
|
name: https
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- argocd.k8s.{{ .Values.environment }}.2martens.de
|
- {{ tpl .Values.ingress.host . }}
|
||||||
secretName: argocd-server-tls # as expected by argocd-server
|
secretName: argocd-server-tls # as expected by argocd-server
|
||||||
+12
-1
@@ -1 +1,12 @@
|
|||||||
environment: test
|
appOfApps:
|
||||||
|
repoURL: https://git.2martens.de/2martens/cloud-configuration/
|
||||||
|
# variable is templated
|
||||||
|
path: argocd/app-of-apps/{{ .Values.environment }}
|
||||||
|
|
||||||
|
ingress:
|
||||||
|
# variable is templated
|
||||||
|
host: argocd.k8s.{{ .Values.environment }}.2martens.de
|
||||||
|
certIssuer: lets-encrypt
|
||||||
|
|
||||||
|
# should be overriden for the specific installation
|
||||||
|
environment:
|
||||||
Reference in New Issue
Block a user