Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]error returned when kbcli enable logs #421

Open
ahjing99 opened this issue Aug 9, 2024 · 1 comment
Open

[BUG]error returned when kbcli enable logs #421

ahjing99 opened this issue Aug 9, 2024 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@ahjing99
Copy link
Collaborator

ahjing99 commented Aug 9, 2024

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).
@ahjing99 ahjing99 added the bug Something isn't working label Aug 9, 2024
@ahjing99 ahjing99 added this to the Release 0.9.0 milestone Aug 9, 2024
@ahjing99 ahjing99 modified the milestones: Release 0.9.0, Release 0.9.1 Aug 9, 2024
Copy link

github-actions bot commented Sep 9, 2024

This issue has been marked as stale because it has been open for 30 days with no activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants