Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
bf4b045aa0 | ||
|
89e84772f0 | ||
|
54e2ec7e8a |
@@ -1,3 +1,12 @@
|
|||||||
|
# 0.6.0
|
||||||
|
* New image ghcr.io/storax/kubedoom:0.6.0
|
||||||
|
* Latest image available as ghcr.io/storax/kubedoom:latest.
|
||||||
|
* Add support for building on different architectures.
|
||||||
|
* Update kubernetes to 1.23.2
|
||||||
|
* Update to Ubuntu 21.10
|
||||||
|
* Github Actions for building the image.
|
||||||
|
* VNC password can be configured during build via the `VNCPASSWORD` build argument.
|
||||||
|
|
||||||
# 0.5.0
|
# 0.5.0
|
||||||
|
|
||||||
* New image storaxdev/kubedoom:1.0.0
|
* New image storaxdev/kubedoom:1.0.0
|
||||||
|
@@ -42,6 +42,7 @@ COPY --from=build-kubedoom /go/src/kubedoom/kubedoom /build/usr/bin
|
|||||||
COPY --from=build-doom /usr/local/games/psdoom /build/usr/local/games
|
COPY --from=build-doom /usr/local/games/psdoom /build/usr/local/games
|
||||||
|
|
||||||
FROM ubuntu:21.10
|
FROM ubuntu:21.10
|
||||||
|
ARG VNCPASSWORD=idbehold
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
-o APT::Install-Suggests=0 \
|
-o APT::Install-Suggests=0 \
|
||||||
--no-install-recommends \
|
--no-install-recommends \
|
||||||
@@ -51,7 +52,7 @@ RUN apt-get update && apt-get install -y \
|
|||||||
xvfb \
|
xvfb \
|
||||||
netcat-openbsd \
|
netcat-openbsd \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
RUN mkdir /root/.vnc && x11vnc -storepasswd idbehold /root/.vnc/passwd
|
RUN mkdir /root/.vnc && x11vnc -storepasswd "${VNCPASSWORD}" /root/.vnc/passwd
|
||||||
COPY --from=build-converge /build /
|
COPY --from=build-converge /build /
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
ENTRYPOINT ["/usr/bin/kubedoom"]
|
ENTRYPOINT ["/usr/bin/kubedoom"]
|
||||||
|
26
README.md
26
README.md
@@ -20,27 +20,27 @@ In order to run locally you will need to
|
|||||||
|
|
||||||
### With Docker
|
### With Docker
|
||||||
|
|
||||||
Run `storaxdev/kubedoom:0.5.0` with docker locally:
|
Run `ghcr.io/storax/kubedoom:latest` with docker locally:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ docker run -p5901:5900 \
|
$ docker run -p5901:5900 \
|
||||||
--net=host \
|
--net=host \
|
||||||
-v ~/.kube:/root/.kube \
|
-v ~/.kube:/root/.kube \
|
||||||
--rm -it --name kubedoom \
|
--rm -it --name kubedoom \
|
||||||
storaxdev/kubedoom:0.5.0
|
ghcr.io/storax/kubedoom:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
Optionally, if you set `-e NAMESPACE={your namespace}` you can limit Kubedoom to deleting pods in a single namespace
|
Optionally, if you set `-e NAMESPACE={your namespace}` you can limit Kubedoom to deleting pods in a single namespace
|
||||||
|
|
||||||
### With Podman
|
### With Podman
|
||||||
|
|
||||||
Run `storaxdev/kubedoom:0.5.0` with podman locally:
|
Run `ghcr.io/storax/kubedoom:latest` with podman locally:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ podman run -it -p5901:5900/tcp \
|
$ podman run -it -p5901:5900/tcp \
|
||||||
-v ~/.kube:/tmp/.kube --security-opt label=disable \
|
-v ~/.kube:/tmp/.kube --security-opt label=disable \
|
||||||
--env "KUBECONFIG=/tmp/.kube/config" --name kubedoom
|
--env "KUBECONFIG=/tmp/.kube/config" --name kubedoom
|
||||||
storaxdev/kubedoom:0.5.0
|
ghcr.io/storax/kubedoom:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
### Attaching a VNC Client
|
### Attaching a VNC Client
|
||||||
@@ -66,7 +66,7 @@ $ docker run -p5901:5900 \
|
|||||||
--net=host \
|
--net=host \
|
||||||
-v ~/.kube:/root/.kube \
|
-v ~/.kube:/root/.kube \
|
||||||
--rm -it --name kubedoom \
|
--rm -it --name kubedoom \
|
||||||
storaxdev/kubedoom:0.5.0 \
|
ghcr.io/storax/kubedoom:latest \
|
||||||
-mode namespaces
|
-mode namespaces
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ example config from this repository:
|
|||||||
```console
|
```console
|
||||||
$ kind create cluster --config kind-config.yaml
|
$ kind create cluster --config kind-config.yaml
|
||||||
Creating cluster "kind" ...
|
Creating cluster "kind" ...
|
||||||
✓ Ensuring node image (kindest/node:v1.19.1) 🖼
|
✓ Ensuring node image (kindest/node:v1.23.0) 🖼
|
||||||
✓ Preparing nodes 📦 📦
|
✓ Preparing nodes 📦 📦
|
||||||
✓ Writing configuration 📜
|
✓ Writing configuration 📜
|
||||||
✓ Starting control-plane 🕹️
|
✓ Starting control-plane 🕹️
|
||||||
@@ -112,4 +112,16 @@ $ vncviewer viewer localhost:5900
|
|||||||
```
|
```
|
||||||
|
|
||||||
Kubedoom requires a service account with permissions to list all pods and delete
|
Kubedoom requires a service account with permissions to list all pods and delete
|
||||||
them and uses kubectl 1.19.2.
|
them and uses kubectl 1.23.2.
|
||||||
|
|
||||||
|
## Building Kubedoom
|
||||||
|
|
||||||
|
The repository contains a Dockerfile to build the kubedoom image. You have to
|
||||||
|
specify your systems architecture as the `TARGETARCH` build argument. For
|
||||||
|
example `amd64` or `arm64`.
|
||||||
|
|
||||||
|
```console
|
||||||
|
$ docker build --build-arg=TARGETARCH=amd64 -t kubedoom .
|
||||||
|
```
|
||||||
|
|
||||||
|
To change the default VNC password, use `--build-arg=VNCPASSWORD=differentpw`.
|
||||||
|
@@ -2,9 +2,9 @@ kind: Cluster
|
|||||||
apiVersion: kind.x-k8s.io/v1alpha4
|
apiVersion: kind.x-k8s.io/v1alpha4
|
||||||
nodes:
|
nodes:
|
||||||
- role: control-plane
|
- role: control-plane
|
||||||
image: kindest/node:v1.19.1@sha256:98cf5288864662e37115e362b23e4369c8c4a408f99cbc06e58ac30ddc721600
|
image: kindest/node:v1.23.0@sha256:49824ab1727c04e56a21a5d8372a402fcd32ea51ac96a2706a12af38934f81ac
|
||||||
- role: worker
|
- role: worker
|
||||||
image: kindest/node:v1.19.1@sha256:98cf5288864662e37115e362b23e4369c8c4a408f99cbc06e58ac30ddc721600
|
image: kindest/node:v1.23.0@sha256:49824ab1727c04e56a21a5d8372a402fcd32ea51ac96a2706a12af38934f81ac
|
||||||
extraPortMappings:
|
extraPortMappings:
|
||||||
- containerPort: 5900
|
- containerPort: 5900
|
||||||
hostPort: 5900
|
hostPort: 5900
|
||||||
|
Reference in New Issue
Block a user