1
+ {{- if .Values.cassandra.enabled }}
1
2
# apiVersion: v1
2
3
# kind: PersistentVolume
3
4
# metadata:
15
16
16
17
# ---
17
18
18
- apiVersion : v1
19
- kind : PersistentVolumeClaim
20
- metadata :
21
- name : cassandra-pvc
22
- namespace : {{ .Values.namespace }}
23
- spec :
24
- accessModes :
25
- - ReadWriteOnce
26
- resources :
27
- requests :
28
- storage : 2Gi
29
- limits :
30
- cpu : " 500m"
31
- # volumeName: cassandra-pv
19
+ # apiVersion: v1
20
+ # kind: PersistentVolumeClaim
21
+ # metadata:
22
+ # name: cassandra-pvc
23
+ # namespace: {{ .Values.namespace }}
24
+ # spec:
25
+ # accessModes:
26
+ # - ReadWriteOnce
27
+ # resources:
28
+ # requests:
29
+ # storage: 2Gi
30
+ # limits:
31
+ # cpu: "500m"
32
+ # volumeName: cassandra-pv
32
33
33
- ---
34
-
35
- apiVersion : v1
36
- kind : Service
37
- metadata :
38
- name : cassandra-cluster
39
- namespace : {{ .Values.namespace }}
40
- spec :
41
- selector :
42
- app : cassandra
43
- ports :
44
- - port : 9042
45
- targetPort : 9042
46
- type : LoadBalancer
47
-
48
- ---
49
-
50
- apiVersion : apps/v1
51
- kind : Deployment
52
- metadata :
53
- name : cassandra-cluster
54
- namespace : {{ .Values.namespace }}
55
- spec :
56
- replicas : 1
57
- selector :
58
- matchLabels :
59
- app : cassandra
60
- strategy :
61
- rollingUpdate :
62
- maxSurge : 25%
63
- maxUnavailable : 25%
64
- type : RollingUpdate
65
- template :
66
- metadata :
67
- labels :
68
- app : cassandra
69
- spec :
70
- containers :
71
- - image : {{ .Values.cassandra.image }}
72
- imagePullPolicy : Always
73
- name : cassandra
74
- ports :
75
- - containerPort : 9042
76
- name : cql
77
- livenessProbe :
78
- exec :
79
- command :
80
- - cqlsh
81
- - --help
82
- initialDelaySeconds : 10
83
- timeoutSeconds : 1
84
- periodSeconds : 10
85
- failureThreshold : 3
86
- volumeMounts :
87
- - mountPath : /var/lib/cassandra
88
- name : cassandra-storage
89
- volumes :
90
- - name : cassandra-storage
91
- persistentVolumeClaim :
92
- claimName : cassandra-pvc
34
+ # ---
35
+ #
36
+ # apiVersion: v1
37
+ # kind: Service
38
+ # metadata:
39
+ # name: cassandra-cluster
40
+ # namespace: {{ .Values.namespace }}
41
+ # spec:
42
+ # selector:
43
+ # app: cassandra
44
+ # ports:
45
+ # - port: 9042
46
+ # targetPort: 9042
47
+ # type: LoadBalancer
48
+ #
49
+ # ---
50
+ #
51
+ # apiVersion: apps/v1
52
+ # kind: Deployment
53
+ # metadata:
54
+ # name: cassandra-cluster
55
+ # namespace: {{ .Values.namespace }}
56
+ # spec:
57
+ # replicas: 1
58
+ # selector:
59
+ # matchLabels:
60
+ # app: cassandra
61
+ # strategy:
62
+ # rollingUpdate:
63
+ # maxSurge: 25%
64
+ # maxUnavailable: 25%
65
+ # type: RollingUpdate
66
+ # template:
67
+ # metadata:
68
+ # labels:
69
+ # app: cassandra
70
+ # spec:
71
+ # containers:
72
+ # - image: {{ .Values.cassandra.image }}
73
+ # imagePullPolicy: Always
74
+ #
75
+ # name: cassandra
76
+ # ports:
77
+ # - containerPort: 9042
78
+ # name: cql
79
+ # livenessProbe:
80
+ # exec:
81
+ # command:
82
+ # - cqlsh
83
+ # - --help
84
+ # initialDelaySeconds: 10
85
+ # timeoutSeconds: 1
86
+ # periodSeconds: 10
87
+ # failureThreshold: 3
88
+ # volumeMounts:
89
+ # - mountPath: /var/lib/cassandra
90
+ # name: cassandra-storage
91
+ # volumes:
92
+ # - name: cassandra-storage
93
+ # persistentVolumeClaim:
94
+ # claimName: cassandra-pvc
95
+ {{- end }}
0 commit comments