Create an Ingress resource in Minikube

3/29/2019

Im new to Ingress(k8s) and studying via documentation. Here is the official documentation - Ingress Minikube. Under Create and ingress resource, I've already done steps 1-3 with no problem but I can't seem to do what step 4 asks. I have located the file inside the ingress-nginx-controller pod: /etc/hosts; but I can't seem to have any idea on how to edit it. I can't install vim-tiny or any other editing tools due to permission being denied. Sudo does not work. I just want to edit the /etc/hosts file.

-- KevCep
kubernetes
kubernetes-ingress
minikube

2 Answers

3/29/2019

that is ip address or step is to setup DNS A record which expose your application to outside netwrok kubernetes cluster.

ingress > service > POD
-- Harsh Manvar
Source: StackOverflow

3/29/2019

This particular step (#4) should be done at your localhost, not inside ingress-controller pod. It`s just for mapping of hostname to IP addresses, so that you can verify if you can reach your application from outside exposed by Ingress resource.

-- Nepomucen
Source: StackOverflow