es-2 master
This commit is contained in:
parent
952e8a5470
commit
77616e88f7
@ -222,4 +222,128 @@ spec:
|
||||
server: 10.100.93.1 # fenny
|
||||
path: /root/elasticsearch/coldData/config
|
||||
|
||||
---
|
||||
# PV for Hot Snapshot
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: elasticsearch-hot-snapshot-pv
|
||||
spec:
|
||||
capacity:
|
||||
storage: 100Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
nfs:
|
||||
server: 10.100.93.1
|
||||
path: /root/elasticsearch/hotSnapshot
|
||||
|
||||
---
|
||||
# PV for Warm Snapshot
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: elasticsearch-warm-snapshot-pv
|
||||
spec:
|
||||
capacity:
|
||||
storage: 100Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
nfs:
|
||||
server: 10.100.93.1
|
||||
path: /root/elasticsearch/warmSnapshot
|
||||
|
||||
---
|
||||
# PV for Warm2 Snapshot
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: elasticsearch-warm2-snapshot-pv
|
||||
spec:
|
||||
capacity:
|
||||
storage: 100Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
nfs:
|
||||
server: 10.100.93.1
|
||||
path: /root/elasticsearch/warmSnapshot2
|
||||
|
||||
---
|
||||
# PV for Cold Snapshot
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: elasticsearch-cold-snapshot-pv
|
||||
spec:
|
||||
capacity:
|
||||
storage: 100Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
nfs:
|
||||
server: 10.100.93.1
|
||||
path: /root/elasticsearch/coldSnapshot
|
||||
|
||||
---
|
||||
# PVC for Hot Snapshot
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: elasticsearch-snapshot-pvc-elasticsearch-0
|
||||
namespace: efk
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 100Gi
|
||||
volumeName: elasticsearch-hot-snapshot-pv
|
||||
storageClassName: ""
|
||||
|
||||
---
|
||||
# PVC for Warm Snapshot
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: elasticsearch-snapshot-pvc-elasticsearch-1
|
||||
namespace: efk
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 100Gi
|
||||
volumeName: elasticsearch-warm-snapshot-pv
|
||||
storageClassName: ""
|
||||
|
||||
---
|
||||
# PVC for Warm2 Snapshot
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: elasticsearch-snapshot-pvc-elasticsearch-3
|
||||
namespace: efk
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 100Gi
|
||||
volumeName: elasticsearch-warm2-snapshot-pv
|
||||
storageClassName: ""
|
||||
|
||||
---
|
||||
# PVC for Cold Snapshot
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: elasticsearch-snapshot-pvc-elasticsearch-2
|
||||
namespace: efk
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 100Gi
|
||||
volumeName: elasticsearch-cold-snapshot-pv
|
||||
storageClassName: ""
|
||||
|
||||
|
||||
|
@ -55,6 +55,8 @@ spec:
|
||||
mountPath: /usr/share/elasticsearch/data
|
||||
- name: config-volume
|
||||
mountPath: /usr/share/elasticsearch/config
|
||||
- name: snapshot-volume
|
||||
mountPath: /usr/share/elasticsearch/snapshot
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
@ -73,6 +75,9 @@ spec:
|
||||
- name: config-volume
|
||||
persistentVolumeClaim:
|
||||
claimName: "elasticsearch-config-pvc-elasticsearch-0"
|
||||
- name: snapshot-volume
|
||||
persistentVolumeClaim:
|
||||
claimName: "elasticsearch-snapshot-pvc-elasticsearch-0"
|
||||
|
||||
---
|
||||
|
||||
@ -133,6 +138,8 @@ spec:
|
||||
mountPath: /usr/share/elasticsearch/data
|
||||
- name: config-volume
|
||||
mountPath: /usr/share/elasticsearch/config
|
||||
- name: snapshot-volume
|
||||
mountPath: /usr/share/elasticsearch/snapshot
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
@ -151,6 +158,9 @@ spec:
|
||||
- name: config-volume
|
||||
persistentVolumeClaim:
|
||||
claimName: "elasticsearch-config-pvc-elasticsearch-1"
|
||||
- name: snapshot-volume
|
||||
persistentVolumeClaim:
|
||||
claimName: "elasticsearch-snapshot-pvc-elasticsearch-1"
|
||||
|
||||
---
|
||||
|
||||
@ -198,7 +208,7 @@ spec:
|
||||
- name: ES_JAVA_OPTS
|
||||
value: "-Xms4g -Xmx4g"
|
||||
- name: node.roles
|
||||
value: "[data_cold, remote_cluster_client]"
|
||||
value: "[data_cold, master, remote_cluster_client]"
|
||||
resources:
|
||||
requests:
|
||||
memory: "4Gi"
|
||||
@ -211,6 +221,8 @@ spec:
|
||||
mountPath: /usr/share/elasticsearch/data
|
||||
- name: config-volume
|
||||
mountPath: /usr/share/elasticsearch/config
|
||||
- name: snapshot-volume
|
||||
mountPath: /usr/share/elasticsearch/snapshot
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
@ -229,6 +241,9 @@ spec:
|
||||
- name: config-volume
|
||||
persistentVolumeClaim:
|
||||
claimName: "elasticsearch-config-pvc-elasticsearch-2"
|
||||
- name: snapshot-volume
|
||||
persistentVolumeClaim:
|
||||
claimName: "elasticsearch-snapshot-pvc-elasticsearch-2"
|
||||
|
||||
---
|
||||
|
||||
@ -289,6 +304,8 @@ spec:
|
||||
mountPath: /usr/share/elasticsearch/data
|
||||
- name: config-volume
|
||||
mountPath: /usr/share/elasticsearch/config
|
||||
- name: snapshot-volume
|
||||
mountPath: /usr/share/elasticsearch/snapshot
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
@ -307,3 +324,6 @@ spec:
|
||||
- name: config-volume
|
||||
persistentVolumeClaim:
|
||||
claimName: "elasticsearch-config-pvc-elasticsearch-3"
|
||||
- name: snapshot-volume
|
||||
persistentVolumeClaim:
|
||||
claimName: "elasticsearch-snapshot-pvc-elasticsearch-3"
|
||||
|
Loading…
x
Reference in New Issue
Block a user