Difference between revisions of "Template:Kind: ingress tls"

From wikieduonline
Jump to navigation Jump to search
(Created page with " apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: annotations: kubernetes.io/ingress.class: nginx name: example namespace: foo spec: r...")
 
Line 2: Line 2:
 
  kind: Ingress
 
  kind: Ingress
 
  metadata:
 
  metadata:
   annotations:
+
   [[annotations:]]
 
     [[kubernetes.io/ingress.class]]: nginx
 
     [[kubernetes.io/ingress.class]]: nginx
 
   name: example
 
   name: example

Revision as of 10:51, 14 February 2024

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

Advertising: