Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pull up / tweaks used in current u24-tf/k8s/clusters/integ-002 #14

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Base Image for Kubernetes Administration

## Build Image

`docker-compose -f dist/alpine/docker-compose.yml --env-file \
config/example.env build --no-cache`

## Launch locally


Expand All @@ -8,4 +13,4 @@

## Notes

https://hub.docker.com/r/vathes/k8s-admin
https://hub.docker.com/r/vathes/k8s-admin
7 changes: 2 additions & 5 deletions config/example.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
# KOPS_VERSION=1.14.0-beta.2
# HELM_VERSION=v2.14.1

KOPS_VERSION=v1.18.0
HELM_VERSION=v3.3.0
KOPS_VERSION=v1.21.1
HELM_VERSION=v3.7.0
13 changes: 6 additions & 7 deletions dist/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@ FROM python:3.8-alpine3.12 as k8s_build
ARG KOPS_VERSION
ARG HELM_VERSION
RUN \
mkdir /main && \
set -x; > /etc/inittab && mkdir /main && \
apk update && \
# export functions, for download, json parsing, ssh keygen, api keygen
apk add --no-cache bash curl jq openssh openssl && \
apk add --no-cache bash curl jq openssh openssl util-linux bind-tools && \
# for aws cli, yaml parsing
pip install awscli --upgrade --user --no-cache-dir && \
# YQ (last verified was 3.4.0)
curl -L $(echo "https://github.com/mikefarah/yq/releases/download/\
$(curl https://api.github.com/repos/mikefarah/yq/releases/latest | jq -r '.tag_name')/\
yq_linux_amd64" | tr -d '\n' | tr -d '\t') -o /usr/local/bin/yq && \
# YQ (v4 needs migration)
curl -L "https://github.com/mikefarah/yq/releases/download/3.4.1/yq_linux_amd64" \
-o /usr/local/bin/yq && \
chmod +x /usr/local/bin/yq && \
# KOPS
curl -L $(echo "https://github.com/kubernetes/kops/releases/download/${KOPS_VERSION}\
Expand Down Expand Up @@ -54,4 +53,4 @@ ENV PATH "/root/.local/bin:$PATH"
WORKDIR /main
VOLUME /main
SHELL ["/bin/bash", "-lc"]
CMD ["/bin/bash"]
CMD ["/bin/bash"]
2 changes: 1 addition & 1 deletion dist/alpine/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ services:
echo "$$0 running...";
echo "PATH: '$$PATH'";
tail -f /dev/null;