hongbo-miao/hongbomiao.com

View on GitHub
kubernetes/argo-cd/applications/production-hm/opencost/kubernetes-manifests/production-hm-opencost-certificate.yaml

Summary

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