Skip to content

Instantly share code, notes, and snippets.

@rafael
Created October 14, 2015 02:51
Show Gist options
  • Select an option

  • Save rafael/deb3194ea8f985dabb8d to your computer and use it in GitHub Desktop.

Select an option

Save rafael/deb3194ea8f985dabb8d to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: ReplicationController
metadata:
labels:
name: cassandra-2
name: cassandra-2
spec:
replicas: 1
selector:
name: cassandra
replica: cassandra-2
template:
metadata:
labels:
name: cassandra
replica: cassandra-2
spec:
containers:
- command:
- /run.sh
env:
- name: MAX_HEAP_SIZE
value: 512M
- name: HEAP_NEWSIZE
value: 100M
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
image: gcr.io/google_containers/cassandra:v6
name: cassandra
ports:
- containerPort: 9042
name: cql
- containerPort: 9160
name: thrift
volumeMounts:
- mountPath: /cassandra_data
name: data
volumes:
- name: data
gcePersistentDisk:
pdName: cassandra-data-2
fsType: ext4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment