Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # nodes: data + api
- apiVersion: extensions/v1beta1
- kind: ReplicaSet
- metadata:
- name: es2-rs
- spec:
- template:
- metadata:
- labels:
- component: elasticsearch
- role: data
- spec:
- containers:
- - name: es2-data
- resources:
- limits:
- cpu: 1
- memory: 16Gi
- requests:
- cpu: 0.5
- memory: 2Gi
- securityContext:
- privileged: true
- capabilities:
- add:
- - IPC_LOCK
- image: quay.io/pires/docker-elasticsearch-kubernetes:2.3.4
- env:
- - name: NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- - name: "CLUSTER_NAME"
- value: "edissons"
- - name: NODE_MASTER
- value: "false"
- - name: NODE_DATA
- value: "true"
- - name: HTTP_ENABLE
- value: "true"
- ports:
- - containerPort: 9200
- name: http
- protocol: TCP
- - containerPort: 9300
- name: transport
- protocol: TCP
- volumeMounts:
- - name: es2-storage
- mountPath: /data
- volumes:
- - name: es2-storage
- gcePersistentDisk:
- pdName: edissons-es2-persistent
- fsType: ext4
- # gcloud compute disks delete --project "spair-api" --zone "us-central1-f" edissons-es2-persistent
- # yes | gcloud compute disks create --project "spair-api" --type pd-ssd --zone "us-central1-f" --size 200GB edissons-es2-persistent
Add Comment
Please, Sign In to add comment