时区,snapshot目录共享
This commit is contained in:
parent
77616e88f7
commit
9f2a7eeead
@ -10,4 +10,11 @@ data:
|
||||
node.attr.data-tier.elasticsearch-0: "hot"
|
||||
node.attr.data-tier.elasticsearch-1: "warm"
|
||||
node.attr.data-tier.elasticsearch-2: "cold"
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: timezone-config
|
||||
namespace: efk
|
||||
data:
|
||||
timezone: Asia/Shanghai
|
||||
|
@ -222,51 +222,6 @@ 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
|
||||
@ -282,54 +237,6 @@ spec:
|
||||
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
|
||||
|
@ -29,6 +29,8 @@ spec:
|
||||
- containerPort: 9300
|
||||
name: transport
|
||||
env:
|
||||
- name: TZ
|
||||
value: Asia/Shanghai
|
||||
- name: cluster.name
|
||||
value: "my-es-cluster"
|
||||
- name: node.name
|
||||
@ -51,6 +53,11 @@ spec:
|
||||
memory: "8Gi"
|
||||
cpu: "4"
|
||||
volumeMounts:
|
||||
- name: tz-db
|
||||
mountPath: /usr/share/zoneinfo
|
||||
- name: tz-config
|
||||
mountPath: /etc/localtime
|
||||
subPath: timezone
|
||||
- name: data
|
||||
mountPath: /usr/share/elasticsearch/data
|
||||
- name: config-volume
|
||||
@ -69,6 +76,16 @@ spec:
|
||||
nodeSelector:
|
||||
kubernetes.io/hostname: miracle
|
||||
volumes:
|
||||
- name: tz-db
|
||||
hostPath:
|
||||
path: /usr/share/zoneinfo
|
||||
type: Directory
|
||||
- name: tz-config
|
||||
configMap:
|
||||
name: timezone-config
|
||||
items:
|
||||
- key: timezone
|
||||
path: timezone
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: "elasticsearch-data-pvc-elasticsearch-0"
|
||||
@ -77,7 +94,7 @@ spec:
|
||||
claimName: "elasticsearch-config-pvc-elasticsearch-0"
|
||||
- name: snapshot-volume
|
||||
persistentVolumeClaim:
|
||||
claimName: "elasticsearch-snapshot-pvc-elasticsearch-0"
|
||||
claimName: "elasticsearch-snapshot-pvc-elasticsearch-2"
|
||||
|
||||
---
|
||||
|
||||
@ -112,6 +129,8 @@ spec:
|
||||
- containerPort: 9300
|
||||
name: transport
|
||||
env:
|
||||
- name: TZ
|
||||
value: Asia/Shanghai
|
||||
- name: cluster.name
|
||||
value: "my-es-cluster"
|
||||
- name: node.name
|
||||
@ -134,6 +153,11 @@ spec:
|
||||
memory: "6Gi"
|
||||
cpu: "2"
|
||||
volumeMounts:
|
||||
- name: tz-db
|
||||
mountPath: /usr/share/zoneinfo
|
||||
- name: tz-config
|
||||
mountPath: /etc/localtime
|
||||
subPath: timezone
|
||||
- name: data
|
||||
mountPath: /usr/share/elasticsearch/data
|
||||
- name: config-volume
|
||||
@ -152,6 +176,16 @@ spec:
|
||||
nodeSelector:
|
||||
kubernetes.io/hostname: lydia
|
||||
volumes:
|
||||
- name: tz-db
|
||||
hostPath:
|
||||
path: /usr/share/zoneinfo
|
||||
type: Directory
|
||||
- name: tz-config
|
||||
configMap:
|
||||
name: timezone-config
|
||||
items:
|
||||
- key: timezone
|
||||
path: timezone
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: "elasticsearch-data-pvc-elasticsearch-1"
|
||||
@ -160,7 +194,7 @@ spec:
|
||||
claimName: "elasticsearch-config-pvc-elasticsearch-1"
|
||||
- name: snapshot-volume
|
||||
persistentVolumeClaim:
|
||||
claimName: "elasticsearch-snapshot-pvc-elasticsearch-1"
|
||||
claimName: "elasticsearch-snapshot-pvc-elasticsearch-2"
|
||||
|
||||
---
|
||||
|
||||
@ -195,6 +229,8 @@ spec:
|
||||
- containerPort: 9300
|
||||
name: transport
|
||||
env:
|
||||
- name: TZ
|
||||
value: Asia/Shanghai
|
||||
- name: cluster.name
|
||||
value: "my-es-cluster"
|
||||
- name: node.name
|
||||
@ -217,6 +253,11 @@ spec:
|
||||
memory: "6Gi"
|
||||
cpu: "2"
|
||||
volumeMounts:
|
||||
- name: tz-db
|
||||
mountPath: /usr/share/zoneinfo
|
||||
- name: tz-config
|
||||
mountPath: /etc/localtime
|
||||
subPath: timezone
|
||||
- name: data
|
||||
mountPath: /usr/share/elasticsearch/data
|
||||
- name: config-volume
|
||||
@ -235,6 +276,16 @@ spec:
|
||||
nodeSelector:
|
||||
kubernetes.io/hostname: emma
|
||||
volumes:
|
||||
- name: tz-db
|
||||
hostPath:
|
||||
path: /usr/share/zoneinfo
|
||||
type: Directory
|
||||
- name: tz-config
|
||||
configMap:
|
||||
name: timezone-config
|
||||
items:
|
||||
- key: timezone
|
||||
path: timezone
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: "elasticsearch-data-pvc-elasticsearch-2"
|
||||
@ -278,6 +329,8 @@ spec:
|
||||
- containerPort: 9300
|
||||
name: transport
|
||||
env:
|
||||
- name: TZ
|
||||
value: Asia/Shanghai
|
||||
- name: cluster.name
|
||||
value: "my-es-cluster"
|
||||
- name: node.name
|
||||
@ -300,6 +353,10 @@ spec:
|
||||
memory: "6Gi"
|
||||
cpu: "2"
|
||||
volumeMounts:
|
||||
- name: tz-db
|
||||
mountPath: /usr/share/zoneinfo
|
||||
- name: tz-config
|
||||
mountPath: /etc/localtime
|
||||
- name: data
|
||||
mountPath: /usr/share/elasticsearch/data
|
||||
- name: config-volume
|
||||
@ -318,6 +375,16 @@ spec:
|
||||
nodeSelector:
|
||||
kubernetes.io/hostname: niyon
|
||||
volumes:
|
||||
- name: tz-db
|
||||
hostPath:
|
||||
path: /usr/share/zoneinfo
|
||||
type: Directory
|
||||
- name: tz-config
|
||||
configMap:
|
||||
name: timezone-config
|
||||
items:
|
||||
- key: timezone
|
||||
path: timezone
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: "elasticsearch-data-pvc-elasticsearch-3"
|
||||
@ -326,4 +393,4 @@ spec:
|
||||
claimName: "elasticsearch-config-pvc-elasticsearch-3"
|
||||
- name: snapshot-volume
|
||||
persistentVolumeClaim:
|
||||
claimName: "elasticsearch-snapshot-pvc-elasticsearch-3"
|
||||
claimName: "elasticsearch-snapshot-pvc-elasticsearch-2"
|
||||
|
Loading…
x
Reference in New Issue
Block a user