{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/35576","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/35576/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/35576/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/35576/events","html_url":"https://github.com/kubernetes/kubernetes/issues/35576","id":185283674,"number":35576,"title":"Failed to negotiate an api version v1","user":{"login":"DjangoPeng","id":16943353,"avatar_url":"https://avatars.githubusercontent.com/u/16943353?v=3","gravatar_id":"","url":"https://api.github.com/users/DjangoPeng","html_url":"https://github.com/DjangoPeng","followers_url":"https://api.github.com/users/DjangoPeng/followers","following_url":"https://api.github.com/users/DjangoPeng/following{/other_user}","gists_url":"https://api.github.com/users/DjangoPeng/gists{/gist_id}","starred_url":"https://api.github.com/users/DjangoPeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DjangoPeng/subscriptions","organizations_url":"https://api.github.com/users/DjangoPeng/orgs","repos_url":"https://api.github.com/users/DjangoPeng/repos","events_url":"https://api.github.com/users/DjangoPeng/events{/privacy}","received_events_url":"https://api.github.com/users/DjangoPeng/received_events","type":"User","site_admin":false},"labels":[{"id":138247961,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/area/kubectl","name":"area/kubectl","color":"0052cc","default":false},{"id":173493835,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/sig/api-machinery","name":"sig/api-machinery","color":"d2b48c","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-10-26T02:45:28Z","updated_at":"2017-02-14T03:59:10Z","closed_at":"2017-02-14T03:59:10Z","body":"Everytime when I run `kubectl version`, I get the error:\n\n```\nerror: failed to negotiate an api version; server supports: map[], client supports: \nmap[authentication.k8s.io/v1beta1:{} componentconfig/v1alpha1:{} extensions/v1beta1:{} \nrbac.authorization.k8s.io/v1alpha1:{} autoscaling/v1:{} batch/v2alpha1:{} v1:{} policy/v1alpha1:{} \nfederation/v1beta1:{} authorization.k8s.io/v1beta1:{} batch/v1:{} apps/v1alpha1:{}]\n```\n\nVersion Info:\n- Ubuntu 14.04 64bit\n- latest version of k8s master branch\n- docker v1.12.1\n\nI login shell with user `dl`, and localhost is `9.91.9.130`.\nrbac.yaml\n\n```\n\n---\nkind: \"ClusterRole\"\napiVersion: \"rbac.authorization.k8s.io/v1alpha1\"\nmetadata:\n  name: \"admin\"\nrules:\n  - apiGroups: [\"*\"]\n    resources: [\"*\"]\n    verbs: [\"*\"]\n    nonResourceURLs: [\"*\"]\n\n---\nkind: \"ClusterRoleBinding\"\napiVersion: \"rbac.authorization.k8s.io/v1alpha1\"\nmetadata:\n  name: \"admin\"\nsubjects:\n  - kind: \"User\"\n    name: \"pjt\"\nroleRef:\n  kind: \"ClusterRole\"\n  apiVersion: \"rbac.authorization.k8s.io/v1alpha1\"\n  name: \"admin\"\n```\n\n.kube/config\n\n```\napiVersion: v1\nclusters:\n- cluster:\n    insecure-skip-tls-verify: true\n    server: http://9.91.9.130:8080\n  name: ubuntu\ncontexts:\n- context:\n    cluster: ubuntu\n    user: ubuntu\n  name: ubuntu\ncurrent-context: ubuntu\nkind: Config\npreferences: {}\nusers:\n- name: ubuntu\n  user:\n    password: 2fO8rxXAHZs3OE1H\n    username: admin\n```\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/279601657","html_url":"https://github.com/kubernetes/kubernetes/issues/35576#issuecomment-279601657","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/35576","id":279601657,"user":{"login":"liggitt","id":980082,"avatar_url":"https://avatars.githubusercontent.com/u/980082?v=3","gravatar_id":"","url":"https://api.github.com/users/liggitt","html_url":"https://github.com/liggitt","followers_url":"https://api.github.com/users/liggitt/followers","following_url":"https://api.github.com/users/liggitt/following{/other_user}","gists_url":"https://api.github.com/users/liggitt/gists{/gist_id}","starred_url":"https://api.github.com/users/liggitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liggitt/subscriptions","organizations_url":"https://api.github.com/users/liggitt/orgs","repos_url":"https://api.github.com/users/liggitt/repos","events_url":"https://api.github.com/users/liggitt/events{/privacy}","received_events_url":"https://api.github.com/users/liggitt/received_events","type":"User","site_admin":false},"created_at":"2017-02-14T03:59:10Z","updated_at":"2017-02-14T03:59:10Z","body":"Closing this as the original issue has been fixed.\r\n\r\nDefaultStorageClass is a valid admission plugin in HEAD"}}
{"actor":{"display_login":"liggitt"}}