Skip to content

Instantly share code, notes, and snippets.

View vijairaj's full-sized avatar

vijairaj vijairaj

  • Chennai
View GitHub Profile
@vijairaj
vijairaj / rustc
Last active December 13, 2018 17:09
Rust compiler errors
|
13 | let x, y = 21, 22;
| -^-- help: try adding parentheses: `(x, y)`
----
|
24 | println!("val {:?} {:?} {:?}", pt, pt2, pt3);
| ^^ did you mean `pt1`?
----
error[E0499]: cannot borrow `vec` as mutable more than once at a time
--> src/main.rs:5:9
@lalyos
lalyos / etcd-list-keys.md
Last active April 26, 2024 16:14
k8s etcd list keys

You can demostrate how kubernetes stores everything in etcd (v3):

One-liner

You can exec etcdctl rigth in the etc pod:

kubectl exec -it \
  -n kube-system etcd-minikube \
  -- sh -c 'ETCDCTL_CACERT=/var/lib/localkube/certs/etcd/ca.crt \
 ETCDCTL_CERT=/var/lib/localkube/certs/etcd/peer.crt \