More updates to docker, including more env overrides. For example you can now set cluster name.

someone tell me if this is wrong, but I do not think "examples/cassandra/image/run.sh:    cluster_name \" should have been found
This commit is contained in:
chrislovecnm
2016-05-15 09:57:00 -06:00
parent aca07ebb6a
commit 98cafe64ac
7 changed files with 129 additions and 21 deletions

View File

@@ -22,7 +22,7 @@ spec:
- /run.sh
resources:
limits:
cpu: .5
cpu: 0.5
env:
- name: MAX_HEAP_SIZE
value: 512M
@@ -32,13 +32,24 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
image: gcr.io/google-samples/cassandra:v9
name: cassandra
ports:
- containerPort: 7000
name: intra-node
- containerPort: 7001
name: tls-intra-node
- containerPort: 7199
name: jmx
- containerPort: 9042
name: cql
- containerPort: 9160
name: thrift
# If you need it it is going away in C* 4.0
#- containerPort: 9160
# name: thrift
volumeMounts:
- mountPath: /cassandra_data
name: data