Created
January 26, 2018 07:15
-
-
Save ceizner/97a6a34603b71593959541ac1bdcf6c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: sysdigcloud-cassandra-1 # Cassandra node number | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
instance: "1" # Cassandra node number | |
app: sysdigcloud | |
role: cassandra | |
spec: | |
containers: | |
- image: quay.io/sysdig/cassandra:2.1.15.0 | |
name: cassandra | |
env: | |
- name: CASSANDRA_SERVICE | |
value: sysdigcloud-cassandra | |
- name: CASSANDRA_NUM_SEEDS | |
value: "2" | |
- name: CASSANDRA_CLUSTER_NAME | |
value: sysdigcloud | |
# If not using CASSANDRA_SERVICE discovery, manually configure the seeds | |
# - name: CASSANDRA_SEEDS | |
# value: "" | |
# If using multiple directories for data, set the path list | |
# - name: CASSANDRA_DATA_DIRS | |
# value: "/var/lib/cassandra/data /var/lib/cassandra/data2" | |
- name: JVM_EXTRA_OPTS | |
valueFrom: | |
configMapKeyRef: | |
name: sysdigcloud-config | |
key: cassandra.jvm.options | |
- name: CASSANDRA_SECURE | |
valueFrom: | |
configMapKeyRef: | |
name: sysdigcloud-config | |
key: cassandra.secure | |
- name: CASSANDRA_SSL | |
valueFrom: | |
configMapKeyRef: | |
name: sysdigcloud-config | |
key: cassandra.ssl.enabled | |
volumeMounts: | |
- mountPath: /var/lib/cassandra | |
name: data | |
# Uncomment this when using multiple mount points for data | |
# - mountPath: /var/lib/cassandra/data2 | |
# name: data2 | |
imagePullSecrets: | |
- name: sysdigcloud-pull-secret | |
volumes: | |
# Uncomment this for emptyDir volumes | |
- name: cassandra-1 | |
persistentVolumeClaim: | |
claimName: pvc-sio-small |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment