added tls

This commit is contained in:
ari committed 2023-03-16 01:41:52 +00:00
1 parent 4fdc107cf5
commit 1be021c986
2 files changed
+26

No files matched your search

+25
View File
@@ -1,9 +1,28 @@
{{ if $.Values.global.tlsEnable }}
---
apiVersion: v1
kind: Secret
type: "kubernetes.io/tls"
metadata:
name: "argo-cert"
data:
tls.key: ""
tls.crt: ""
{{ end }}
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: argocd-server
namespace: argocd
annotations:
{{- if $.Values.global.ingressAnnotations -}}
{{- range $k, $v := $.Values.global.ingressAnnotations }}
{{ $k -}}: "{{- $v -}}"
{{- end }}
{{ end }}
spec:
rules:
- host: "argocd.{{ .Values.global.domain }}"
@@ -16,3 +35,9 @@ spec:
number: 80
path: /
pathType: Prefix
{{- if $.Values.global.tlsEnable }}
tls:
- secretName: "argo-cert"
hosts:
- "argocd.{{ $.Values.global.domain }}"
{{- end }}
+1
View File
@@ -20,3 +20,4 @@ global:
email: "ariel@sosnovsky.ca"
ingressAnnotations: {}
tlsEnable: false
domain: ""