Exposed application on Windows 10 machine using Kubernetes minikube cluster and Nginx ingress controller:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress-nginx-controller
annotations:
kubernetes.io/ingress.class: "nginx"
spec:
rules:
- host: testapp
http:
paths:
- path: /testapp-web-dev
pathType: Prefix
backend:
service:
name: testapp-portal-web-service
port:
number: 80
- path: /testapp-api1-dev
pathType: Prefix
backend:
service:
name: testapp-portal-api1-service
port:
number: 80
- path: /testapp-api2-dev
pathType: Prefix
backend:
service:
name: testapp-portal-api2-service
port:
number: 80
Added testapp entry into etc hosts and all is working fine locally. I can access application locally as http://testapp/testapp-web-dev or http://testapp//testapp-api1-dev
Now I'm wondering how could I expose this outside this computer which is in domain? I.e. computer name is machine1 and I want other users of domain access all its components as http://machine1/testapp-web-dev http://machine1/testapp-api1-dev or something similar.