blob: 03f2a2f22fffef392239229339c2a018ab1645ce (
plain)
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
|
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: cassandra
spec:
replicas: 3
template:
metadata:
labels:
service: cassandra
spec:
containers:
- image: "{{ .Values.image.path }}/cassandra:{{ .Values.image.tag }}"
imagePullPolicy: Always
name: cassandra
ports:
- containerPort: 22
- containerPort: 7001
- containerPort: 9042
- containerPort: 9160
envFrom:
- configMapRef:
name: {{ .Values.config.configmaps }}
env:
- name: MY_POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
livenessProbe:
exec:
command: ["/bin/bash", "/usr/share/kubernetes/liveness.sh", "7000 9042 9160"]
# Cassandra can take a very, very long time to start up
initialDelaySeconds: 600
readinessProbe:
exec:
command: ["/bin/bash", "/usr/share/kubernetes/liveness.sh", "7000 9042 9160"]
restartPolicy: Always
|