Comments (1)
I ended up just having to scrap the cluster. I'm running out of time on an initiative and just have to rebuild, but not for lack of trying.
I wanted to share something fun I found. More or less, an undocumented api of sorts that you could cause a lot of damage with if you're not careful. I need to put this into a blog post.
You list your keys on the local cluster:
etcdctl get "" --prefix --keys-only
Grep around for cluster name, machine whatever etc and you just kinda feel out the keys.
R_CLUSTER=`etcdctl get "/registry/provisioning.cattle.io/clusters/fleet-default/c-gmd2b" --prefix | head -2 | tail -1 | jq .`
NEW_KEY=`echo $R_CLUSTER | jq '.status.conditions[0]="False"'`
etcdctl put "/registry/provisioning.cattle.io/clusters/fleet-default/c-gmd2b" "$(echo $NEW_KEY | jq . -c)"
I only got so far, and would like to play more if I can find the time, but the world is your oyster here. You can modify anything in place regardless of if you should or could otherwise. You can ready or unready nodes, try to trigger lifecycle events etc. Very powerful!
from rancher.
Related Issues (20)
- [Backport] v2.8: Excessive calls to access cache
- [BUG] Windows system-agent-install script needlessly reinstalls RKE2
- [BUG] `RESTART_STAMP` environment variable is not properly handled on Windows
- Remove cluster-agent replica count to be able to scale up/down
- [BUG] Rancher-Monitoring Chart - Grafana Dashboard General/Rancher/Pod (Containers)
- [BUG] azure rke1 node driver not working - ` websocket: close 1006 (abnormal closure): unexpected EOF` HOT 1
- [BUG] the deployment resourceVersion version is set to "" -metadata.resourceVersion is required for update
- [BUG] Trailing `/` in Rancher server URL makes Harvester clusters registration fail
- [BUG] Rancher Prime cluster cleanup job has wrong image
- Migrate Project monitoring to GHA
- Migrate Opni to GHA
- How to register with Rancher using terrafrom resource "kubectl_manifest" "metrics_server" HOT 3
- [BUG] Respositories reach behind a Proxy
- [BUG] Rancher Webhook Version is not pinned
- ARM64 integration testing in backup-restore-operator
- [Backport v2.7] [BUG] ACI-CNI variables not configurable using Rancher server UI HOT 1
- all cluster-agent pods are scheduled on same node HOT 1
- [BUG] rancher/shell:v0.1.24 reporting `manifest invalid` HOT 2
- kubeversion update for EKS
- Question: Migrate init-node from `CustomMachine` to `Amazonec2Machine` 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 rancher.