Skip to content

Commit

Permalink
Inital release
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Metz committed Sep 26, 2020
1 parent 24ae30f commit 696b2fa
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 4 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: build-push

on:
push:
paths:
- ./Dockerfile
branches:
- master ]
create:
tags:
- v*

jobs:
multi:
runs-on: ubuntu-latest
steps:
-
name: Get git tag
id: get-tag
run: echo "::set-output name=tag::${GITHUB_REF##*/}"
shell: bash
-
name: Checkout
uses: actions/checkout@v2
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
if: startsWith(steps.get-tag.outputs.tag, 'v')
-
name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x
push: true
tags: |
wasfree/toolkit:latest
wasfree/toolkit:${{ steps.get-tag.outputs.tag }}
if: startsWith(steps.get-tag.outputs.tag, 'v')
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM ubuntu:latest

RUN apt-get update && \
apt-get install -y --no-install-recommends \
openssh-client \
inetutils-ping \
inetutils-traceroute \
dnsutils \
net-tools \
curl \
postgresql-client
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@

This container will provide all required tools to debug Kubernetes cluster issues.

Deploy toolkit container as pod into your cluster:
## Quick Start

`kubectl apply -f https://raw.githubusercontent.com/wasfree/toolkit-container/master/pod.yaml`
Deploy toolkit container as pod into your Kubernetes cluster and login:

Connect to your toolkit pod:
```
$ kubectl apply -f https://raw.githubusercontent.com/wasfree/toolkit-container/master/pod.yaml
$ kubectl exec -it toolkit /bin/bash
```

Uninstall from Kubernetes Cluster
```
$ kubectl delete pod toolkit
```

`kubectl exec -it toolkit /bin/bash`# toolkit
18 changes: 18 additions & 0 deletions pod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
apiVersion: v1
kind: Pod
metadata:
name: toolkit
labels:
name: toolkit
spec:
containers:
- args:
- /bin/bash
name: toolkit
image: wasfree/toolkit:latest
tty: true
resources:
limits:
memory: "256M"
cpu: "500m"

0 comments on commit 696b2fa

Please sign in to comment.