Difference between revisions of "Cert-manager.io/cluster-issuer"

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
  [[cert-manager.io]]/cluster-issuer
 
  [[cert-manager.io]]/cluster-issuer
  
 +
 +
Official example
 +
<pre>
 +
apiVersion: networking.k8s.io/v1
 +
kind: Ingress
 +
metadata:
 +
  annotations:
 +
    # add an annotation indicating the issuer to use.
 +
    [[cert-manager.io/cluster-issuer]]: nameOfClusterIssuer
 +
  name: myIngress
 +
  namespace: myIngress
 +
spec:
 +
  rules:
 +
  - host: example.com
 +
    http:
 +
      paths:
 +
      - pathType: Prefix
 +
        path: /
 +
        backend:
 +
          service:
 +
            name: myservice
 +
            port:
 +
              number: 80
 +
  tls: # < placing a host in the TLS config will determine what ends up in the cert's subjectAltNames
 +
  - hosts:
 +
    - example.com
 +
    secretName: myingress-cert # < cert-manager will store the created certificate in this secret.
 +
</pre>
  
 
  [[kubectl get issuer]]
 
  [[kubectl get issuer]]
 +
[[cert-manager.io/issuer]]
  
{{Cert-manager}}
+
* {{cert-manager.io}}
 +
* {{Cert-manager}}

Latest revision as of 12:06, 9 February 2024

cert-manager.io/cluster-issuer


Official example

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    # add an annotation indicating the issuer to use.
    [[cert-manager.io/cluster-issuer]]: nameOfClusterIssuer
  name: myIngress
  namespace: myIngress
spec:
  rules:
  - host: example.com
    http:
      paths:
      - pathType: Prefix
        path: /
        backend:
          service:
            name: myservice
            port:
              number: 80
  tls: # < placing a host in the TLS config will determine what ends up in the cert's subjectAltNames
  - hosts:
    - example.com
    secretName: myingress-cert # < cert-manager will store the created certificate in this secret.
kubectl get issuer
cert-manager.io/issuer

Advertising: