{"action":"created","issue":{"url":"https://api.github.com/repos/kubespray/setup-kubernetes/issues/166","repository_url":"https://api.github.com/repos/kubespray/setup-kubernetes","labels_url":"https://api.github.com/repos/kubespray/setup-kubernetes/issues/166/labels{/name}","comments_url":"https://api.github.com/repos/kubespray/setup-kubernetes/issues/166/comments","events_url":"https://api.github.com/repos/kubespray/setup-kubernetes/issues/166/events","html_url":"https://github.com/kubespray/setup-kubernetes/issues/166","id":137250604,"number":166,"title":"Weave:  Unable to loadbalance properly over 2 pods by using NodePort","user":{"login":"Smana","id":4101366,"avatar_url":"https://avatars.githubusercontent.com/u/4101366?v=3","gravatar_id":"","url":"https://api.github.com/users/Smana","html_url":"https://github.com/Smana","followers_url":"https://api.github.com/users/Smana/followers","following_url":"https://api.github.com/users/Smana/following{/other_user}","gists_url":"https://api.github.com/users/Smana/gists{/gist_id}","starred_url":"https://api.github.com/users/Smana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Smana/subscriptions","organizations_url":"https://api.github.com/users/Smana/orgs","repos_url":"https://api.github.com/users/Smana/repos","events_url":"https://api.github.com/users/Smana/events{/privacy}","received_events_url":"https://api.github.com/users/Smana/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubespray/setup-kubernetes/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/kubespray/setup-kubernetes/labels/network","name":"network","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-29T13:13:04Z","updated_at":"2016-03-03T21:58:49Z","closed_at":null,"body":"Reproduce the issue : \r\nDeploy the kubernetes cluster using weave as network-plugin.\r\nCreate a replication controller composed of 2 pods as follows : \r\n```\r\napiVersion: v1\r\nkind: ReplicationController\r\nmetadata:\r\n  name: nginx\r\n  labels: {'k8s-app': 'nginx', 'version': 'v1', 'kubernetes.io/cluster-service': 'true'}\r\nspec:\r\n  replicas: 2\r\n  selector: {'k8s-app': 'nginx'}\r\n  template:\r\n    metadata:\r\n      labels: {'k8s-app': 'nginx', 'version': 'v1', 'kubernetes.io/cluster-service': 'true'}\r\n    spec:\r\n      containers:\r\n      - name: nginx\r\n        image: nginx\r\n        ports: [{'protocol': 'TCP', 'containerPort': 80, 'name': 'nginx'}]\r\n        resources:\r\n          limits:\r\n            cpu: 10\r\n            memory: 44G\r\n        volumeMounts:\r\n          - name: \"html\"\r\n            mountPath: \"/usr/share/nginx/html\"\r\n          - name: \"nginx-config\"\r\n            mountPath: \"/etc/nginx/nginx.conf\"\r\n          - name: \"nginx-config-dir\"\r\n            mountPath: \"/etc/nginx/conf.d\"\r\n      volumes:\r\n      - name: \"html\"\r\n        hostPath:\r\n          path: \"/container/default/nginx/usr/share/nginx/html\"\r\n      - name: \"nginx-config\"\r\n        hostPath:\r\n          path: \"/container/default/nginx/etc/nginx/nginx.conf\"\r\n      - name: \"nginx-config-dir\"\r\n        hostPath:\r\n          path: \"/container/default/nginx/etc/nginx/conf.d\"\r\n```\r\nExpose the service with NodePort\r\n```\r\napiVersion: \"v1\"\r\nkind: \"Service\"\r\nmetadata:\r\n  name: nginx\r\n  labels: {'k8s-app': 'nginx', 'version': 'v1', 'kubernetes.io/cluster-service': 'true'}\r\nspec:\r\n  type: NodePort \r\n  selector: {'k8s-app': 'nginx'}\r\n  ports: \r\n  - name: http\r\n    port: 80\r\n    targetPort: 80\r\n    nodePort: 32222\r\n```\r\n\r\nRunning requests against the NodePort from a remote machine"},"comment":{"url":"https://api.github.com/repos/kubespray/setup-kubernetes/issues/comments/191984066","html_url":"https://github.com/kubespray/setup-kubernetes/issues/166#issuecomment-191984066","issue_url":"https://api.github.com/repos/kubespray/setup-kubernetes/issues/166","id":191984066,"user":{"login":"errordeveloper","id":251467,"avatar_url":"https://avatars.githubusercontent.com/u/251467?v=3","gravatar_id":"","url":"https://api.github.com/users/errordeveloper","html_url":"https://github.com/errordeveloper","followers_url":"https://api.github.com/users/errordeveloper/followers","following_url":"https://api.github.com/users/errordeveloper/following{/other_user}","gists_url":"https://api.github.com/users/errordeveloper/gists{/gist_id}","starred_url":"https://api.github.com/users/errordeveloper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/errordeveloper/subscriptions","organizations_url":"https://api.github.com/users/errordeveloper/orgs","repos_url":"https://api.github.com/users/errordeveloper/repos","events_url":"https://api.github.com/users/errordeveloper/events{/privacy}","received_events_url":"https://api.github.com/users/errordeveloper/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T21:58:49Z","updated_at":"2016-03-03T21:58:49Z","body":"Are you using latest release of Weave Net (v1.4.5 as of a few days ago)?"}}