tls
This commit is contained in:
1 parent
57594e7075
commit
658abbfd95
11 files changed
+59
-29
No files matched your search
@@ -1,5 +1,5 @@
|
||||
|
||||
{{ if $.Values.global.tlsEnable }}
|
||||
{{ if $.Values.global.tls.enabled }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
@@ -18,7 +18,7 @@ metadata:
|
||||
name: argocd-server
|
||||
namespace: argocd
|
||||
annotations:
|
||||
self/managed: "true"
|
||||
homelab/ingress-type: "self-managed"
|
||||
{{ if $.Values.global.ingressAnnotations }}
|
||||
{{- range $k, $v := $.Values.global.ingressAnnotations }}
|
||||
{{ $k -}}: "{{- $v -}}"
|
||||
@@ -36,9 +36,9 @@ spec:
|
||||
number: 80
|
||||
path: /
|
||||
pathType: Prefix
|
||||
{{ if $.Values.global.tlsEnable }}
|
||||
tls:
|
||||
- secretName: "argo-cert"
|
||||
hosts:
|
||||
- "argocd.{{ $.Values.global.domain }}"
|
||||
{{ end }}
|
||||
# {{ if $.Values.global.tls.enabled }}
|
||||
# tls:
|
||||
# - secretName: "argo-cert"
|
||||
# hosts:
|
||||
# - "argocd.{{ $.Values.global.domain }}"
|
||||
# {{ end }}
|
||||
@@ -1,4 +1,3 @@
|
||||
global:
|
||||
deployment: dev
|
||||
domain: "me.local"
|
||||
tlsEnable: false
|
||||
@@ -3,4 +3,7 @@ global:
|
||||
domain: "home.sosnovsky.ca"
|
||||
ingressAnnotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt
|
||||
tlsEnable: true
|
||||
tls:
|
||||
enabled: true
|
||||
issuer: "letsencrypt"
|
||||
secretName: "tls-home.sosnovsky.ca"
|
||||
@@ -19,5 +19,9 @@ selfapp:
|
||||
global:
|
||||
email: "ariel@sosnovsky.ca"
|
||||
ingressAnnotations: {}
|
||||
tlsEnable: false
|
||||
tls:
|
||||
enabled: false
|
||||
issuer: ""
|
||||
secretName: ""
|
||||
domain: ""
|
||||
deployment: ""
|
||||
@@ -1,18 +0,0 @@
|
||||
{{ if .Values.global.tlsEnable }}
|
||||
---
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: ClusterIssuer
|
||||
metadata:
|
||||
name: letsencrypt
|
||||
spec:
|
||||
acme:
|
||||
server: {{ .Values.acmeServer }}
|
||||
skipTLSVerify: {{ .Values.skipTLSVerify }}
|
||||
email: {{ .Values.global.email }}
|
||||
privateKeySecretRef:
|
||||
name: letsencrypt
|
||||
solvers:
|
||||
- http01:
|
||||
ingress:
|
||||
class: traefik
|
||||
{{ end }}
|
||||
@@ -21,11 +21,14 @@ spec:
|
||||
- port: 80
|
||||
protocol: TCP
|
||||
targetPort: {{ $data.port }}
|
||||
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: "reverse-proxy-{{$prefix}}"
|
||||
annotations:
|
||||
homelab/ingress-type: "reverse-proxy"
|
||||
spec:
|
||||
rules:
|
||||
- host: "{{$prefix}}.{{$.Values.global.domain}}"
|
||||
|
||||
File renamed without changes.
@@ -0,0 +1,39 @@
|
||||
{{ if .Values.global.tls.enabled }}
|
||||
---
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: ClusterIssuer
|
||||
metadata:
|
||||
name: {{ .Values.global.tls.issuer }}
|
||||
spec:
|
||||
acme:
|
||||
server: {{ .Values.acmeServer }}
|
||||
skipTLSVerify: {{ .Values.skipTLSVerify }}
|
||||
email: {{ .Values.global.email }}
|
||||
privateKeySecretRef:
|
||||
name: {{ .Values.global.tls.issuer }}
|
||||
solvers:
|
||||
- http01:
|
||||
ingress:
|
||||
class: traefik
|
||||
---
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: tls-{{ .Values.global.tls.issuer }}
|
||||
spec:
|
||||
secretName: {{ .Values.global.tls.secretName }}
|
||||
issuerRef:
|
||||
kind: ClusterIssuer
|
||||
name: {{ .Values.global.tls.issuer }}
|
||||
commonName: "*.{{ .Values.global.domain }}"
|
||||
dnsNames:
|
||||
- "*.{{ .Values.global.domain }}"
|
||||
---
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: TLSStore
|
||||
metadata:
|
||||
name: tls-{{ .Values.global.tls.issuer }}
|
||||
spec:
|
||||
defaultCertificate:
|
||||
secretName: {{ .Values.global.tls.secretName }}
|
||||
{{ end }}
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user