Created
August 11, 2018 05:43
-
-
Save victortsaitw12/f3c2488fb00cf3df726281baaa5b4cad to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| metadata: | |
| name: elasticsearch | |
| spec: | |
| serviceName: elasticsearch-service | |
| replicas: 1 | |
| template: | |
| metadata: | |
| labels: | |
| role: elasticsearch | |
| spec: | |
| initContainers: | |
| - name: sysctl | |
| image: busybox | |
| imagePullPolicy: IfNotPresent | |
| command: ["sysctl", "-w", "vm.max_map_count=262144"] | |
| securityContext: | |
| privileged: true | |
| containers: | |
| - name: elasticsearch-container | |
| image: victortsaitw12/elasticsearch_ik | |
| imagePullPolicy: Always | |
| ports: | |
| - containerPort: 9300 | |
| name: transport | |
| protocol: TCP | |
| - containerPort: 9200 | |
| name: http | |
| protocol: TCP | |
| env: | |
| - name: "ES_JAVA_OPTS" | |
| value: "-Xms2g -Xmx2g" | |
| volumeMounts: | |
| - name: elasticsearch-persistent-storage-claim | |
| mountPath: /usr/share/elasticsearch/data | |
| volumeClaimTemplates: | |
| - metadata: | |
| name: elasticsearch-persistent-storage-claim | |
| annotations: | |
| volume.beta.kubernetes.io/storage-class: "fast" | |
| spec: | |
| accessModes: ["ReadWriteOnce"] | |
| resources: | |
| requests: | |
| storage: 5Gi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment