Skip to content

Commit

Permalink
add envsubst for injected into .kube/config file
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian.Berzins committed Oct 18, 2016
1 parent a6a76df commit c0b69b4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
FROM alpine
ADD https://storage.googleapis.com/kubernetes-release/release/v1.3.6/bin/linux/amd64/kubectl kubectl

RUN apk add --update libintl && \
apk add --virtual build_deps gettext && \
cp /usr/bin/envsubst /usr/local/bin/envsubst && \
apk del gettext
RUN mkdir /root/.kube
ADD https://storage.googleapis.com/kubernetes-release/release/v1.4.1/bin/linux/amd64/kubectl kubectl
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
### kubectl

Contains the kubectl command for running against kubernetes.

This also contains envsbst for setting up the `~/.kube/config` by injecting
environment variables. This allows for injection of secrets into the config
file without the secrets being shown in plain text, allowing them to be part
of a CI/CD pipeline who's output is visible.

0 comments on commit c0b69b4

Please sign in to comment.