Files
homelab/cluster/cert-manager/templates/certs/api-server.yaml
2025-05-15 15:56:20 -05:00

31 lines
715 B
YAML

{{- if and .Values.le.prod.enabled .Values.le.apiCert.enabled -}}
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: ocp-api
namespace: openshift-config
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
spec:
dnsNames:
- api.{{ .Values.cluster_name }}.{{ .Values.base_domain }}
issuerRef:
group: cert-manager.io
kind: ClusterIssuer
name: letsencrypt-prod
secretName: ocp-api
---
apiVersion: config.openshift.io/v1
kind: APIServer
metadata:
name: cluster
spec:
servingCerts:
namedCertificates:
- names:
- api.{{ .Values.cluster_name }}.{{ .Values.base_domain }}
servingCertificate:
name: ocp-api
{{- end }}