asauber / dssh Goto Github PK
View Code? Open in Web Editor NEWKeep your ssh authorized_keys up to date on a Kubernetes cluster
Keep your ssh authorized_keys up to date on a Kubernetes cluster
The README could use some examples. I've included a few that I found useful.
Here's an example of installing dssh
without git
, using keys that are already associated with your Github profile:
# GHUSER is your github username
$ curl -so- https://github.com/GHUSER.keys | kubectl create configmap root-ssh-pubkeys -n kube-system --from-file /dev/stdin
configmap/root-ssh-pubkeys created
$ kubectl apply -f https://raw.githubusercontent.com/asauber/dssh/master/daemonset.yaml
daemonset.apps/root-ssh-manager created
$ ssh [email protected]
Linux lke123-123-123b31337123 5.7.0-1-cloud-amd64 #1 SMP Debian 5.7.6-1 (2020-06-24) x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@lke123-123-123b31337123:~#
This could be handy when wanting to run the same command on all nodes:
$ for ip in $(kubectl get nodes -o jsonpath='{ $.items[*].status.addresses[?(@.type=="ExternalIP")].address }'); do \
ssh root@$ip hostname; done
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.