forked from Altinity/clickhouse-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
03-persistent-volume-06-multiple-resizable-volumes-2.yaml
58 lines (56 loc) · 1.42 KB
/
03-persistent-volume-06-multiple-resizable-volumes-2.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#
# AWS resizable disk example
#
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: gp2-resizable
provisioner: kubernetes.io/aws-ebs
parameters:
type: gp2
reclaimPolicy: Delete
#volumeBindingMode: Immediate
allowVolumeExpansion: true
---
apiVersion: "clickhouse.altinity.com/v1"
kind: "ClickHouseInstallation"
metadata:
name: "pv-multi-resize"
spec:
configuration:
clusters:
- name: "pv-multi-resize"
templates:
podTemplate: pod-template-with-volumes
layout:
shardsCount: 1
replicasCount: 1
templates:
podTemplates:
- name: pod-template-with-volumes
spec:
containers:
- name: clickhouse
image: yandex/clickhouse-server:19.3.7
volumeMounts:
- name: data-storage-vc-template-1
mountPath: /data/clickhouse-01
- name: data-storage-vc-template-2
mountPath: /data/clickhouse-02
volumeClaimTemplates:
- name: data-storage-vc-template-1
spec:
storageClassName: gp2-resizable
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
- name: data-storage-vc-template-2
spec:
storageClassName: gp2-resizable
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi