{"action":"created","issue":{"url":"https://api.github.com/repos/upmc-enterprises/elasticsearch-operator/issues/151","repository_url":"https://api.github.com/repos/upmc-enterprises/elasticsearch-operator","labels_url":"https://api.github.com/repos/upmc-enterprises/elasticsearch-operator/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/upmc-enterprises/elasticsearch-operator/issues/151/comments","events_url":"https://api.github.com/repos/upmc-enterprises/elasticsearch-operator/issues/151/events","html_url":"https://github.com/upmc-enterprises/elasticsearch-operator/issues/151","id":298110377,"number":151,"title":"\"Could not get version from api server\"","user":{"login":"DimaBogdan-phie","id":33295616,"avatar_url":"https://avatars0.githubusercontent.com/u/33295616?v=4","gravatar_id":"","url":"https://api.github.com/users/DimaBogdan-phie","html_url":"https://github.com/DimaBogdan-phie","followers_url":"https://api.github.com/users/DimaBogdan-phie/followers","following_url":"https://api.github.com/users/DimaBogdan-phie/following{/other_user}","gists_url":"https://api.github.com/users/DimaBogdan-phie/gists{/gist_id}","starred_url":"https://api.github.com/users/DimaBogdan-phie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DimaBogdan-phie/subscriptions","organizations_url":"https://api.github.com/users/DimaBogdan-phie/orgs","repos_url":"https://api.github.com/users/DimaBogdan-phie/repos","events_url":"https://api.github.com/users/DimaBogdan-phie/events{/privacy}","received_events_url":"https://api.github.com/users/DimaBogdan-phie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-18T19:23:59Z","updated_at":"2018-02-20T22:33:14Z","closed_at":null,"author_association":"NONE","body":"Hello!\r\n\r\nCould you tell me please, what am I doing wrong? \r\n\r\nI have 2 node cluster on CentOS 7 where **kubernetes** has been deployed via **kubespray**.\r\n\r\n```bash\r\n[root@node1 ~]# kubectl --version\r\nKubernetes v1.8.3+coreos.0\r\n[root@node2 ~]# kubelet --version\r\nKubernetes v1.9.3\r\n```\r\n\r\nWhen I try to deploy operator, I get:\r\n```bash\r\n[root@node1 ~]# kubectl create -f https://raw.githubusercontent.com/upmc-enterprises/elasticsearch-operator/master/example/controller.yaml -n operator\r\nserviceaccount \"elasticsearch-operator\" created\r\nclusterrole \"elasticsearch-operator\" created\r\nclusterrolebinding \"elasticsearch-operator\" created\r\ndeployment \"elasticsearch-operator\" created\r\n[root@node1 ~]# kubectl get po -n operator\r\nNAME                                      READY     STATUS    RESTARTS   AGE\r\nelasticsearch-operator-6f6f9c455f-lnffz   0/1       Running   2          1m\r\n[root@node1 ~]# kubectl logs -f elasticsearch-operator-6f6f9c455f-lnffz -n operator\r\ntime=\"2018-02-18T18:57:12Z\" level=info msg=\"elasticsearch operator starting up!\"\r\ntime=\"2018-02-18T18:57:12Z\" level=info msg=\"Using Variables:\"\r\ntime=\"2018-02-18T18:57:12Z\" level=info msg=\"   baseImage: upmcenterprises/docker-elasticsearch-kubernetes:5.3.1\"\r\ntime=\"2018-02-18T18:57:12Z\" level=info msg=\"Using InCluster k8s config\"\r\ntime=\"2018-02-18T18:57:42Z\" level=error msg=\"Could not get version from api server:Get https://10.233.0.1:443/version: dial tcp 10.233.0.1:443: i/o timeout\"\r\npanic: runtime error: invalid memory address or nil pointer dereference\r\n[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xeb934b]\r\n\r\ngoroutine 1 [running]:\r\ngithub.com/upmc-enterprises/elasticsearch-operator/pkg/k8sutil.newKubeClient(0x0, 0x0, 0xc4203aab40, 0xc4203bbd08, 0x6c0207, 0xc42007\r\nc268, 0x0, 0x0, 0xc4203bbd50, 0x6c05de, ...)\r\n        /Users/stevesloka/godev/src/github.com/upmc-enterprises/elasticsearch-operator/pkg/k8sutil/k8sutil.go:149 +0x1ab\r\ngithub.com/upmc-enterprises/elasticsearch-operator/pkg/k8sutil.New(0x0, 0x0, 0x10f5dcb, 0x15, 0x1, 0x4dbea3, 0xc4202d9030)\r\n        /Users/stevesloka/godev/src/github.com/upmc-enterprises/elasticsearch-operator/pkg/k8sutil/k8sutil.go:88 +0x4d\r\nmain.Main(0xecb393)\r\n        /Users/stevesloka/godev/src/github.com/upmc-enterprises/elasticsearch-operator/cmd/operator/main.go:78 +0x1ad\r\nmain.main()\r\n        /Users/stevesloka/godev/src/github.com/upmc-enterprises/elasticsearch-operator/cmd/operator/main.go:144 +0x22\r\n```\r\n\r\n![image](https://user-images.githubusercontent.com/33295616/36355780-87ad1c5c-14f9-11e8-9009-9906661be3c5.png)\r\n![image](https://user-images.githubusercontent.com/33295616/36355845-a4e1b43a-14fa-11e8-946e-8012c74ac902.png)\r\n"},"comment":{"url":"https://api.github.com/repos/upmc-enterprises/elasticsearch-operator/issues/comments/367144271","html_url":"https://github.com/upmc-enterprises/elasticsearch-operator/issues/151#issuecomment-367144271","issue_url":"https://api.github.com/repos/upmc-enterprises/elasticsearch-operator/issues/151","id":367144271,"user":{"login":"DimaBogdan-phie","id":33295616,"avatar_url":"https://avatars0.githubusercontent.com/u/33295616?v=4","gravatar_id":"","url":"https://api.github.com/users/DimaBogdan-phie","html_url":"https://github.com/DimaBogdan-phie","followers_url":"https://api.github.com/users/DimaBogdan-phie/followers","following_url":"https://api.github.com/users/DimaBogdan-phie/following{/other_user}","gists_url":"https://api.github.com/users/DimaBogdan-phie/gists{/gist_id}","starred_url":"https://api.github.com/users/DimaBogdan-phie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DimaBogdan-phie/subscriptions","organizations_url":"https://api.github.com/users/DimaBogdan-phie/orgs","repos_url":"https://api.github.com/users/DimaBogdan-phie/repos","events_url":"https://api.github.com/users/DimaBogdan-phie/events{/privacy}","received_events_url":"https://api.github.com/users/DimaBogdan-phie/received_events","type":"User","site_admin":false},"created_at":"2018-02-20T22:33:14Z","updated_at":"2018-02-20T22:33:14Z","author_association":"NONE","body":"Thank you! \r\nIt was actually a version issue.  "}}
{"actor":{"display_login":"DimaBogdan-phie"}}