kops/addons/ingress-nginx
kanolato 079e23f406 updated image versions and deployment instructions 2018-08-28 18:45:19 -05:00
..
README.md updated image versions and deployment instructions 2018-08-28 18:45:19 -05:00
addon.yaml fix addon name 2016-10-05 12:23:11 -04:00
v1.4.0.yaml Convert registry to k8s.gcr.io 2018-02-14 10:08:41 -08:00
v1.6.0-gce.yaml updated image versions and deployment instructions 2018-08-28 18:45:19 -05:00
v1.6.0.yaml updated image versions and deployment instructions 2018-08-28 18:45:19 -05:00

README.md

Deployment

AWS

kubectl apply -f https://raw.githubusercontent.com/kubernetes/kops/master/addons/ingress-nginx/v1.6.0.yaml

GCE

kubectl apply -f https://raw.githubusercontent.com/kubernetes/kops/master/addons/ingress-nginx/v1.6.0-gce.yaml

Creating a simple ingress

kubectl run echoheaders --image=k8s.gcr.io/echoserver:1.4 --replicas=1 --port=8080
kubectl expose deployment echoheaders --port=80 --target-port=8080 --name=echoheaders-x
kubectl expose deployment echoheaders --port=80 --target-port=8080 --name=echoheaders-y

kubectl apply -f https://raw.githubusercontent.com/kubernetes/contrib/master/ingress/controllers/nginx/examples/ingress.yaml

kubectl get services ingress-nginx -owide

NAME            CLUSTER-IP      EXTERNAL-IP                                                               PORT(S)          AGE       SELECTOR
ingress-nginx   100.71.196.44   a29c28f4b8b0811e685cb0a924c5a8a1-1593015597.us-east-1.elb.amazonaws.com   80/TCP,443/TCP   13m       app=ingress-nginx

curl -v -H "Host: bar.baz.com" http://a29c28f4b8b0811e685cb0a924c5a8a1-1593015597.us-east-1.elb.amazonaws.com/bar