Skip to content

Commit

Permalink
Update README.md with docker-sshd and kube-sshd information
Browse files Browse the repository at this point in the history
  • Loading branch information
tg123 committed Jan 8, 2024
1 parent ea1d9cc commit bc8499e
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Docker-sshd
# docker-sshd && kube-sshd

## docker-sshd

with `docker-sshd`, you can `ssh` into docker containers from anywhere,
just like `docker exec -ti CONTAINER_ID /bin/bash` on the docker host machine.
Expand All @@ -25,6 +27,32 @@ just like `docker exec -ti CONTAINER_ID /bin/bash` on the docker host machine.
+--------------------------------------------------------------+
```

## kube-sshd

with `kube-sshd`, you can `ssh` into kubenetes pod from anywhere,
just like `kubectl exec -ti POD /bin/bash`.

```
+-------------+
| | ssh POD1@kube-sshd +--------------------+
| ops +------------------------------------> |
| | | kube-sshd |
+-------------+ | |
+----------------+---+
|
|
kubectl exec -ti POD1 /bin/bash |
|
+--------------------------------------------------------------+
| | |
| k8s +------------+ +------------+ +------v-----+ |
| | | | | | | |
| | POD1 | | POD2 | | POD3 | |
| | | | | | | |
| +------------+ +------------+ +------------+ |
| |
+--------------------------------------------------------------+
```

## Install

Expand Down

0 comments on commit bc8499e

Please sign in to comment.