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.30] - Add etcd snapshot s3 config secret support #10487

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

[Release-1.30] - Add etcd snapshot s3 config secret support #10487

brandond opened this issue Jul 10, 2024 · 1 comment
Assignees
Milestone

Comments

@brandond
Copy link
Member

Backport fix for Add etcd snapshot s3 config secret support

@VestigeJ
Copy link

$ cat s3.yaml

apiVersion: v1
kind: Secret
metadata:
  name: k3s-etcd-snapshot-s3-config
  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: "true"
  etcd-s3-access-key: "badlipreading"
  etcd-s3-secret-key: "saidseagullsgonnacomeandpokemeinthecoconut"
  etcd-s3-bucket: "justin-snapshot-buckets"
  etcd-s3-region: "us-east-2"
  etcd-s3-insecure: "false"
  etcd-s3-timeout: "5m"
  etcd-s3-folder: "needed"
  etcd-s3-proxy: ""

$ kgn

NAME              STATUS   ROLES                       AGE     VERSION
ip-1-1-15-9       Ready    <none>                      5h20m   v1.30.3-rc1+k3s1
ip-1-1-3-18       Ready    control-plane,etcd,master   5h18m   v1.30.3-rc1+k3s1
ip-1-1-3-29       Ready    control-plane,etcd,master   5h21m   v1.30.3-rc1+k3s1
ip-1-1-6-14       Ready    control-plane,etcd,master   5h20m   v1.30.3-rc1+k3s1

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

WARN[0000] Unknown flag --node-external-ip found in config.yaml, skipping
WARN[0000] Unknown flag --server 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 --cluster-init 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[0000] Snapshot on-demand-ip-1-1-3-18-1721865404.zip saved.
INFO[0000] Snapshot on-demand-ip-1-1-3-18-1721865404.zip saved.

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

No branches or pull requests

3 participants