Last active
January 26, 2018 09:16
-
-
Save ceizner/4726e87cf0b5d308a905ae05dd96f530 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
kind: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: cassandra-1 | |
spec: | |
storageClassName: aws-blazing-mutli-az | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 10Gi | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: sysdigcloud-cassandra-2 # Cassandra node number | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
instance: "2" # 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: cassandra-2 | |
# 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-2 | |
persistentVolumeClaim: | |
claimName: cassandra-2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment