kubectl create namespace httpbin kubectl run httpbin --image=citizenstig/httpbin --port=8000 -n httpbin kubectl expose deployment httpbin --name=httpbin -n httpbin kubectl create ns whoami kubectl run whoami --image=containous/whoami --port=80 -n whoami kubectl expose deployment whoami --name=whoami -n whoami kubectl create ns qotm kubectl run qotm --image=datawire/qotm:1.7 --port=5000 -n qotm kubectl expose deployment qotm --name=qotm -n qotm kubectl apply -f - << EOF kind: Ingress apiVersion: networking.k8s.io/v1beta1 metadata: name: httpbin annotations: traefik.ingress.kubernetes.io/router.entrypoints: web namespace: httpbin spec: rules: - host: httpbin.example.io http: paths: - path: / backend: serviceName: httpbin servicePort: 8000 EOF kubectl apply -f - << EOF kind: Ingress apiVersion: networking.k8s.io/v1beta1 metadata: name: qotm annotations: traefik.ingress.kubernetes.io/router.entrypoints: web namespace: qotm spec: rules: - host: qotm.example.io http: paths: - path: / backend: serviceName: qotm servicePort: 5000 EOF kubectl apply -f - << EOF kind: Ingress apiVersion: networking.k8s.io/v1beta1 metadata: name: myingress annotations: traefik.ingress.kubernetes.io/router.entrypoints: web namespace: whoami spec: rules: - host: whoami.example.io http: paths: - path: / backend: serviceName: whoami servicePort: 80 - path: /bar backend: serviceName: whoami servicePort: 80 - path: /foo backend: serviceName: whoami servicePort: 80 EOF