8e5b17cf13
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
apiVersion: v1
|
|
kind: ReplicationController
|
|
metadata:
|
|
name: cassandra
|
|
# The labels will be applied automatically
|
|
# from the labels in the pod template, if not set
|
|
# labels:
|
|
# app: cassandra
|
|
spec:
|
|
replicas: 2
|
|
# The selector will be applied automatically
|
|
# from the labels in the pod template, if not set.
|
|
# selector:
|
|
# app: cassandra
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: cassandra
|
|
spec:
|
|
containers:
|
|
- command:
|
|
- /run.sh
|
|
resources:
|
|
limits:
|
|
cpu: 0.5
|
|
env:
|
|
- name: MAX_HEAP_SIZE
|
|
value: 512M
|
|
- name: HEAP_NEWSIZE
|
|
value: 100M
|
|
- name: CASSANDRA_SEED_PROVIDER
|
|
value: "io.k8s.cassandra.KubernetesSeedProvider"
|
|
- name: POD_NAMESPACE
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.namespace
|
|
- name: POD_IP
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: status.podIP
|
|
image: gcr.io/google-samples/cassandra:v11
|
|
name: cassandra
|
|
ports:
|
|
- containerPort: 7000
|
|
name: intra-node
|
|
- containerPort: 7001
|
|
name: tls-intra-node
|
|
- containerPort: 7199
|
|
name: jmx
|
|
- containerPort: 9042
|
|
name: cql
|
|
volumeMounts:
|
|
- mountPath: /cassandra_data
|
|
name: data
|
|
volumes:
|
|
- name: data
|
|
emptyDir: {}
|