Example names violate DNS naming stadards

Original names which gave errors:    myServiceA, myServiceB
Alatere suggestions:    
myServiceA --> myservicea, my_service_a, my-service-a
myServiceB --> myserviceb, my_service_b, my-service-b
This commit is contained in:
Gajendra D Ambi 2020-04-02 23:17:20 +05:30 committed by GitHub
parent b33c9a21a5
commit f3050740ef
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
``` ```