Closed ahmetb closed 5 years ago
In this case it bound to the same IP, as the port was different (80 and 8080). Similar to #8.
FYI: kubehost uses the Kubernetes scheduler to find a node IP with an available port, if no ports are available then the hostport deployment won't schedule, and kuehost will return an error.
I have two services:
GKE Guestbook sample: This was deployed previously with
type:LoadBalancer
, I usedkubehost downgrade
to downgrade it, and it uses my node IP now.GKE hello-app sample: Deployed as
kubectl run hello-server --image gcr.io/google-samples/hello-app:1.0 --port 8080
kubectl expose deploy hello-server
.The problem is, after doing
kubehost bind
with app (2), it deployed to the same IP as app (1), so I can't actually access app (2) from the listed IP.Output of downgrading (as expected):
Output of bind (unexpectedly bound to the same IP/port?):