You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kbcli version
Kubernetes: v1.29.6-gke.1326000
KubeBlocks: 0.9.1-beta.14
kbcli: 0.9.1-beta.9
kbcli cluster update redis-itwgcf --enable-all-logs=true --namespace default
error: name is required
kbcli cluster update -h
Update the cluster settings, such as enable or disable monitor or log.
Examples:
# update cluster mycluster termination policy to Delete
kbcli cluster update mycluster --termination-policy=Delete
# enable cluster monitor
kbcli cluster update mycluster --monitor=true
# enable all logs
kbcli cluster update mycluster --enable-all-logs=true
# update cluster topology keys and affinity
kbcli cluster update mycluster --topology-keys=kubernetes.io/hostname
--pod-anti-affinity=Required
# update cluster tolerations
kbcli cluster update mycluster
--tolerations='"key=engineType,value=mongo,operator=Equal,effect=NoSchedule","key=diskType,value=ssd,operator=Equal,effect=NoSchedule"'
# edit cluster
kbcli cluster update mycluster --edit
# enable cluster monitor and edit
# kbcli cluster update mycluster --monitor=true --edit
# enable cluster auto backup
kbcli cluster update mycluster --backup-enabled=true
# update cluster backup retention period
kbcli cluster update mycluster --backup-retention-period=1d
# update cluster backup method
kbcli cluster update mycluster --backup-method=snapshot
# update cluster backup cron expression
kbcli cluster update mycluster --backup-cron-expression="0 0 * * *"
# update cluster backup starting deadline minutes
kbcli cluster update mycluster --backup-starting-deadline-minutes=10
# update cluster backup repo name
kbcli cluster update mycluster --backup-repo-name=repo1
# update cluster backup pitr enabled
kbcli cluster update mycluster --pitr-enabled=true
Options:
--allow-missing-template-keys=true:
If true, ignore any errors in templates when a field or map key is
missing in the template. Only applies to golang and jsonpath output
formats.
--backup-cron-expression='':
the cron expression for schedule, the timezone is in UTC. see
https://en.wikipedia.org/wiki/Cron.
--backup-enabled=false:
Specify whether enabled automated backup
--backup-method='':
the backup method, view it by "kbcli cd describe
<cluster-definition>", if not specified, the default backup method
will be to take snapshots of the volume
--backup-repo-name='':
the backup repository name
--backup-retention-period='1d':
a time string ending with the 'd'|'D'|'h'|'H' character to describe
how long the Backup should be retained
--backup-starting-deadline-minutes=0:
the deadline in minutes for starting the backup job if it misses its
scheduled time for any reason
--disable-exporter=true:
Enable or disable monitoring
--dry-run='none':
Must be "none", "server", or "client". If client strategy, only print
the object that would be sent, without sending it. If server strategy,
submit server-side request without persisting the resource.
--edit=false:
Edit the API resource
--enable-all-logs=false:
Enable advanced application all log extraction, set to true will
ignore enabledLogs of component level, default is false
--node-labels=[]:
Node label selector
-o, --output='':
Output format. One of: (json, yaml, name, go-template,
go-template-file, template, templatefile, jsonpath, jsonpath-as-json,
jsonpath-file).
--pitr-enabled=false:
Specify whether enabled point in time recovery
--pod-anti-affinity='Preferred':
Pod anti-affinity type, one of: (Preferred, Required)
--show-managed-fields=false:
If true, keep the managedFields when printing objects in JSON or YAML
format.
--template='':
Template string or path to template file to use when -o=go-template,
-o=go-template-file. The template format is golang templates
[http://golang.org/pkg/text/template/#pkg-overview].
--tenancy='SharedNode':
Tenancy options, one of: (SharedNode, DedicatedNode)
--termination-policy='Delete':
Termination policy, one of: (DoNotTerminate, Halt, Delete, WipeOut)
--tolerations=[]:
Tolerations for cluster, such as "key=value:effect, key:effect", for
example '"engineType=mongo:NoSchedule", "diskType:NoSchedule"'
--topology-keys=[]:
Topology keys for affinity
Usage:
kbcli cluster update NAME [flags] [options]
Use "kbcli options" for a list of global command-line options (applies to all
commands).
The text was updated successfully, but these errors were encountered:
kbcli version
Kubernetes: v1.29.6-gke.1326000
KubeBlocks: 0.9.1-beta.14
kbcli: 0.9.1-beta.9
The text was updated successfully, but these errors were encountered: