Last active
July 9, 2019 11:17
-
-
Save tom-code/2fad2eee8564eac9c387584c46e99cf3 to your computer and use it in GitHub Desktop.
kube-apiserver party
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ##start etcd | |
| wget https://github.com/etcd-io/etcd/releases/download/v3.3.13/etcd-v3.3.13-linux-amd64.tar.gz | |
| tar xvf etcd-v3.3.13-linux-amd64.tar.gz | |
| cd etcd-v3.3.13-linux-amd64 | |
| ./etcd --listen-client-urls http://localhost:9999 --advertise-client-urls http://localhost:9999 | |
| get kube-apiserver binary - good place is somewhere in /var on k8s cluster ;) | |
| ./kube-apiserver --secure-port 9000 --etcd-servers http://localhost:9999 --storage-backend etcd3 | |
| kubectl -s http://127.0.0.1:8080 get namespaces | |
| kubectl -s http://127.0.0.1:8080 annotate namespace default test=abc | |
| #may need export ETCDCTL_API=3 | |
| ./etcdctl --endpoints http://localhost:9999 get /registry/namespaces/default | |
| ./etcdctl --endpoints http://localhost:9999 get / --prefix --keys-only=true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment