{"action":"closed","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/10227","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/10227/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/10227/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/10227/events","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/issues/10227","id":90418382,"number":10227,"title":"Failed to access other containers of a pod in Kubernetes","user":{"login":"huangqg","id":5961349,"avatar_url":"https://avatars.githubusercontent.com/u/5961349?v=3","gravatar_id":"","url":"https://api.github.com/users/huangqg","html_url":"https://github.com/huangqg","followers_url":"https://api.github.com/users/huangqg/followers","following_url":"https://api.github.com/users/huangqg/following{/other_user}","gists_url":"https://api.github.com/users/huangqg/gists{/gist_id}","starred_url":"https://api.github.com/users/huangqg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangqg/subscriptions","organizations_url":"https://api.github.com/users/huangqg/orgs","repos_url":"https://api.github.com/users/huangqg/repos","events_url":"https://api.github.com/users/huangqg/events{/privacy}","received_events_url":"https://api.github.com/users/huangqg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/kind/support","name":"kind/support","color":"eb6420"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/priority/P2","name":"priority/P2","color":"fbca04"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/team/any","name":"team/any","color":"d2b48c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-23T15:24:54Z","updated_at":"2015-06-27T04:12:33Z","closed_at":"2015-06-27T04:12:33Z","body":"Hi,\r\n\r\nI create a pod that contains two containers, one is ubuntu, the other is mysql, while I ssh to ubuntu, and connect to mysql via localhost, it's failed. other test include:\r\n```\r\nps -ef | grep mysql\r\nnetstat -anp | grep 3306\r\n```\r\nnothing find about the mysql container\r\n\r\nthe rc file list below:\r\n```\r\n{\r\n    \"kind\": \"ReplicationController\",\r\n    \"apiVersion\": \"v1beta3\",\r\n    \"metadata\": {\r\n        \"name\": \"ubuntu2-1mwic\",\r\n        \"namespace\": \"8124927qkwm\",\r\n        \"selfLink\": \"/api/v1beta3/namespaces/8124927qkwm/replicationcontrollers/ubuntu2-1mwic\",\r\n        \"uid\": \"afd65398-19bb-11e5-b27d-00163e0057bf\",\r\n        \"resourceVersion\": \"38531127\",\r\n        \"creationTimestamp\": \"2015-06-23T15:22:40Z\",\r\n        \"labels\": {\r\n            \"name\": \"ubuntu2-1mwic\"\r\n        }\r\n    },\r\n    \"spec\": {\r\n        \"replicas\": 1,\r\n        \"selector\": {\r\n            \"name\": \"ubuntu2-1mwic\"\r\n        },\r\n        \"template\": {\r\n            \"metadata\": {\r\n                \"creationTimestamp\": \"2015-06-23T15:22:39Z\",\r\n                \"labels\": {\r\n                    \"name\": \"ubuntu2-1mwic\"\r\n                }\r\n            },\r\n            \"spec\": {\r\n                \"volumes\": [\r\n                    {\r\n                        \"name\": \"ubuntu2-1mwicmysql\",\r\n                        \"hostPath\": {\r\n                            \"path\": \"/gce/app_data/8124927qkwm/ubuntu2-1mwicmysql\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"containers\": [\r\n                    {\r\n                        \"name\": \"ubuntu2-1mwic\",\r\n                        \"image\": \"10.171.81.240:8080/ubuntu:latest\",\r\n                        \"ports\": [\r\n                            {\r\n                                \"containerPort\": 22,\r\n                                \"protocol\": \"TCP\"\r\n                            }\r\n                        ],\r\n                        \"env\": [\r\n                            {\r\n                                \"name\": \"ROOT_PASS\",\r\n                                \"value\": \"p0o9i8u7\"\r\n                            }\r\n                        ],\r\n                        \"resources\": {\r\n                            \"limits\": {\r\n                                \"cpu\": \"100m\",\r\n                                \"memory\": \"128Mi\"\r\n                            }\r\n                        },\r\n                        \"terminationMessagePath\": \"/dev/termination-log\",\r\n                        \"imagePullPolicy\": \"IfNotPresent\",\r\n                        \"capabilities\": {},\r\n                        \"securityContext\": {\r\n                            \"capabilities\": {},\r\n                            \"privileged\": false\r\n                        }\r\n                    },\r\n                    {\r\n                        \"name\": \"ubuntu2-1mwicmysql\",\r\n                        \"image\": \"10.171.81.240:8080/mysql\",\r\n                        \"ports\": [\r\n                            {\r\n                                \"containerPort\": 3306,\r\n                                \"protocol\": \"TCP\"\r\n                            }\r\n                        ],\r\n                        \"env\": [\r\n                            {\r\n                                \"name\": \"MYSQL_USER\",\r\n                                \"value\": \"root\"\r\n                            },\r\n                            {\r\n                                \"name\": \"MYSQL_PASS\",\r\n                                \"value\": \"p0o9i8u7\"\r\n                            }\r\n                        ],\r\n                        \"resources\": {\r\n                            \"limits\": {\r\n                                \"cpu\": \"200m\",\r\n                                \"memory\": \"300Mi\"\r\n                            }\r\n                        },\r\n                        \"volumeMounts\": [\r\n                            {\r\n                                \"name\": \"ubuntu2-1mwicmysql\",\r\n                                \"mountPath\": \"/var/lib/mysql\"\r\n                            }\r\n                        ],\r\n                        \"terminationMessagePath\": \"/dev/termination-log\",\r\n                        \"imagePullPolicy\": \"IfNotPresent\",\r\n                        \"capabilities\": {},\r\n                        \"securityContext\": {\r\n                            \"capabilities\": {},\r\n                            \"privileged\": false\r\n                        }\r\n                    }\r\n                ],\r\n                \"restartPolicy\": \"Always\",\r\n                \"dnsPolicy\": \"ClusterFirst\",\r\n                \"serviceAccount\": \"\"\r\n            }\r\n        }\r\n    },\r\n    \"status\": {\r\n        \"replicas\": 0\r\n    }\r\n}\r\n```\r\ncould you help me on this? thanks."}}