Practice Test CKA Ingress 1
- Take me to Practice Test
Solution
-
Check the Solution
Ok -
Check the Solution
INGRESS-SPACE -
Check the Solution
NGINX-INGRESS-CONTROLLER -
Check the Solution
APP-SPACE -
Check the Solution
3 -
Check the Solution
APP-SPACE -
Check the Solution
INGRESS-WEAR-WATCH -
Check the Solution
ALL-HOSTS(*) -
Check the Solution
WEAR-SERVICE -
Check the Solution
/WATCH -
Check the Solution
DEFAULT-HTTP-BACKEND -
Check the Solution
404-ERROR-PAGE -
Check the Solution
OK -
Check the Solution
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
OK -
Check the Solution
404 ERROR PAGE -
Check the Solution
OK -
Check the Solution
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
OK -
Check the Solution
CRITICAL-SPACE -
Check the Solution
WEBAPP-PAY -
Check the Solution
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
OK