Change:
What happened: On latest fluentd-elasticsearch, the elasticsearch replicas seems failed to form a valid cluster with the service discovery helper written in golang. What you expected to happen: Successfully boot up an elasticsearch cluster I guess. How to reproduce it (as minimally and precisely as possible): Just use the yamls in and the elasticsearch-logging pods will keep spamming warning messages. I think thats because options are deprecated in elasticsearch 7.x.x Anything else we need to know?: IMHO I think thats all. Environment: Kubernetes version (use ): 1.12.4 Cloud provider or hardware configuration: AKS OS (e.g: ): Kernel (e.g. ): Install tools: Network plugin and version (if this is a network-related bug): Others:
/sig instrumentation
Thanks

Discussion:
RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -a -ldflags "-w" -o /elasticsearch_logging_discovery /elasticsearch_logging_discovery.go <del> FROM docker.elastic.co/elasticsearch/elasticsearch-oss:7.1.1 </del> <ins> FROM docker.elastic.co/elasticsearch/elasticsearch-oss:7.2.0 </ins> VOLUME ["/data"] EXPOSE 9200 9300

PREFIX = quay.io/fluentd_elasticsearch IMAGE = elasticsearch <del> TAG = v7.1.1 </del> <ins> TAG = v7.2.0 </ins> build: <del> docker build  --tag ${PREFIX}/${IMAGE}:${TAG} . </del> <ins> docker build --tag ${PREFIX}/${IMAGE}:${TAG} . docker build --tag ${PREFIX}/${IMAGE}:latest . </ins> push: <del> docker push ${PREFIX}/${IMAGE}:${TAG} </del> <ins> docker push ${PREFIX}/${IMAGE}:${TAG} </ins> docker push ${PREFIX}/${IMAGE}:latest

node.master: ${NODE_MASTER} node.data: ${NODE_DATA} <del> transport.tcp.port: ${TRANSPORT_PORT} </del> <ins> transport.profiles.default.port: ${TRANSPORT_PORT} </ins> http.port: ${HTTP_PORT} path.data: /data network.host: 0.0.0.0 <del> discovery.zen.minimum_master_nodes: ${MINIMUM_MASTER_NODES} </del>

} klog.Infof("Endpoints = %s", addrs) <del> fmt.Printf("discovery.zen.ping.unicast.hosts: [%s]n", strings.Join(addrs, ", ")) </del> <ins> fmt.Printf("discovery.seed_hosts: [%s]n", strings.Join(addrs, ", ")) fmt.Printf("cluster.initial_master_nodes: [%s]n", strings.Join(addrs, ", ")) </ins> }

golang.org/x/time v0.0.0-20181108054448-85acf8d2951c // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/yaml.v2 v2.2.2 // indirect <del> k8s.io/api v0.0.0-20190111032252-67edc246be36 // indirect </del> <ins> k8s.io/api v0.0.0-20190111032252-67edc246be36 </ins> k8s.io/apiextensions-apiserver v0.0.0-20190111034747-7d26de67f177 // indirect k8s.io/apimachinery v0.0.0-20181127025237-2b1284ed4c93 k8s.io/apiserver v0.0.0-20190111033246-d50e9ac5404f // indirect

namespace: kube-system labels: k8s-app: elasticsearch-logging <del> version: v7.1.1 </del> <ins> version: v7.2.0 </ins> addonmanager.kubernetes.io/mode: Reconcile spec: serviceName: elasticsearch-logging

selector: matchLabels: k8s-app: elasticsearch-logging <del> version: v7.1.1 </del> <ins> version: v7.2.0 </ins> template: metadata: labels: k8s-app: elasticsearch-logging <del> version: v7.1.1 </del> <ins> version: v7.2.0 </ins> spec: serviceAccountName: elasticsearch-logging containers: <del> - image: quay.io/fluentd_elasticsearch/elasticsearch:v7.1.1 </del> <ins> - image: quay.io/fluentd_elasticsearch/elasticsearch:v7.2.0 </ins> name: elasticsearch-logging <ins> imagePullPolicy: Always </ins> resources: # need more cpu upon initialization, therefore burstable class limits:

spec: containers: - name: kibana-logging <del> image: docker.elastic.co/kibana/kibana-oss:7.1.1 </del> <ins> image: docker.elastic.co/kibana/kibana-oss:7.2.0 </ins> resources: # need more cpu upon initialization, therefore burstable class limits:

requests: cpu: 100m env: <del> - name: ELASTICSEARCH_URL </del> <ins> - name: ELASTICSEARCH_HOSTS </ins> value: http://elasticsearch-logging:9200 <ins> - name: SERVER_NAME value: kibana-logging </ins> - name: SERVER_BASEPATH value: /api/v1/namespaces/kube-system/services/kibana-logging/proxy <ins> - name: SERVER_REWRITEBASEPATH value: "false" </ins> ports: - containerPort: 5601 name: ui