{"action":"opened","issue":{"url":"https://api.github.com/repos/GoogleContainerTools/kubehost/issues/2","repository_url":"https://api.github.com/repos/GoogleContainerTools/kubehost","labels_url":"https://api.github.com/repos/GoogleContainerTools/kubehost/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/GoogleContainerTools/kubehost/issues/2/comments","events_url":"https://api.github.com/repos/GoogleContainerTools/kubehost/issues/2/events","html_url":"https://github.com/GoogleContainerTools/kubehost/issues/2","id":367926711,"node_id":"MDU6SXNzdWUzNjc5MjY3MTE=","number":2,"title":"Two services exposed on the same IP/port","user":{"login":"ahmetb","id":159209,"node_id":"MDQ6VXNlcjE1OTIwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/159209?v=4","gravatar_id":"","url":"https://api.github.com/users/ahmetb","html_url":"https://github.com/ahmetb","followers_url":"https://api.github.com/users/ahmetb/followers","following_url":"https://api.github.com/users/ahmetb/following{/other_user}","gists_url":"https://api.github.com/users/ahmetb/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmetb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmetb/subscriptions","organizations_url":"https://api.github.com/users/ahmetb/orgs","repos_url":"https://api.github.com/users/ahmetb/repos","events_url":"https://api.github.com/users/ahmetb/events{/privacy}","received_events_url":"https://api.github.com/users/ahmetb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-08T19:41:32Z","updated_at":"2018-10-08T19:41:32Z","closed_at":null,"author_association":"MEMBER","body":"I have two services:\r\n\r\n1. GKE Guestbook sample: This was deployed previously with `type:LoadBalancer`, I used `kubehost downgrade` to downgrade it, and it uses my node IP now.\r\n\r\n2. GKE hello-app sample: Deployed as\r\n    - `kubectl run hello-server --image gcr.io/google-samples/hello-app:1.0 --port 8080`\r\n    - `kubectl expose deploy hello-server`.\r\n\r\nThe 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.\r\n\r\nOutput of downgrading (as expected):\r\n\r\n```\r\n$ kubehost downgrade frontend\r\nNAME       TYPE           CLUSTER-IP      EXTERNAL-IP     PORT(S)        AGE\r\nfrontend   LoadBalancer   10.19.243.219   35.188.13.254   80:30394/TCP   40d\r\nservice/frontend patched\r\nNAME       TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)   AGE\r\nfrontend   ClusterIP   10.19.243.219   <none>        80/TCP    40d\r\nCreating hostPort deployment 'frontend-hostport' for service 'frontend' (TCP:80).\r\nkubectl run --generator=deployment/apps.v1beta1 is DEPRECATED and will be removed in a future version. Use kubectl create instead.\r\ndeployment.apps/frontend-hostport created\r\nWaiting for available replicas of deployment 'frontend-hostport'\r\nCreating ingress firewall rule from TCP:80 to instances with tag gke-demo-1b59f56c-node.\r\nCreating firewall...⠧Created [https://www.googleapis.com/compute/v1/projects/ahmetb-samples-playground/global/firewalls/default-frontend-rule].\r\nCreating firewall...done.\r\nNAME                   NETWORK  DIRECTION  PRIORITY  ALLOW   DENY  DISABLED\r\ndefault-frontend-rule  default  INGRESS    1000      tcp:80        False\r\nService exposed on 35.184.7.16\r\n```\r\n\r\nOutput of bind (unexpectedly bound to the same IP/port?):\r\n\r\n```\r\n$ kubectl run hello-server --image gcr.io/google-samples/hello-app:1.0 --port 8080\r\n\r\n$ kubectl expose deploy hello-server\r\n\r\n$ kubehost bind hello-server\r\nNAME           TYPE        CLUSTER-IP     EXTERNAL-IP   PORT(S)    AGE\r\nhello-server   ClusterIP   10.19.255.65   <none>        8080/TCP   20s\r\nCreating hostPort deployment 'hello-server-hostport' for service 'hello-server' (TCP:8080).\r\nkubectl run --generator=deployment/apps.v1beta1 is DEPRECATED and will be removed in a future version. Use kubectl create instead.\r\ndeployment.apps/hello-server-hostport created\r\nWaiting for available replicas of deployment 'hello-server-hostport'\r\nCreating ingress firewall rule from TCP:8080 to instances with tag gke-demo-1b59f56c-node.\r\nCreating firewall...⠧Created [https://www.googleapis.com/compute/v1/projects/ahmetb-samples-playground/global/firewalls/default-hello-server-rule].\r\nCreating firewall...done.\r\nNAME                       NETWORK  DIRECTION  PRIORITY  ALLOW     DENY  DISABLED\r\ndefault-hello-server-rule  default  INGRESS    1000      tcp:8080        False\r\nService exposed on 35.184.7.16\r\n```"}}
{"actor":{"display_login":"ahmetb"}}