0
0
Kubernetesdevops~10 mins

Ingress resource definition in Kubernetes - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to specify the API version for an Ingress resource.

Kubernetes
apiVersion: [1]
Drag options to blanks, or click blank then click option'
Anetworking.k8s.io/v1
Bapps/v1
Cextensions/v1beta1
Dv1
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'v1' alone without the group.
Using deprecated 'extensions/v1beta1'.
2fill in blank
medium

Complete the code to define the kind of the Kubernetes resource as Ingress.

Kubernetes
kind: [1]
Drag options to blanks, or click blank then click option'
ADeployment
BIngress
CService
DPod
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Service' or 'Deployment' instead of 'Ingress'.
3fill in blank
hard

Fix the error in the metadata section by completing the name field.

Kubernetes
metadata:
  name: [1]
Drag options to blanks, or click blank then click option'
Amy-ingress
Bdefault
Cnginx
Dservice
Attempts:
3 left
💡 Hint
Common Mistakes
Using reserved or generic names that may conflict.
4fill in blank
hard

Fill both blanks to define a rule for host and path in the Ingress spec.

Kubernetes
spec:
  rules:
  - host: [1]
    http:
      paths:
      - path: [2]
Drag options to blanks, or click blank then click option'
Aexample.com
B/
C/api
Dmyapp.local
Attempts:
3 left
💡 Hint
Common Mistakes
Using invalid host names or incorrect path formats.
5fill in blank
hard

Fill all three blanks to complete the backend service definition in the Ingress.

Kubernetes
        backend:
          service:
            name: [1]
            port:
              number: [2]
  [3]
Drag options to blanks, or click blank then click option'
Amy-service
B80
Cmetadata: annotations: nginx.ingress.kubernetes.io/rewrite-target: /
Dspec: rules: - http:
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong port numbers or placing annotations in the wrong section.