today I was reading a blog post and I discovered a service called nip.io It allows to easily resolve local domains.
I have Docker for Mac where I run Kubernetes, I am trying to run some services and be able to access from my local network
I wrote a yaml file for ingress
apiVersion: extensions/v1beta1
kind: Ingress
metadata: namespace: "localservices" name: "localservices-ingress"
spec: rules: - host: "localservices.192.168.0.101.nip.io" http: paths: - backend: serviceName: "my-service-1" servicePort: 80 path: "/service-1" - backend: serviceName: "my-service-2" servicePort: 80 path: "/service-2"Then I applied the file
kubectl apply -f localservices.ingress.ymlIt seems that there is something blocking the domain resolution
I tried adding to /etc/hosts
8.8.8.8 nip.ioand to /etc/resolv.conf
8.8.8.8I am willing to understand why this is not working and the way to fix it
Reset to default