add a volume to cassandra example

This commit is contained in:
Brendan Burns 2015-01-08 15:32:06 -08:00
parent 78a470733b
commit fa3a731996
1 changed files with 7 additions and 0 deletions

View File

@ -16,6 +16,9 @@ desiredState:
containerPort: 9042 containerPort: 9042
- name: thrift - name: thrift
containerPort: 9160 containerPort: 9160
volumeMounts:
- name: data
mountPath: /cassandra_data
env: env:
- key: MAX_HEAP_SIZE - key: MAX_HEAP_SIZE
value: 512M value: 512M
@ -23,6 +26,10 @@ desiredState:
value: 100M value: 100M
- key: KUBERNETES_API_PROTOCOL - key: KUBERNETES_API_PROTOCOL
value: http value: http
volumes:
- name: data
source:
emptyDir: ""
labels: labels:
name: cassandra name: cassandra