Skip to content

Instantly share code, notes, and snippets.

@zegelin
Created June 5, 2019 19:00
Show Gist options
  • Save zegelin/90c540531fc3f473bea461e0206dd7ce to your computer and use it in GitHub Desktop.
Save zegelin/90c540531fc3f473bea461e0206dd7ce to your computer and use it in GitHub Desktop.
apiVersion: apps/v1beta2 apiVersion: apps/v1beta2
kind: StatefulSet kind: StatefulSet
metadata: metadata:
creationTimestamp: "2019-06-04T23:24:32Z" creationTimestamp: "2019-06-04T23:24:32Z"
generation: 1 generation: 1
labels: labels:
app.kubernetes.io/managed-by: com.instaclustr.cassandra-o app.kubernetes.io/managed-by: com.instaclustr.cassandra-o
cassandra-operator.instaclustr.com/datacenter: test-dc-ca cassandra-operator.instaclustr.com/datacenter: test-dc-ca
name: cassandra-test-dc-cassandra name: cassandra-test-dc-cassandra
namespace: default namespace: default
ownerReferences: ownerReferences:
- apiVersion: cassandraoperator.instaclustr.com/v1alpha1 - apiVersion: cassandraoperator.instaclustr.com/v1alpha1
blockOwnerDeletion: true blockOwnerDeletion: true
controller: true controller: true
kind: CassandraDataCenter kind: CassandraDataCenter
name: test-dc-cassandra name: test-dc-cassandra
uid: f18fdc55-8308-11e9-955a-08002725958b uid: f18fdc55-8308-11e9-955a-08002725958b
resourceVersion: "239986" resourceVersion: "239986"
selfLink: /apis/apps/v1beta2/namespaces/default/statefulset selfLink: /apis/apps/v1beta2/namespaces/default/statefulset
uid: e87d441e-871f-11e9-955a-08002725958b uid: e87d441e-871f-11e9-955a-08002725958b
spec: spec:
podManagementPolicy: OrderedReady podManagementPolicy: OrderedReady
replicas: 3 replicas: 3
revisionHistoryLimit: 10 <
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/managed-by: com.instaclustr.cassandra app.kubernetes.io/managed-by: com.instaclustr.cassandra
cassandra-operator.instaclustr.com/datacenter: test-dc- cassandra-operator.instaclustr.com/datacenter: test-dc-
serviceName: cassandra serviceName: cassandra
template: template:
metadata: metadata:
creationTimestamp: null creationTimestamp: null
labels: labels:
app.kubernetes.io/managed-by: com.instaclustr.cassand app.kubernetes.io/managed-by: com.instaclustr.cassand
cassandra-operator.instaclustr.com/datacenter: test-d cassandra-operator.instaclustr.com/datacenter: test-d
spec: spec:
containers: containers:
- args: - args:
- /tmp/operator-config - /tmp/operator-config
image: gcr.io/cassandra-operator/cassandra:3.11.3 image: gcr.io/cassandra-operator/cassandra:3.11.3
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
name: cassandra name: cassandra
ports: ports:
- containerPort: 7000 - containerPort: 7000
name: internode name: internode
protocol: TCP <
- containerPort: 9042 - containerPort: 9042
name: cql name: cql
protocol: TCP <
- containerPort: 7199 - containerPort: 7199
name: jmx name: jmx
protocol: TCP <
readinessProbe: readinessProbe:
exec: exec:
command: command:
- /usr/bin/cql-readiness-probe - /usr/bin/cql-readiness-probe
failureThreshold: 3 <
initialDelaySeconds: 60 initialDelaySeconds: 60
periodSeconds: 10 <
successThreshold: 1 <
timeoutSeconds: 5 timeoutSeconds: 5
resources: resources:
limits: limits:
memory: 1Gi memory: 1Gi
requests: requests:
memory: 1Gi memory: 1Gi
securityContext: securityContext:
capabilities: capabilities:
add: add:
- IPC_LOCK - IPC_LOCK
- SYS_RESOURCE - SYS_RESOURCE
procMount: Default <
terminationMessagePath: /dev/termination-log <
terminationMessagePolicy: File <
volumeMounts: volumeMounts:
- mountPath: /var/lib/cassandra - mountPath: /var/lib/cassandra
name: data-volume name: data-volume
- mountPath: /tmp/operator-config - mountPath: /tmp/operator-config
name: operator-config-volume name: operator-config-volume
- image: gcr.io/cassandra-operator/cassandra-sidecar:la - image: gcr.io/cassandra-operator/cassandra-sidecar:la
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
name: sidecar name: sidecar
ports: ports:
- containerPort: 4567 - containerPort: 4567
name: http name: http
protocol: TCP <
resources: {} resources: {}
terminationMessagePath: /dev/termination-log <
terminationMessagePolicy: File <
volumeMounts: volumeMounts:
- mountPath: /var/lib/cassandra - mountPath: /var/lib/cassandra
name: data-volume name: data-volume
- mountPath: /etc/pod-info - mountPath: /etc/pod-info
name: pod-info name: pod-info
dnsPolicy: ClusterFirst <
initContainers: initContainers:
- args: - args:
- sysctl -w vm.max_map_count=1048575 || true - sysctl -w vm.max_map_count=1048575 || true
command: command:
- bash - bash
- -xuec - -xuec
image: gcr.io/cassandra-operator/cassandra:3.11.3 image: gcr.io/cassandra-operator/cassandra:3.11.3
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
name: sysctl-limits name: sysctl-limits
resources: {} resources: {}
securityContext: securityContext:
privileged: true privileged: true
procMount: Default <
terminationMessagePath: /dev/termination-log <
terminationMessagePolicy: File <
restartPolicy: Always <
schedulerName: default-scheduler <
securityContext: {} <
terminationGracePeriodSeconds: 30 <
volumes: volumes:
- downwardAPI: - downwardAPI:
defaultMode: 420 <
items: items:
- fieldRef: - fieldRef:
apiVersion: v1 <
fieldPath: metadata.labels fieldPath: metadata.labels
path: labels path: labels
- fieldRef: - fieldRef:
apiVersion: v1 <
fieldPath: metadata.annotations fieldPath: metadata.annotations
path: annotations path: annotations
- fieldRef: - fieldRef:
apiVersion: v1 <
fieldPath: metadata.namespace fieldPath: metadata.namespace
path: namespace path: namespace
- fieldRef: - fieldRef:
apiVersion: v1 <
fieldPath: metadata.name fieldPath: metadata.name
path: name path: name
name: pod-info name: pod-info
- configMap: - configMap:
defaultMode: 420 <
items: items:
- key: cassandra_yaml_d_001_operator_overrides_yaml - key: cassandra_yaml_d_001_operator_overrides_yaml
path: cassandra.yaml.d/001-operator-overrides.yam path: cassandra.yaml.d/001-operator-overrides.yam
- key: cassandra_rackdc_properties - key: cassandra_rackdc_properties
path: cassandra-rackdc.properties path: cassandra-rackdc.properties
- key: jvm_options_d_001_jvm_memory_gc_options - key: jvm_options_d_001_jvm_memory_gc_options
path: jvm.options.d/001-jvm-memory-gc.options path: jvm.options.d/001-jvm-memory-gc.options
name: cassandra-test-dc-cassandra-operator-config name: cassandra-test-dc-cassandra-operator-config
name: operator-config-volume name: operator-config-volume
updateStrategy: | updateStrategy: {}
rollingUpdate: <
partition: 0 <
type: RollingUpdate <
volumeClaimTemplates: volumeClaimTemplates:
- metadata: - metadata:
creationTimestamp: null creationTimestamp: null
name: data-volume name: data-volume
spec: spec:
accessModes: accessModes:
- ReadWriteOnce - ReadWriteOnce
dataSource: null dataSource: null
resources: resources:
requests: requests:
storage: 500Mi storage: 500Mi
volumeMode: Filesystem | status: {}
status: <
phase: Pending <
status: status:
collisionCount: 0 collisionCount: 0
currentReplicas: 3 currentReplicas: 3
currentRevision: cassandra-test-dc-cassandra-656ff85c69 currentRevision: cassandra-test-dc-cassandra-656ff85c69
observedGeneration: 1 observedGeneration: 1
readyReplicas: 3 readyReplicas: 3
replicas: 3 replicas: 3
updateRevision: cassandra-test-dc-cassandra-656ff85c69 updateRevision: cassandra-test-dc-cassandra-656ff85c69
updatedReplicas: 3 updatedReplicas: 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment