Fixed ingress yaml indentation

This commit is contained in:
Sumit Ghosh 2021-11-11 15:21:54 +05:30
parent 144e7a2e0c
commit ce2bcf623a

View File

@ -11,15 +11,16 @@ metadata:
namespace: default namespace: default
spec: spec:
rules: rules:
http: - host: localhost
paths: http:
- path: /webmvc paths:
pathType: Prefix - path: /webmvc
backend: pathType: Prefix
service: backend:
name: webmvc service:
port: name: webmvc
number: 80 port:
number: 80
--- ---
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
kind: Ingress kind: Ingress
@ -34,12 +35,13 @@ metadata:
namespace: default namespace: default
spec: spec:
rules: rules:
http: - host: localhost
paths: http:
- path: /identity paths:
pathType: Prefix - path: /identity
backend: pathType: Prefix
service: backend:
name: identity service:
port: name: identity
number: 80 port:
number: 80