{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/22307","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/22307/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/22307/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/22307/events","html_url":"https://github.com/kubernetes/kubernetes/issues/22307","id":137673907,"number":22307,"title":"Cassandra cannot reach apiserver","user":{"login":"andrejvanderzee","id":1555310,"avatar_url":"https://avatars.githubusercontent.com/u/1555310?v=3","gravatar_id":"","url":"https://api.github.com/users/andrejvanderzee","html_url":"https://github.com/andrejvanderzee","followers_url":"https://api.github.com/users/andrejvanderzee/followers","following_url":"https://api.github.com/users/andrejvanderzee/following{/other_user}","gists_url":"https://api.github.com/users/andrejvanderzee/gists{/gist_id}","starred_url":"https://api.github.com/users/andrejvanderzee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrejvanderzee/subscriptions","organizations_url":"https://api.github.com/users/andrejvanderzee/orgs","repos_url":"https://api.github.com/users/andrejvanderzee/repos","events_url":"https://api.github.com/users/andrejvanderzee/events{/privacy}","received_events_url":"https://api.github.com/users/andrejvanderzee/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/kind/example","name":"kind/example","color":"c7def8"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/priority/P2","name":"priority/P2","color":"fbca04"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/team/ux","name":"team/ux","color":"d2b48c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-01T20:09:15Z","updated_at":"2016-06-11T19:24:51Z","closed_at":null,"body":"Hi,\r\n\r\nOn kube v1.2.0-alpha8, I am trying the cassandra example with the image gcr.io/google_containers/cassandra:v6 but the apiserver fails to resolve DNS for the apiserver on kubernetes.default.cluster.local:\r\n\r\n```\r\nINFO  19:59:03 Getting endpoints from https://kubernetes.default.cluster.local/api/v1/namespaces/default/endpoints/cassandra\r\nWARN  19:59:16 Request to kubernetes apiserver failed\r\njava.net.UnknownHostException: kubernetes.default.cluster.local\r\n\tat java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178) ~[na:1.7.0_79]\r\n\tat java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:1.7.0_79]\r\n\tat java.net.Socket.connect(Socket.java:579) ~[na:1.7.0_79]\r\n\tat sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:625) ~[na:1.7.0_79]\r\n\tat sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160) ~[na:1.7.0_79]\r\n\tat sun.net.NetworkClient.doConnect(NetworkClient.java:180) ~[na:1.7.0_79]\r\n\tat sun.net.www.http.HttpClient.openServer(HttpClient.java:432) ~[na:1.7.0_79]\r\n\tat sun.net.www.http.HttpClient.openServer(HttpClient.java:527) ~[na:1.7.0_79]\r\n\tat sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:275) ~[na:1.7.0_79]\r\n\tat sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:371) ~[na:1.7.0_79]\r\n....\r\n```\r\n\r\nHow can I override DNS and make the container use my local (insecure) apiserver?\r\n\r\nThis is the Pod spec I am using:\r\n\r\n```\r\napiVersion: v1\r\nkind: Pod\r\nmetadata:\r\n  labels:\r\n    app: cassandra\r\n  name: cassandra-1\r\nspec:\r\n  containers:\r\n  - args:\r\n    - /run.sh\r\n    resources:\r\n      limits:\r\n        cpu: \"0.1\"\r\n    image: gcr.io/google_containers/cassandra:v6\r\n    name: cassandra\r\n    ports:\r\n    - name: cql\r\n      containerPort: 9042\r\n    - name: thrift\r\n      containerPort: 9160\r\n    volumeMounts:\r\n    - name: data\r\n      mountPath: /cassandra_data\r\n    env:\r\n    - name: MAX_HEAP_SIZE\r\n      value: 256M\r\n    - name: HEAP_NEWSIZE\r\n      value: 64M\r\n    - name: POD_NAMESPACE\r\n      valueFrom:\r\n        fieldRef:\r\n          fieldPath: metadata.namespace\r\n  volumes:\r\n  - name: data\r\n    hostPath:\r\n      path: /var/lib/cassandra-1\r\n```\r\n\r\n\r\nThanks,\r\nAndrej"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/225388820","html_url":"https://github.com/kubernetes/kubernetes/issues/22307#issuecomment-225388820","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/22307","id":225388820,"user":{"login":"chrislovecnm","id":335402,"avatar_url":"https://avatars.githubusercontent.com/u/335402?v=3","gravatar_id":"","url":"https://api.github.com/users/chrislovecnm","html_url":"https://github.com/chrislovecnm","followers_url":"https://api.github.com/users/chrislovecnm/followers","following_url":"https://api.github.com/users/chrislovecnm/following{/other_user}","gists_url":"https://api.github.com/users/chrislovecnm/gists{/gist_id}","starred_url":"https://api.github.com/users/chrislovecnm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrislovecnm/subscriptions","organizations_url":"https://api.github.com/users/chrislovecnm/orgs","repos_url":"https://api.github.com/users/chrislovecnm/repos","events_url":"https://api.github.com/users/chrislovecnm/events{/privacy}","received_events_url":"https://api.github.com/users/chrislovecnm/received_events","type":"User","site_admin":false},"created_at":"2016-06-11T19:24:51Z","updated_at":"2016-06-11T19:24:51Z","body":"@andrejvanderzee ping ... otherwise can we close?"}}
{"actor":{"display_login":"chrislovecnm"}}