# # Copyright 2017-2019 The Jaeger Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software distributed under the License # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express # or implied. See the License for the specific language governing permissions and limitations under # the License. # apiVersion: v1 kind: List items: - apiVersion: apps/v1beta1 kind: StatefulSet metadata: name: elasticsearch labels: app: elasticsearch app.kubernetes.io/name: elasticsearch app.kubernetes.io/component: storage-backend app.kubernetes.io/part-of: jaeger spec: serviceName: elasticsearch replicas: 1 template: metadata: labels: app: elasticsearch app.kubernetes.io/name: elasticsearch app.kubernetes.io/component: storage-backend app.kubernetes.io/part-of: jaeger spec: containers: - name: elasticsearch image: docker.elastic.co/elasticsearch/elasticsearch:5.6.0 imagePullPolicy: Always command: - bin/elasticsearch args: - "-Ehttp.host=0.0.0.0" - "-Etransport.host=127.0.0.1" volumeMounts: - name: data mountPath: /data readinessProbe: exec: command: - curl - --fail - --silent - --output - /dev/null - --user - elastic:changeme - localhost:9200 initialDelaySeconds: 5 periodSeconds: 5 timeoutSeconds: 4 volumes: - name: data emptyDir: {} - apiVersion: v1 kind: Service metadata: name: elasticsearch labels: app: elasticsearch app.kubernetes.io/name: elasticsearch app.kubernetes.io/component: storage-backend app.kubernetes.io/part-of: jaeger spec: clusterIP: None selector: app.kubernetes.io/name: elasticsearch app.kubernetes.io/component: storage-backend app.kubernetes.io/part-of: jaeger ports: - port: 9200 name: elasticsearch - port: 9300 name: transport