azure - How do I expose Kubernetes service to the internet? -
i running kubernetes cluster 1 master (also node) , 2 nodes on azure. using ubuntu flannel overlay network. far working well. problem have exposing service internet.
i running cluster on azure subnet. master has nic attached has public ip. means if run simple server listens on port 80, can reach server using domain name (azure gives option have domain name public ip).
i able reach kubernetes guest book frontend service hack. did check listening ports on master , try each port public ip. able hit kubernetes service , response. based on understanding directly going pod running on master (which node) rather going through service ip (which have load balanced across of pods).
my question how map external ip service ip? know kubernetes has setting works on gce (which can't use right now). there neat way of telling etcd/flannel this?
if use kubectl expose command:
--external-ip="": external ip address set service. service can accessed ip in addition generated service ip.
or if create json or yaml file, use spec/externalips array.
Comments
Post a Comment