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...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
  apiVersion: [[networking.k8s.io/v1beta1]]
 
  apiVersion: [[networking.k8s.io/v1beta1]]
  kind: Ingress
+
  [[kind: Ingress]]
 
  metadata:
 
  metadata:
   annotations:
+
   [[annotations:]]
 
     [[kubernetes.io/ingress.class]]: nginx
 
     [[kubernetes.io/ingress.class]]: nginx
 
   name: example
 
   name: example

Latest revision as of 12:47, 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: