mirror of
https://github.com/BretFisher/shpod.git
synced 2026-08-25 02:27:15 +00:00
tweaking for k8smastery (#44)
* tweaking for k8smastery * linting tweaks
This commit is contained in:
@@ -4,4 +4,4 @@ updates:
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
interval: "monthly"
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
# MD013/line-length - Line length
|
||||
MD013:
|
||||
code_blocks: false
|
||||
@@ -1,12 +0,0 @@
|
||||
name: Automated Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
automated-build:
|
||||
uses: jpetazzo/workflows/.github/workflows/automated-build.yaml@main
|
||||
secrets:
|
||||
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}
|
||||
+1
-1
@@ -215,7 +215,7 @@ RUN ( \
|
||||
) > versions.txt
|
||||
|
||||
# If there is a tty, give us a shell.
|
||||
# (This happens e.g. when we do "docker run -ti jpetazzo/shpod".)
|
||||
# (This happens e.g. when we do "docker run -ti bretfisher/shpod".)
|
||||
# Otherwise, start an SSH server.
|
||||
# (This happens e.g. when we use that image in a Pod in a Deployment.)
|
||||
CMD \
|
||||
|
||||
@@ -5,18 +5,7 @@
|
||||
|
||||
**TL,DR:** `curl https://k8smastery.com/shpod.sh | sh`
|
||||
|
||||
If you are looking for an image that works on the ARM architecture
|
||||
(like the Raspberry Pi or the Apple M1), have a look at
|
||||
[BretFisher/shpod](https://github.com/BretFisher/shpod) instead.
|
||||
Bret's fork is also a state-of-the-art example of a multi-arch
|
||||
Dockerfile!
|
||||
|
||||
If you are looking for an image that works on the ARM architecture
|
||||
(like the Raspberry Pi or the Apple M1), have a look at
|
||||
[BretFisher/shpod](https://github.com/BretFisher/shpod) instead.
|
||||
Bret's fork is also a state-of-the-art example of a multi-arch
|
||||
Dockerfile!
|
||||
|
||||
Thanks to @jpetazzo for this fantastic open source!
|
||||
|
||||
## What's this?
|
||||
|
||||
@@ -74,7 +63,7 @@ server to obtain the shell.
|
||||
|
||||
Run it in a Pod and attach directly to it:
|
||||
```bash
|
||||
kubectl run shpod --restart=Never --rm -it --image=jpetazzo/shpod
|
||||
kubectl run shpod --restart=Never --rm -it --image=bretfisher/shpod
|
||||
```
|
||||
|
||||
This should give you a shell in a pod, with all the tools installed.
|
||||
@@ -88,7 +77,7 @@ until you create an appropriate RoleBinding or ClusterRoleBinding
|
||||
Run as a Pod (or Deployment), then expose (or port-forward) to port
|
||||
22 in that Pod, and connect with an SSH client:
|
||||
```bash
|
||||
kubectl run shpod --image=jpetazzo/shpod
|
||||
kubectl run shpod --image=bretfisher/shpod
|
||||
kubectl wait pod shpod --for=condition=ready
|
||||
kubectl port-forward pod/shpod 2222:22
|
||||
ssh -l k8s -p 2222 localhost # the default password is "k8s"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
🐚 Welcome to shpod - SHell in a POD.
|
||||
🔎 Check "/versions.txt" to see the list of included tools.
|
||||
🔗 See https://github.com/jpetazzo/shpod for more information.
|
||||
🔗 See https://github.com/bretfisher/shpod for more information.
|
||||
📦️ You can install extra packages with 'sudo apk add PKGNAME'.
|
||||
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ spec:
|
||||
serviceAccountName: shpod
|
||||
containers:
|
||||
- name: shpod
|
||||
image: jpetazzo/shpod
|
||||
image: bretfisher/shpod
|
||||
stdin: true
|
||||
tty: true
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user