feat: use certificates imported by certs plugin when deploying via scheduler-k3s
Closes #7257
This commit is contained in:
16 files changed
+899
-38
No files matched your search
@@ -4,7 +4,7 @@
|
||||
{{- continue }}
|
||||
{{- end }}
|
||||
|
||||
{{- if and $config.web.tls.enabled $config.web.domains }}
|
||||
{{- if and $config.web.tls.enabled (not $config.web.tls.use_imported_cert) $config.web.domains }}
|
||||
---
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
|
||||
@@ -53,7 +53,11 @@ spec:
|
||||
{{- end }}
|
||||
{{- if $config.web.tls.enabled }}
|
||||
tls:
|
||||
{{- if $config.web.tls.use_imported_cert }}
|
||||
secretName: tls-{{ $.Values.global.app_name }}
|
||||
{{- else }}
|
||||
secretName: tls-{{ $.Values.global.app_name }}-{{ $processName }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -38,7 +38,11 @@ spec:
|
||||
tls:
|
||||
- hosts:
|
||||
- {{ $domain.name | quote }}
|
||||
{{- if $config.web.tls.use_imported_cert }}
|
||||
secretName: tls-{{ $.Values.global.app_name }}
|
||||
{{- else }}
|
||||
secretName: tls-{{ $.Values.global.app_name }}-{{ $processName }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
rules:
|
||||
- host: {{ $domain.name | quote }}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
type: kubernetes.io/tls
|
||||
metadata:
|
||||
name: tls-{{ .Values.global.app_name }}
|
||||
namespace: {{ .Values.global.namespace }}
|
||||
labels:
|
||||
app.kubernetes.io/name: tls-{{ .Values.global.app_name }}
|
||||
app.kubernetes.io/part-of: {{ .Values.global.app_name }}
|
||||
dokku.com/cert-source: "imported"
|
||||
dokku.com/cert-checksum: {{ .Values.global.cert_checksum | quote }}
|
||||
annotations:
|
||||
dokku.com/managed: "true"
|
||||
data:
|
||||
tls.crt: {{ .Values.global.tls_crt }}
|
||||
tls.key: {{ .Values.global.tls_key }}
|
||||
Reference in new issue
Block a user