{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/acs-engine/issues/564","repository_url":"https://api.github.com/repos/Azure/acs-engine","labels_url":"https://api.github.com/repos/Azure/acs-engine/issues/564/labels{/name}","comments_url":"https://api.github.com/repos/Azure/acs-engine/issues/564/comments","events_url":"https://api.github.com/repos/Azure/acs-engine/issues/564/events","html_url":"https://github.com/Azure/acs-engine/issues/564","id":225634317,"number":564,"title":"Error when creating kubernetes cluster using networkpolicy `azure`","user":{"login":"wangtt03","id":302631,"avatar_url":"https://avatars2.githubusercontent.com/u/302631?v=3","gravatar_id":"","url":"https://api.github.com/users/wangtt03","html_url":"https://github.com/wangtt03","followers_url":"https://api.github.com/users/wangtt03/followers","following_url":"https://api.github.com/users/wangtt03/following{/other_user}","gists_url":"https://api.github.com/users/wangtt03/gists{/gist_id}","starred_url":"https://api.github.com/users/wangtt03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangtt03/subscriptions","organizations_url":"https://api.github.com/users/wangtt03/orgs","repos_url":"https://api.github.com/users/wangtt03/repos","events_url":"https://api.github.com/users/wangtt03/events{/privacy}","received_events_url":"https://api.github.com/users/wangtt03/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-02T09:06:13Z","updated_at":"2017-05-02T17:15:24Z","closed_at":"2017-05-02T17:15:24Z","body":"repo steps:\r\n1. create kubernetes cluster using networkpolicy `azure`\r\n    ```\r\n    \"orchestratorProfile\": {\r\n      \"orchestratorType\": \"Kubernetes\",\r\n      \"KubernetesConfig\":{\r\n        \"NetworkPolicy\":\"azure\"\r\n      },\r\n      \"orchestratorVersion\": \"1.6.2\"\r\n    },\r\n    ```\r\n2. login to created kubernetes cluster.\r\n3. run `kubectl run nginx --image=nginx --replicas=1`\r\n4. run `kubectl expose deployment nginx --port=80`\r\n5. run `kubectl annotate ns default \"net.beta.kubernetes.io/network-policy={\\\"ingress\\\": {\\\"isolation\\\": \\\"DefaultDeny\\\"}}\"`\r\n6. create file `nginx-policy.yaml` with content:\r\n    ```\r\n    kind: NetworkPolicy\r\n    apiVersion: extensions/v1beta1\r\n    metadata:\r\n      name: access-nginx\r\n    spec:\r\n      podSelector:\r\n        matchLabels:\r\n          run: nginx\r\n      ingress:\r\n        - from:\r\n          - podSelector:\r\n              matchLabels:\r\n                access: \"true\"\r\n    ```\r\n7. run `kubectl create -f nginx-policy.yaml`\r\n8. run `kubectl run busybox --rm -ti --image=busybox /bin/sh`\r\n9. run `wget --spider --timeout=1 nginx`\r\n\r\nexpected:\r\nwget timeout.\r\n\r\nactual:\r\nconnected."},"comment":{"url":"https://api.github.com/repos/Azure/acs-engine/issues/comments/298700410","html_url":"https://github.com/Azure/acs-engine/issues/564#issuecomment-298700410","issue_url":"https://api.github.com/repos/Azure/acs-engine/issues/564","id":298700410,"user":{"login":"JackQuincy","id":20996660,"avatar_url":"https://avatars1.githubusercontent.com/u/20996660?v=3","gravatar_id":"","url":"https://api.github.com/users/JackQuincy","html_url":"https://github.com/JackQuincy","followers_url":"https://api.github.com/users/JackQuincy/followers","following_url":"https://api.github.com/users/JackQuincy/following{/other_user}","gists_url":"https://api.github.com/users/JackQuincy/gists{/gist_id}","starred_url":"https://api.github.com/users/JackQuincy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JackQuincy/subscriptions","organizations_url":"https://api.github.com/users/JackQuincy/orgs","repos_url":"https://api.github.com/users/JackQuincy/repos","events_url":"https://api.github.com/users/JackQuincy/events{/privacy}","received_events_url":"https://api.github.com/users/JackQuincy/received_events","type":"User","site_admin":false},"created_at":"2017-05-02T17:15:24Z","updated_at":"2017-05-02T17:15:24Z","body":"Closing as we are already tracking this issue with #561 \r\n"}}
{"actor":{"display_login":"JackQuincy"}}