Update SSH port from 22 to 2222 in Dockerfile, entrypoint, and Kubernetes configurations
All checks were successful
Build k8s-mgmt-pod image / Build & Push (push) Successful in 1m35s
All checks were successful
Build k8s-mgmt-pod image / Build & Push (push) Successful in 1m35s
This commit is contained in:
parent
b715b4bb59
commit
5584dc1f29
9 changed files with 31 additions and 24 deletions
16
README.md
16
README.md
|
|
@ -7,7 +7,7 @@
|
|||
- `helm` preinstalled from a pinned upstream binary release
|
||||
- `k9s` preinstalled from a pinned GitHub release tarball
|
||||
- `kubectl` and `helm` bash autocompletion enabled for both `admin` and `user`
|
||||
- local `openssh-server` on port `22`
|
||||
- local `openssh-server` on port `2222`
|
||||
- a browser-based SSH client on port `3000`
|
||||
- a custom ASCII-art MOTD on login
|
||||
- two provisioned users: `admin` and `user`
|
||||
|
|
@ -20,7 +20,7 @@ One caveat is worth stating clearly: browser-based SSH tools do not keep the pri
|
|||
|
||||
## Ports
|
||||
|
||||
- `22`: native SSH into the container's local `sshd`
|
||||
- `2222`: native SSH into the container's local `sshd`
|
||||
- `3000`: browser UI entrypoint; `/` and `/ssh` are forced to a fixed local WebSSH2 session for `127.0.0.1` and rewritten back to that host if changed in the URL
|
||||
|
||||
## Runtime environment variables
|
||||
|
|
@ -113,7 +113,7 @@ If `${HOME}/.kube/config` is missing on the host, the container logs that bootst
|
|||
|
||||
```bash
|
||||
docker run --rm \
|
||||
-p 2222:22 \
|
||||
-p 2222:2222 \
|
||||
-p 3000:3000 \
|
||||
-e ADMIN_SSH_PUBKEY="$(cat ~/.ssh/id_ed25519.pub)" \
|
||||
-e USER_SSH_PUBKEY="ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIexample user@example" \
|
||||
|
|
@ -132,7 +132,7 @@ Or in a browser at `http://localhost:3000/`.
|
|||
|
||||
```bash
|
||||
docker run --rm \
|
||||
-p 2222:22 \
|
||||
-p 2222:2222 \
|
||||
-p 3000:3000 \
|
||||
-e ADMIN_PASSWORD='change-this-admin-password' \
|
||||
-e USER_PASSWORD='change-this-user-password' \
|
||||
|
|
@ -143,7 +143,7 @@ If that fails with a message like `unable to upgrade to tcp, received 500`, the
|
|||
|
||||
```bash
|
||||
docker run -d --name k8s-mgmt-pod \
|
||||
-p 2222:22 \
|
||||
-p 2222:2222 \
|
||||
-p 3000:3000 \
|
||||
-e ADMIN_PASSWORD='change-this-admin-password' \
|
||||
-e USER_PASSWORD='change-this-user-password' \
|
||||
|
|
@ -156,7 +156,7 @@ If Docker reports `bind: address already in use`, change the host-side ports or
|
|||
|
||||
```bash
|
||||
docker run --rm \
|
||||
-p 127.0.0.1::22 \
|
||||
-p 127.0.0.1::2222 \
|
||||
-p 127.0.0.1::3000 \
|
||||
-e ADMIN_PASSWORD='change-this-admin-password' \
|
||||
-e USER_PASSWORD='change-this-user-password' \
|
||||
|
|
@ -167,7 +167,7 @@ docker run --rm \
|
|||
|
||||
```bash
|
||||
docker run --rm \
|
||||
-p 2222:22 \
|
||||
-p 2222:2222 \
|
||||
-p 3000:3000 \
|
||||
-e ADMIN_SSH_PUBKEY="$(cat ~/.ssh/id_ed25519.pub)" \
|
||||
-e ADMIN_PASSWORD='change-this-admin-password' \
|
||||
|
|
@ -184,7 +184,7 @@ If you omit both the public-key and password variables for a user, the container
|
|||
|
||||
```bash
|
||||
docker run --rm \
|
||||
-p 2222:22 \
|
||||
-p 2222:2222 \
|
||||
-p 3000:3000 \
|
||||
-e ADMIN_SSH_PUBKEY="$(cat ~/.ssh/id_ed25519.pub)" \
|
||||
k8s-mgmt-pod:local
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue