Difference between revisions of "Template:Kind: Ingress example"

From wikieduonline
Jump to navigation Jump to search
(Created page with " apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: minimal-ingress annotations: nginx.ingress.kubernetes.io/rewrite-target: / spec:...")
 
 
Line 13: Line 13:
 
         pathType: Prefix
 
         pathType: Prefix
 
         backend:
 
         backend:
           service:
+
           [[service:]]
 
             name: test
 
             name: test
 
             port:
 
             port:
 
               number: 80
 
               number: 80

Latest revision as of 15:24, 15 February 2024

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: minimal-ingress
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /
spec:
  ingressClassName: nginx-example
  rules:
  - http:
      paths:
      - path: /testpath
        pathType: Prefix
        backend:
          service:
            name: test
            port:
              number: 80

Advertising: