Cassandra Operations Task CassandraTask
This is a public CRD used within Mission Control that is not bound to a release.
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.
DataStax Mission Control provides a number of CRDs published per release to use with its user interface (UI), the Command Line Interfaces (CLI) such as |
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"