Skip to content

Commit

Permalink
WIP: apiserver-cert
Browse files Browse the repository at this point in the history
  • Loading branch information
kd7lxl committed May 4, 2022
1 parent f6582a2 commit e066d9e
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions helm-charts/konk/templates/apiserver-cert.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: {{ include "konk.fullname" . }}-apiserver-ca
namespace: {{ .Release.Namespace }}
labels:
{{- include "konk.labels" . | nindent 4 }}
spec:
ca:
secretName: {{ include "konk.fullname" . }}-apiserver-ca
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: {{ include "konk.fullname" . }}-apiserver-cert
namespace: {{ .Release.Namespace }}
labels:
{{- include "konk.labels" . | nindent 4 }}
spec:
secretName: {{ include "konk.fullname" . }}-apiserver-cert
commonName: {{ include "konk.fullname" . }}
dnsNames:
- {{ include "konk.fullname" . }}-apiserver
- {{ include "konk.fullname" . }}
- {{ include "konk.fullname" . }}.{{ .Release.Namespace }}
- {{ include "konk.fullname" . }}.{{ .Release.Namespace }}.svc
- {{ include "konk.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local
issuerRef:
name: {{ include "konk.fullname" . }}-apiserver-ca
kind: Issuer
revisionHistoryLimit: 1
...

0 comments on commit e066d9e

Please sign in to comment.