kubectl --namespace default create deployment echoserver --image k8s.gcr.io/echoserver:1.3
kubectl --namespace default expose deployment echoserver --port=8080
kubectl --namespace default create ingress echoserver\
--annotation kubernetes.io/ingress.class=haproxy\
--rule="echoserver.local/*=echoserver:8080"
kubectl --namespace prod create deployment echoserver --image k8s.gcr.io/echoserver:1.3 kubectl --namespace prod expose deployment echoserver --port=8080
kubectl --namespace prod create ingress echoserver\ --annotation kubernetes.io/ingress.class=haproxy\ --rule="echoserver.local/*=echoserver:8080"