Cassandra Operations Task CassandraTask
DataStax Mission Control is currently in Public Preview. DataStax Mission Control is not intended for production use, has not been certified for production workloads, and might contain bugs and other functional issues. There is no guarantee that DataStax Mission Control will ever become generally available. DataStax Mission Control is provided on an “AS IS” basis, without warranty or indemnity of any kind. If you are interested in trying out DataStax Mission Control please join the Public Preview. |
The CassandraTask
manifest is created with a kubectl
command and is a YAML file whose name indicates the type of command task to be run. For example:
kubectl apply -f restart-task.yaml
produces a file named restart-task.yaml
, and fills in the spec:jobs:command:
field with the restart
task value.
CassandraTask manifest
kind: CassandraTask
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"control.k8ssandra.io/v1alpha1","kind":"CassandraTask","metadata":{"annotations":{},"name":"restart-dc","namespace":"mission-control"},"spec":{"datacenter":{"name":"dc1","namespace":"mission-control"},"jobs":[{"command":"restart","name":"restart-dc1"}]}}
creationTimestamp: "2022-10-15T21:24:35Z"
generation: 2
labels:
app.kubernetes.io/created-by: cass-operator
app.kubernetes.io/instance: cassandra-demo
app.kubernetes.io/managed-by: cass-operator
app.kubernetes.io/name: cassandra
app.kubernetes.io/version: 6.8.26
cassandra.datastax.com/cluster: demo
cassandra.datastax.com/datacenter: dc1
control.k8ssandra.io/status: completed
name: restart-dc
namespace: mission-control
ownerReferences:
- apiVersion: cassandra.datastax.com/v1beta1
blockOwnerDeletion: true
controller: true
kind: CassandraDatacenter
name: dc1
uid: 51561d2f-2d20-4a16-b90c-fe9b0655f1ba
resourceVersion: "780428"
uid: 2202880f-16f0-4b83-a5ce-ab3057cd6d70
spec:
concurrencyPolicy: Forbid
datacenter:
name: dc1
namespace: mission-control
jobs:
- args: {}
command: restart
name: restart-dc1
restartPolicy: Never
status:
completionTime: "2022-10-15T21:36:54Z"
conditions:
- lastTransitionTime: "2022-10-15T21:36:54Z"
status: "True"
type: Complete
startTime: "2022-10-15T21:24:35Z"