This repository has been archived by the owner on Mar 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 70
/
statefulset.yaml
94 lines (93 loc) · 2.43 KB
/
statefulset.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
---
# Source: jaeger/charts/cassandra/templates/statefulset.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: jaeger-cassandra
labels:
app: cassandra
chart: cassandra-0.15.1
release: jaeger
heritage: Tiller
spec:
selector:
matchLabels:
app: cassandra
release: jaeger
serviceName: jaeger-cassandra
replicas: 3
podManagementPolicy: OrderedReady
updateStrategy:
type: OnDelete
template:
metadata:
labels:
app: cassandra
release: jaeger
spec:
hostNetwork: false
containers:
- name: jaeger-cassandra
image: "cassandra:3.11"
imagePullPolicy: "IfNotPresent"
resources:
{}
env:
- name: CASSANDRA_SEEDS
value: "jaeger-cassandra-0.jaeger-cassandra.default.svc.cluster.local"
- name: MAX_HEAP_SIZE
value: "2048M"
- name: HEAP_NEWSIZE
value: "512M"
- name: CASSANDRA_ENDPOINT_SNITCH
value: "GossipingPropertyFileSnitch"
- name: CASSANDRA_CLUSTER_NAME
value: "jaeger"
- name: CASSANDRA_DC
value: "dc1"
- name: CASSANDRA_RACK
value: "rack1"
- name: CASSANDRA_START_RPC
value: "false"
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
livenessProbe:
exec:
command: [ "/bin/sh", "-c", "nodetool status" ]
initialDelaySeconds: 90
periodSeconds: 30
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 3
readinessProbe:
exec:
command: [ "/bin/sh", "-c", "nodetool status | grep -E \"^UN\\s+${POD_IP}\"" ]
initialDelaySeconds: 90
periodSeconds: 30
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 3
ports:
- name: intra
containerPort: 7000
- name: tls
containerPort: 7001
- name: jmx
containerPort: 7199
- name: cql
containerPort: 9042
- name: thrift
containerPort: 9160
volumeMounts:
- name: data
mountPath: /var/lib/cassandra
lifecycle:
preStop:
exec:
command: ["/bin/sh", "-c", "exec nodetool decommission"]
terminationGracePeriodSeconds: 30
volumes:
- name: data
emptyDir: {}