Code Monkey home page Code Monkey logo

Comments (6)

pires avatar pires commented on May 16, 2024 1

This is not documentation but code and I didn't see where they removed the serviceAccount. It's working for me.

from kubernetes-elasticsearch-cluster.

pires avatar pires commented on May 16, 2024

I will look into this. Really weird, working with my Kubernetes set-up. Otherwise, wouldn't be able to start it and update the documentation according to the latest versions.

from kubernetes-elasticsearch-cluster.

pires avatar pires commented on May 16, 2024

@changx can you please point me where in the documentation or examples one finds such serviceAccountName instead of serviceAccount? Does your cluster allow for tokens?

from kubernetes-elasticsearch-cluster.

 avatar commented on May 16, 2024

i also changed in my rc because they have this in there api reference https://godoc.org/github.com/GoogleCloudPlatform/kubernetes/pkg/api#PodSpec

from kubernetes-elasticsearch-cluster.

changx avatar changx commented on May 16, 2024

@pires

https://htmlpreview.github.io/?https://github.com/GoogleCloudPlatform/kubernetes/HEAD/docs/api-reference/definitions.html#_v1_podspec

and, sure it is changed in commit

kubernetes/kubernetes@7a3891e

14 days ago....

from kubernetes-elasticsearch-cluster.

pires avatar pires commented on May 16, 2024

I've tried once more with 1.0.1 as per https://github.com/pires/kubernetes-vagrant-coreos-cluster and the Elasticsearch cluster works as is. I'll close this but please do provide more feedback.

$ kubectl create -f service-account.yaml
$ kubectl create -f elasticsearch-discovery-service.yaml
$ kubectl create -f elasticsearch-service.yaml
$ kubectl create -f elasticsearch-master-controller.yaml
# I've waited until master was up
$ kubectl create -f elasticsearch-lb-controller.yaml
$ kubectl create -f elasticsearch-data-controller.yaml

$ kubectl get pods
NAME                         READY     STATUS    RESTARTS   AGE
elasticsearch-data-1b1c8     1/1       Running   0          3m
elasticsearch-lb-9wypd       1/1       Running   0          4m
elasticsearch-master-qc5h3   1/1       Running   0          6m
kube-dns-sezkg               3/3       Running   0          21m

$ kubectl logs elasticsearch-master-qc5h3
log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.DailyRollingFileAppender.
log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.DailyRollingFileAppender.
log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.DailyRollingFileAppender.
[2015-07-31 10:55:18,495][WARN ][bootstrap                ] Unable to lock JVM memory (ENOMEM). This can result in part of the JVM being swapped out. Increase RLIMIT_MEMLOCK (ulimit).
[2015-07-31 10:55:18,634][INFO ][node                     ] [Haywire] version[1.7.1], pid[1], build[b88f43f/2015-07-29T09:54:16Z]
[2015-07-31 10:55:18,634][INFO ][node                     ] [Haywire] initializing ...
[2015-07-31 10:55:18,773][INFO ][plugins                  ] [Haywire] loaded [cloud-kubernetes], sites []
[2015-07-31 10:55:18,819][INFO ][env                      ] [Haywire] using [1] data paths, mounts [[/data (/dev/sda9)]], net usable_space [14.4gb], net total_space [15.5gb], types [ext4]
[2015-07-31 10:55:23,013][INFO ][node                     ] [Haywire] initialized
[2015-07-31 10:55:23,013][INFO ][node                     ] [Haywire] starting ...
[2015-07-31 10:55:23,249][INFO ][transport                ] [Haywire] bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/10.244.37.2:9300]}
[2015-07-31 10:55:23,297][INFO ][discovery                ] [Haywire] elasticsearch-k8s/xeKR97QjSxWT7VHQRr7XPQ
[2015-07-31 10:55:29,229][INFO ][cluster.service          ] [Haywire] new_master [Haywire][xeKR97QjSxWT7VHQRr7XPQ][elasticsearch-master-qc5h3][inet[/10.244.37.2:9300]]{data=false, master=true}, reason: zen-disco-join (elected_as_master)
[2015-07-31 10:55:29,252][INFO ][node                     ] [Haywire] started
[2015-07-31 10:55:29,278][INFO ][gateway                  ] [Haywire] recovered [0] indices into cluster_state
[2015-07-31 10:57:15,289][INFO ][cluster.service          ] [Haywire] added {[Wong][ywCmbOyoSei2ihFeLG0ZqA][elasticsearch-lb-9wypd][inet[/10.244.37.3:9300]]{data=false, master=false},}, reason: zen-disco-receive(join from node[[Wong][ywCmbOyoSei2ihFeLG0ZqA][elasticsearch-lb-9wypd][inet[/10.244.37.3:9300]]{data=false, master=false}])
[2015-07-31 10:58:07,333][INFO ][cluster.service          ] [Haywire] added {[Mister Hyde][snmCO8TcS_GSm2u6BEBSEg][elasticsearch-data-1b1c8][inet[/10.244.37.4:9300]]{master=false},}, reason: zen-disco-receive(join from node[[Mister Hyde][snmCO8TcS_GSm2u6BEBSEg][elasticsearch-data-1b1c8][inet[/10.244.37.4:9300]]{master=false}])

$ kubectl get service elasticsearch
NAME            LABELS                                       SELECTOR                                     IP(S)          PORT(S)
elasticsearch   component=elasticsearch,role=load-balancer   component=elasticsearch,role=load-balancer   10.100.227.7   9200/TCP

$ vagrant ssh node-01
CoreOS valpha (758.1.0)
Update Strategy: No Reboots
core@node-01 ~ $ curl http://10.100.227.7:9200/_cluster/health?pretty
{
  "cluster_name" : "elasticsearch-k8s",
  "status" : "green",
  "timed_out" : false,
  "number_of_nodes" : 3,
  "number_of_data_nodes" : 1,
  "active_primary_shards" : 0,
  "active_shards" : 0,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 0,
  "delayed_unassigned_shards" : 0,
  "number_of_pending_tasks" : 0,
  "number_of_in_flight_fetch" : 0
}

from kubernetes-elasticsearch-cluster.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.