text stringlengths 0 59.1k |
|---|
requests: |
cpu: "500m" |
memory: 1Gi |
securityContext: |
capabilities: |
add: |
- IPC_LOCK |
lifecycle: |
preStop: |
exec: |
command: |
- /bin/sh |
- -c |
- nodetool drain |
env: |
- name: MAX_HEAP_SIZE |
value: 512M |
- name: HEAP_NEWSIZE |
value: 100M |
- name: CASSANDRA_SEEDS |
value: "cassandra-0.cassandra.default.svc.cluster.local" |
- name: CASSANDRA_CLUSTER_NAME |
value: "K8Demo" |
- name: CASSANDRA_DC |
value: "DC1-K8Demo" |
- name: CASSANDRA_RACK |
value: "Rack1-K8Demo" |
- name: CASSANDRA_SEED_PROVIDER |
value: io.k8s.cassandra.KubernetesSeedProvider |
- name: POD_IP |
valueFrom: |
fieldRef: |
fieldPath: status.podIP |
readinessProbe: |
exec: |
command: |
- /bin/bash |
- -c |
- /ready-probe.sh |
initialDelaySeconds: 15 |
timeoutSeconds: 5 |
periodSeconds: 10 |
failureThreshold: 3 |
livenessProbe: |
exec: |
command: |
- /bin/bash |
- -c |
- "nodetool status" |
initialDelaySeconds: 15 |
timeoutSeconds: 5 |
periodSeconds: 10 |
failureThreshold: 3 |
# These volume mounts are persistent. They are like inline claims, |
# but not exactly because the names need to match exactly one of |
# the stateful pod volumes. |
volumeMounts: |
- name: cassandra-data |
mountPath: /var/lib/cassandra |
# These are converted to volume claims by the controller |
# and mounted at the paths mentioned above. |
# do not use these in production until ssd GCEPersistentDisk or other ssd pd |
volumeClaimTemplates: |
- metadata: |
name: cassandra-data |
annotations: |
volume.beta.kubernetes.io/storage-class: fast |
spec: |
accessModes: [ "ReadWriteOnce" ] |
resources: |
requests: |
storage: 1Gi |
--- |
kind: StorageClass |
apiVersion: storage.k8s.io/v1 |
metadata: |
name: fast |
provisioner: k8s.io/minikube-hostpath |
parameters: |
type: pd-ssd |
<|endoftext|> |
# source: k8s_examples/databases/cassandra/image/files/cassandra.yaml type: yaml |
# Cassandra storage config YAML |
# NOTE: |
# See http://wiki.apache.org/cassandra/StorageConfiguration for |
# full explanations of configuration directives |
# /NOTE |
# The name of the cluster. This is mainly used to prevent machines in |
# one logical cluster from joining another. |
cluster_name: 'Test Cluster' |
# This defines the number of tokens randomly assigned to this node on the ring |
# The more tokens, relative to other nodes, the larger the proportion of data |
# that this node will store. You probably want all nodes to have the same number |
# of tokens assuming they have equal hardware capability. |
# |
# If you leave this unspecified, Cassandra will use the default of 1 token for legacy compatibility, |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.