https://kubernetes.github.io/ingress-nginx/deploy/
wget https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.3.0/deploy/static/provider/baremetal/deploy.yaml
创建一个简单的 httpd 网站和服务
kubectl create deployment demo --image=httpd --port=80
kubectl expose deployment demo
创建一个 ingress 资源
kubectl create ingress demo-localhost --class=nginx --rule="demo.localdev.me/*=demo:80"
端口转发:转发 ingress controller 的 80 端口,到localhost 的 8080 端口
kubectl port-forward --namespace=ingress-nginx service/ingress-nginx-controller 8080:80
标签:kubectl,ingress,--,demo,nginx,80,k8s,安装 From: https://www.cnblogs.com/fenghua001/p/16813497.html