I have created a service account 'elasticsearch' and also create the template kubernetes.json in my Vagrant Fabric8 latest version.
I can see the 3 Elasticsearch pods creates successfully, however, I am getting the following error :
[2016-02-05 14:03:31,588][INFO ][discovery ] [Vampire by Night] elasticsearch/oZGPpiw_TlWKsnnaK-J3YA
9
[2016-02-05 14:03:32,397][WARN ][io.fabric8.elasticsearch.discovery.kubernetes.KubernetesUnicastHostsProvider] [Vampire by Night] Exception caught during discovery: Failure executing: GET at:
https://kubernetes.default.svc/api/v1/namespaces/fxdev/endpoints/elasticsearch-masters. Received status: Status(apiVersion=v1, code=
403, details=null, kind=Status, message=Forbidden!Configured service account doesn't have access. Service account may have been revoked., metadata=null, reason=null, status=null, additionalProperties={}). Message: Forbidden!Configured service account doesn't have access. Service account may have been revoked..
10
io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: GET at:
https://kubernetes.default.svc/api/v1/namespaces/fxdev/endpoints/elasticsearch-masters. Received status: Status(apiVersion=v1, code=403, details=null, kind=Status, message=Forbidden!Configured service account doesn't have access. Service account may have been revoked., metadata=null, reason=null, status=null, additionalProperties={}). Message: Forbidden!Configured service account doesn't have access. Service account may have been revoked..
11 at io.fabric8.kubernetes.client.dsl.base.OperationSupport.requestFailure(OperationSupport.java:236)
12 at io.fabric8.kubernetes.client.dsl.base.OperationSupport.assertResponseCode(OperationSupport.java:207)
13 at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:184)
14 at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleGet(OperationSupport.java:173)
15 at io.fabric8.kubernetes.client.dsl.base.BaseOperation.handleGet(BaseOperation.java:472)
16 at io.fabric8.kubernetes.client.dsl.base.BaseOperation.get(BaseOperation.java:105)
17 at io.fabric8.elasticsearch.cloud.kubernetes.KubernetesAPIServiceImpl.endpoints(KubernetesAPIServiceImpl.java:35)
18 at