- Take me to Practice Test
-
Check the Solution
Details
Ok -
Check the Solution
Details
INGRESS-SPACE -
Check the Solution
Details
NGINX-INGRESS-CONTROLLER -
Check the Solution
Details
APP-SPACE -
Check the Solution
Details
3 -
Check the Solution
Details
APP-SPACE -
Check the Solution
Details
INGRESS-WEAR-WATCH -
Check the Solution
Details
ALL-HOSTS(*) -
Check the Solution
Details
WEAR-SERVICE -
Check the Solution
Details
/WATCH -
Check the Solution
Details
DEFAULT-HTTP-BACKEND -
Check the Solution
Details
404-ERROR-PAGE -
Check the Solution
Details
OK -
Check the Solution
Details
kubectl edit ingress --namespace app-spaceChange the path from /watch to /stream
OR
apiVersion: v1 items: - apiVersion: extensions/v1beta1 kind: Ingress metadata: annotations: nginx.ingress.kubernetes.io/rewrite-target: / nginx.ingress.kubernetes.io/ssl-redirect: "false" name: ingress-wear-watch namespace: app-space spec: rules: - http: paths: - backend: serviceName: wear-service servicePort: 8080 path: /wear pathType: ImplementationSpecific - backend: serviceName: video-service servicePort: 8080 path: /stream pathType: ImplementationSpecific status: loadBalancer: ingress: - {} kind: List metadata: resourceVersion: "" selfLink: ""
-
Check the Solution
Details
OK -
Check the Solution
Details
404 ERROR PAGE -
Check the Solution
Details
OK -
Check the Solution
Details
Run the command
kubectl edit ingress --namespace app-spaceand add a new Path entry for the new service.OR
apiVersion: v1 items: - apiVersion: extensions/v1beta1 kind: Ingress metadata: annotations: nginx.ingress.kubernetes.io/rewrite-target: / nginx.ingress.kubernetes.io/ssl-redirect: "false" name: ingress-wear-watch namespace: app-space spec: rules: - http: paths: - backend: serviceName: wear-service servicePort: 8080 path: /wear pathType: ImplementationSpecific - backend: serviceName: video-service servicePort: 8080 path: /stream pathType: ImplementationSpecific - backend: serviceName: food-service servicePort: 8080 path: /eat pathType: ImplementationSpecific status: loadBalancer: ingress: - {} kind: List metadata: resourceVersion: "" selfLink: ""
-
Check the Solution
Details
OK -
Check the Solution
Details
CRITICAL-SPACE -
Check the Solution
Details
WEBAPP-PAY -
Check the Solution
Details
apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: test-ingress namespace: critical-space annotations: nginx.ingress.kubernetes.io/rewrite-target: / nginx.ingress.kubernetes.io/ssl-redirect: "false" spec: rules: - http: paths: - path: /pay pathType: Prefix backend: service: name: pay-service port: number: 8282
-
Check the Solution
Details
OK