spec.tls

From wikieduonline
Revision as of 15:21, 13 February 2024 by Welcome (talk | contribs) (→‎Related)
Jump to navigation Jump to search


tls:
  - hosts:
      - ingress-demo.example.com
    secretName: ingress-demo-tls
tls: 
  - secretName: chart-example-tls
     hosts:
       - chart-example.local


Ingress

 apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
  annotations:
    kubernetes.io/ingress.class: nginx
  name: example
  namespace: foo
spec:
  rules:
    - host: www.example.com
      http:
        paths:
          - backend:
              serviceName: exampleService
              servicePort: 80
            path: /
  # This section is only required if TLS is to be enabled for the Ingress
  tls:
      - hosts:
          - www.example.com
        secretName: example-tls

Related

See also

Advertising: