{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/23629","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/23629/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/23629/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/23629/events","html_url":"https://github.com/kubernetes/kubernetes/issues/23629","id":144600428,"number":23629,"title":"Only first pod gets secrets set as env vars","user":{"login":"vaijab","id":1308018,"avatar_url":"https://avatars.githubusercontent.com/u/1308018?v=3","gravatar_id":"","url":"https://api.github.com/users/vaijab","html_url":"https://github.com/vaijab","followers_url":"https://api.github.com/users/vaijab/followers","following_url":"https://api.github.com/users/vaijab/following{/other_user}","gists_url":"https://api.github.com/users/vaijab/gists{/gist_id}","starred_url":"https://api.github.com/users/vaijab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vaijab/subscriptions","organizations_url":"https://api.github.com/users/vaijab/orgs","repos_url":"https://api.github.com/users/vaijab/repos","events_url":"https://api.github.com/users/vaijab/events{/privacy}","received_events_url":"https://api.github.com/users/vaijab/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/team/control-plane","name":"team/control-plane","color":"d2b48c"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/team/node","name":"team/node","color":"d2b48c"}],"state":"open","locked":false,"assignee":{"login":"pmorie","id":366488,"avatar_url":"https://avatars.githubusercontent.com/u/366488?v=3","gravatar_id":"","url":"https://api.github.com/users/pmorie","html_url":"https://github.com/pmorie","followers_url":"https://api.github.com/users/pmorie/followers","following_url":"https://api.github.com/users/pmorie/following{/other_user}","gists_url":"https://api.github.com/users/pmorie/gists{/gist_id}","starred_url":"https://api.github.com/users/pmorie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmorie/subscriptions","organizations_url":"https://api.github.com/users/pmorie/orgs","repos_url":"https://api.github.com/users/pmorie/repos","events_url":"https://api.github.com/users/pmorie/events{/privacy}","received_events_url":"https://api.github.com/users/pmorie/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2016-03-30T13:53:08Z","updated_at":"2016-03-31T13:25:21Z","closed_at":null,"body":"I am not sure whether this is an intended behaviour, if it is, then I cannot think of a practical reason.\r\n\r\nWith 1.2 I am seeing that only the first pod of the same replication controller gets the below env variable set. All subsequent pods will have an empty variable set as `SECRET_TOKEN_VAR=`.\r\n\r\n```\r\nenv:\r\n  - name: SECRET_TOKEN_VAR\r\n    valueFrom:\r\n      secretKeyRef:\r\n        name: mysecret\r\n        key: token\r\n```"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/203934694","html_url":"https://github.com/kubernetes/kubernetes/issues/23629#issuecomment-203934694","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/23629","id":203934694,"user":{"login":"sgrimee","id":215011,"avatar_url":"https://avatars.githubusercontent.com/u/215011?v=3","gravatar_id":"","url":"https://api.github.com/users/sgrimee","html_url":"https://github.com/sgrimee","followers_url":"https://api.github.com/users/sgrimee/followers","following_url":"https://api.github.com/users/sgrimee/following{/other_user}","gists_url":"https://api.github.com/users/sgrimee/gists{/gist_id}","starred_url":"https://api.github.com/users/sgrimee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgrimee/subscriptions","organizations_url":"https://api.github.com/users/sgrimee/orgs","repos_url":"https://api.github.com/users/sgrimee/repos","events_url":"https://api.github.com/users/sgrimee/events{/privacy}","received_events_url":"https://api.github.com/users/sgrimee/received_events","type":"User","site_admin":false},"created_at":"2016-03-31T13:25:21Z","updated_at":"2016-03-31T13:25:21Z","body":"Thanks. When I run the exact same manifests the variable is NOT set in both cases:\r\n\r\n```\r\n  ᐅ kubectl exec -it test-2kqa2 env | grep TOKEN\r\nTOKEN=\r\n\r\n  ᐅ kubectl exec -it test-afp74 env | grep TOKEN\r\nTOKEN=\r\n\r\n  ᐅ kubectl version\r\nClient Version: version.Info{Major:\"1\", Minor:\"2\", GitVersion:\"v1.2.0+5cb86ee\", GitCommit:\"5cb86ee022267586db386f62781338b0483733b3\", GitTreeState:\"not a git tree\"}\r\nServer Version: version.Info{Major:\"1\", Minor:\"2\", GitVersion:\"v1.2.0\", GitCommit:\"5cb86ee022267586db386f62781338b0483733b3\", GitTreeState:\"clean\"}\r\n```"}}