Complete the code to specify the API version for an Ingress resource.
apiVersion: [1]The correct API version for Ingress in modern Kubernetes is networking.k8s.io/v1.
Complete the code to define the kind of the Kubernetes resource as Ingress.
kind: [1]The resource kind for defining an Ingress is Ingress.
Fix the error in the metadata section by completing the name field.
metadata:
name: [1]The metadata name should be a unique identifier for the Ingress, like my-ingress.
Fill both blanks to define a rule for host and path in the Ingress spec.
spec: rules: - host: [1] http: paths: - path: [2]
The host should be a domain like example.com and the path is usually '/' for root.
Fill all three blanks to complete the backend service definition in the Ingress.
backend:
service:
name: [1]
port:
number: [2]
[3]The backend service name is my-service, port number is 80, and annotations can be added under metadata for rewrite rules.