Update to kubernetes 1.17

This commit is contained in:
David Zuber
2020-02-15 19:36:30 +00:00
parent 2124035e37
commit b2bdf4eb3b
5 changed files with 26 additions and 16 deletions

8
CHANGELOG.md Normal file
View File

@ -0,0 +1,8 @@
# 0.2.0
* New image storadev/kubedoom:0.2.0
* Update kubernetes to 1.17.3
# 0.1.0
* Initial release

View File

@ -1,4 +1,4 @@
FROM golang:1.12-alpine AS gobuild FROM golang:1.13-alpine AS gobuild
WORKDIR /go/src/kubedoom WORKDIR /go/src/kubedoom
ADD kubedoom.go . ADD kubedoom.go .
@ -15,7 +15,7 @@ RUN apt-get install -y \
--no-install-recommends \ --no-install-recommends \
wget ca-certificates wget ca-certificates
RUN wget http://distro.ibiblio.org/pub/linux/distributions/slitaz/sources/packages/d/doom1.wad RUN wget http://distro.ibiblio.org/pub/linux/distributions/slitaz/sources/packages/d/doom1.wad
RUN wget -O /usr/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/v1.15.3/bin/linux/amd64/kubectl \ RUN wget -O /usr/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/$(wget -O- https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl \
&& chmod +x /usr/bin/kubectl && chmod +x /usr/bin/kubectl
FROM ubuntu AS ubuntu-build FROM ubuntu AS ubuntu-build

View File

@ -13,13 +13,13 @@ which was forked from psdoom.
## Usage ## Usage
Run `storaxdev/kubedoom:0.1.0` locally: Run `storaxdev/kubedoom:0.2.0` locally:
```console ```console
$ docker run -p5900:5900 \ $ docker run -p5900:5900 \
-v ~/.kube:/root/.kube \ -v ~/.kube:/root/.kube \
--rm -it --name kubedoom \ --rm -it --name kubedoom \
storaxdev/kubedoom:0.1.0 storaxdev/kubedoom:0.2.0
``` ```
Now start a VNC viewer and connect to `localhost:5900`. The password is `1234`: Now start a VNC viewer and connect to `localhost:5900`. The password is `1234`:
@ -41,17 +41,19 @@ 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.15.0) 🖼 ✓ Ensuring node image (kindest/node:v1.17.0) 🖼
✓ Preparing nodes 📦📦 ✓ Preparing nodes 📦 📦
Creating kubeadm config 📜 Writing configuration 📜
✓ Starting control-plane 🕹️ ✓ Starting control-plane 🕹️
✓ Installing CNI 🔌 ✓ Installing CNI 🔌
✓ Installing StorageClass 💾 ✓ Installing StorageClass 💾
✓ Joining worker nodes 🚜 ✓ Joining worker nodes 🚜
Cluster creation complete. You can now use the cluster with: Set kubectl context to "kind-kind"
You can now use your cluster with:
export KUBECONFIG="$(kind get kubeconfig-path --name="kind")" kubectl cluster-info --context kind-kind
kubectl cluster-info
Not sure what to do next? 😅 Check out https://kind.sigs.k8s.io/docs/user/quick-start/
``` ```
This will spin up a 2 node cluster inside docker, with port 5900 exposed from This will spin up a 2 node cluster inside docker, with port 5900 exposed from
@ -67,4 +69,4 @@ serviceaccount/kubedoom created
clusterrolebinding.rbac.authorization.k8s.io/kubedoom created clusterrolebinding.rbac.authorization.k8s.io/kubedoom created
``` ```
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.15.3. them and uses kubectl 1.17.3.

View File

@ -1,10 +1,10 @@
kind: Cluster kind: Cluster
apiVersion: kind.sigs.k8s.io/v1alpha3 apiVersion: kind.x-k8s.io/v1alpha4
nodes: nodes:
- role: control-plane - role: control-plane
image: kindest/node:v1.15.7 image: kindest/node:v1.17.0
- role: worker - role: worker
image: kindest/node:v1.15.7 image: kindest/node:v1.17.0
extraPortMappings: extraPortMappings:
- containerPort: 5900 - containerPort: 5900
hostPort: 5900 hostPort: 5900

View File

@ -1,4 +1,4 @@
apiVersion: apps/v1beta2 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
labels: labels:
@ -18,7 +18,7 @@ spec:
hostNetwork: true hostNetwork: true
serviceAccountName: kubedoom serviceAccountName: kubedoom
containers: containers:
- image: storaxdev/kubedoom:0.1.0 - image: storaxdev/kubedoom:0.2.0
name: kubedoom name: kubedoom
ports: ports:
- containerPort: 5900 - containerPort: 5900