Merge pull request #5319 from MrAmbiG/patch-1

Example names violate DNS naming stadards
This commit is contained in:
Kubernetes Prow Robot 2020-04-28 10:52:07 -07:00 committed by GitHub
commit 7fbf4977e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,35 +8,35 @@ First of all follow the instructions to install ingress-nginx. Then imagine that
apiVersion: networking.k8s.io/v1beta1 apiVersion: networking.k8s.io/v1beta1
kind: Ingress kind: Ingress
metadata: metadata:
name: ingress-myServiceA name: ingress-myservicea
annotations: annotations:
# use the shared ingress-nginx # use the shared ingress-nginx
kubernetes.io/ingress.class: "nginx" kubernetes.io/ingress.class: "nginx"
spec: spec:
rules: rules:
- host: myServiceA.foo.org - host: myservicea.foo.org
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: myServiceA serviceName: myservicea
servicePort: 80 servicePort: 80
--- ---
apiVersion: networking.k8s.io/v1beta1 apiVersion: networking.k8s.io/v1beta1
kind: Ingress kind: Ingress
metadata: metadata:
name: ingress-myServiceB name: ingress-myserviceb
annotations: annotations:
# use the shared ingress-nginx # use the shared ingress-nginx
kubernetes.io/ingress.class: "nginx" kubernetes.io/ingress.class: "nginx"
spec: spec:
rules: rules:
- host: myServiceB.foo.org - host: myserviceb.foo.org
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: myServiceB serviceName: myserviceb
servicePort: 80 servicePort: 80
``` ```