Kubernetes

Complete the following configuration file to make it Ingress

metadata:
  name: someapp-ingress
spec:

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

There are several ways to answer this question.

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: someapp-ingress
spec:
  rules:
  - host: my.host
    http:
      paths:
      - backend:
          serviceName: someapp-internal-service
          servicePort: 8080