Comments (1)
Validated on master branch with commit d3b6054
Environment Details
Infrastructure
- Cloud
- Hosted
Node(s) CPU architecture, OS, and Version:
$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.2 LTS"
$ uname -m
x86_64
Cluster Configuration:
HA: 3 server/ 1 agent
Config.yaml:
token: xxxx
cluster-init: true
write-kubeconfig-mode: "0644"
node-external-ip: 1.1.1.1
node-label:
- k3s-upgrade=server
Testing Steps
- Copy config.yaml
$ sudo mkdir -p /etc/rancher/k3s && sudo cp config.yaml /etc/rancher/k3s
- Install k3s
curl -sfL https://get.k3s.io | sudo INSTALL_K3S_COMMIT='d3b60543e7df924881854108984593aafb557d3c' sh -s - server
- Verify Cluster Status:
kubectl get nodes -o wide
kubectl get pods -A
- Perform etcd-snapshot save with s3 details provided:
$ sudo /usr/local/bin/k3s etcd-snapshot save --s3 --s3-bucket=<bucket> --s3-folder=<folder> --s3-region=<region> --s3-access-key=xxxx --s3-secret-key="xxxx" --debug
- Verify the etcdsnapshotfile path location for the s3 snapshot includes both the s3 bucket and the s3 folder location:
$ sudo /usr/local/bin/kubectl --kubeconfig /etc/rancher/k3s/k3s.yaml get etcdsnapshotfile
Validation Results:
- k3s version used for validation:
$ k3s -v
k3s version v1.29.4+k3s-d3b60543 (d3b60543)
go version go1.21.9
$ sudo /usr/local/bin/kubectl --kubeconfig /etc/rancher/k3s/k3s.yaml get etcdsnapshotfile
NAME SNAPSHOTNAME NODE LOCATION SIZE CREATIONTIME
local-on-demand-ip-172-31-16-180-1713803552-1fc677 on-demand-ip-172-31-16-180-1713803552 ip-172-31-16-180 file:///var/lib/rancher/k3s/server/db/snapshots/on-demand-ip-172-31-16-180-1713803552 5529632 2024-04-22T16:32:32Z
local-on-demand-ip-172-31-16-180-1713803621-e205c5 on-demand-ip-172-31-16-180-1713803621 ip-172-31-16-180 file:///var/lib/rancher/k3s/server/db/snapshots/on-demand-ip-172-31-16-180-1713803621 5726240 2024-04-22T16:33:41Z
s3-on-demand-ip-172-31-16-180-1713803552-60bff9 on-demand-ip-172-31-16-180-1713803552 ip-172-31-16-180 s3://<s3-bucket>/<s3-folder>/on-demand-ip-172-31-16-180-1713803552 5529632 2024-04-22T16:32:32Z
s3-on-demand-ip-172-31-16-180-1713803621-db8c7c on-demand-ip-172-31-16-180-1713803621 ip-172-31-16-180 s3://<s3-bucket>/<s3-folder>/on-demand-ip-172-31-16-180-1713803621 5726240 2024-04-22T16:33:41Z
As we can see, the s3-folder location was honored. Closing the bug.
from k3s.
Related Issues (20)
- [Release-1.28] - Loadbalancer may panic due to race condition when selecting a new server HOT 1
- [Release-1.27] - Loadbalancer may panic due to race condition when selecting a new server HOT 1
- containerd-shim creates many inotify instances on AlmaLinux VM HOT 1
- [Release-1.30] - Executables from k3s get flagged as malware by Azure Defender for Linux HOT 1
- The network policy behavior in k3s is not performing as expected. HOT 3
- I can't configure the docker.io image repository HOT 1
- containerd does not fall back to default endpoint when using wildcard registry entry (airgap env) HOT 11
- K3S Logging is not working in Alma 9.3 environment HOT 7
- /etc/rancher/k3s/registries.yaml is ignored HOT 1
- Procedure for changing server one of a etcd cluster HOT 2
- Etcd bootstrap conflict HOT 1
- Issue with Embedded Registry Mirror Usage HOT 4
- Validate SUSE Liberty Linux 8.9
- Enhance install script to support Suse Liberty Linux HOT 1
- [v1.29.3+k3s1] Certificate rotation on k3s-agent fails to include sans addressing, causing api requests via kubectl to potentially fail if kube-vip is in use HOT 1
- Add etcd snapshot s3 config secret support
- Multiple simultaneous snapshots result in silent failure and/or corruption of at least one snapshot HOT 2
- [Release-1.29] - Multiple simultaneous snapshots result in silent failure and/or corruption of at least one snapshot HOT 1
- [Release-1.28] - Multiple simultaneous snapshots result in silent failure and/or corruption of at least one snapshot HOT 1
- [Release-1.27] - Multiple simultaneous snapshots result in silent failure and/or corruption of at least one snapshot HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k3s.