Difference between revisions of "Kind: Certificate"

From wikieduonline
Jump to navigation Jump to search
Line 6: Line 6:
 
  kind: Certificate
 
  kind: Certificate
 
  metadata:
 
  metadata:
   name: acme-crt
+
   name: your-cert
 
  spec:
 
  spec:
 
   [[secretName:]] acme-crt-secret
 
   [[secretName:]] acme-crt-secret
Line 18: Line 18:
 
     [[kind: Issuer]]
 
     [[kind: Issuer]]
 
     group: cert-manager.io
 
     group: cert-manager.io
 +
 +
kubectl apply -f certificate.yml
 +
certificate.cert-manager.io/your-cert created
  
 
== Related ==
 
== Related ==

Revision as of 16:39, 13 February 2024

kind: Certificate

https://cert-manager.io/docs/concepts/certificate/

apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
  name: your-cert
spec:
  secretName: acme-crt-secret
  dnsNames:
  - example.com
  - foo.example.com
  issuerRef:
    name: letsencrypt-prod
    # We can reference ClusterIssuers by changing the kind here.
    # The default value is Issuer (i.e. a locally namespaced Issuer)
    kind: Issuer
    group: cert-manager.io
kubectl apply -f certificate.yml
certificate.cert-manager.io/your-cert created

Related

See also

Advertising: