tweaking for k8smastery (#44)

* tweaking for k8smastery

* linting tweaks
This commit is contained in:
Bret Fisher
2022-01-15 16:41:53 -05:00
committed by GitHub
parent 25fe15f766
commit 003c66d19e
7 changed files with 10 additions and 30 deletions
+1 -1
View File
@@ -4,4 +4,4 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
interval: "monthly"
+3
View File
@@ -0,0 +1,3 @@
# MD013/line-length - Line length
MD013:
code_blocks: false
-12
View File
@@ -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
View File
@@ -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 \
+3 -14
View File
@@ -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 -1
View File
@@ -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
View File
@@ -31,7 +31,7 @@ spec:
serviceAccountName: shpod
containers:
- name: shpod
image: jpetazzo/shpod
image: bretfisher/shpod
stdin: true
tty: true
env: