Last active
July 21, 2018 21:23
-
-
Save masroorhasan/283bbeb7deddc0214f69e46a891dd1dd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1beta1 | |
kind: StatefulSet | |
metadata: | |
name: elasticsearch | |
namespace: monitoring | |
labels: | |
app: elasticsearch | |
jaeger-infra: elasticsearch-statefulset | |
spec: | |
serviceName: elasticsearch | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: jaeger-elasticsearch | |
jaeger-infra: elasticsearch-replica | |
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 | |
namespace: monitoring | |
labels: | |
app: elasticsearch | |
jaeger-infra: elasticsearch-service | |
spec: | |
clusterIP: None | |
selector: | |
app: jaeger-elasticsearch | |
ports: | |
- port: 9200 | |
name: elasticsearch | |
- port: 9300 | |
name: transport |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment