kubernetes/argo-cd/applications/production-hm/kafbat-ui/kubernetes-manifests/production-hm-kafbat-ui-certificate.yaml
# https://cert-manager.io/docs/usage/certificate
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: production-hm-kafbat-ui-certificate
namespace: production-hm-kafbat-ui
annotations:
# https://argo-cd.readthedocs.io/en/stable/user-guide/resource_hooks
argocd.argoproj.io/hook: PreSync
spec:
commonName: hm-kafbat-ui.internal.hongbomiao.com
secretName: production-hm-kafbat-ui-certificate
dnsNames:
- hm-kafbat-ui.internal.hongbomiao.com
issuerRef:
kind: ClusterIssuer
name: production-lets-encrypt-cluster-issuer
# https://letsencrypt.org/certificates
privateKey:
algorithm: ECDSA
size: 384
rotationPolicy: Always