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

[Release-1.29] - Etcd s3 config secret support #6331

Closed
brandond opened this issue Jul 15, 2024 · 1 comment
Closed

[Release-1.29] - Etcd s3 config secret support #6331

brandond opened this issue Jul 15, 2024 · 1 comment
Assignees

Comments

@brandond
Copy link
Contributor

Backport fix for Etcd s3 config secret support

@VestigeJ
Copy link
Contributor

$ sudo /usr/local/bin/rke2 etcd-snapshot save --etcd-s3 --etcd-s3-config-secret rke2-etcd-secret

WARN[0000] Unknown flag --node-external-ip found in config.yaml, skipping
WARN[0000] Unknown flag --token found in config.yaml, skipping
WARN[0000] Unknown flag --write-kubeconfig-mode found in config.yaml, skipping
WARN[0000] Unknown flag --cni found in config.yaml, skipping
WARN[0000] Unknown flag --profile found in config.yaml, skipping
WARN[0000] Unknown flag --selinux found in config.yaml, skipping
WARN[0000] Unknown flag --embedded-registry found in config.yaml, skipping
WARN[0000] Unknown flag --etcd-snapshot-schedule-cron found in config.yaml, skipping
WARN[0000] Unknown flag --etcd-s3-secret found in config.yaml, skipping
INFO[0001] Snapshot on-demand-ip-21-31-21-71-1721944994.zip saved.
INFO[0001] Snapshot on-demand-ip-21-31-21-71-1721944994.zip saved.

$ rke2 -v

rke2 version v1.29.7-rc4+rke2r1 (94475ee48c61cec3e7638ccbec4fd60f548b80d9)
go version go1.22.5 X:boringcrypto

$ cat secret.yaml

apiVersion: v1
kind: Secret
metadata:
  name: rke2-etcd-secret
  namespace: kube-system
stringData:
  etcd-s3-endpoint: "s3.us-east-2.amazonaws.com"
  etcd-s3-endpoint-ca: ""
  etcd-s3-endpoint-ca-name: ""
  etcd-s3-skip-ssl-verify: "false"
  etcd-s3-access-key: "cmpseconddetection"
  etcd-s3-secret-key: "problemsdetectingsmallerplanets"
  etcd-s3-bucket: "rocky-planet-search"
  etcd-s3-region: "us-east-2"
  etcd-s3-folder: "needed"
  etcd-s3-insecure: "false"
  etcd-s3-timeout: "5m"
  etcd-s3-proxy: ""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants