Sign inSign up

aarongorka/kubernetes-utils

By aarongorka

Updated almost 8 years ago

Docker image with kubectl and other Kubernetes utilities

Image
0

839

aarongorka/kubernetes-utils repository overview

docker-kubernetes-utils

Docker image with kubectl and other useful Kubernetes utilities

Why?

This image is used when following the 3 Musketeers pattern. By running kubectl inside Docker, we ensure consistency, control and confidence.

  • Consistency: when developing automated processes that use kubectl, you can be sure that they will function the same whether you run it on your Windows workstation or on a Jenkins build agent.
  • Control: by specifying the version of the image in [docker-compose.yml][], we can deploy to two incompatible versions of Kubernetes simultaneously.
  • Confidence: reliable deployments build confidence in the use of CI/CD pipelines, creating a positive feedback loop that encourages developers to use CI/CD

How To Use

Makefile:

deploy:
	docker-compose run --rm kubectl apply -f k8s-config/deployment.yml

docker-compose.yml:

services:
  kubectl:
    image: aarongorka/kubernetes-utils:1.10.3
    volumes:
      - .:/srv/app:Z
      - ~/.kube:/root/.kube:Z
    working_dir: /srv/app

Tag summary

Content type

Image

Digest

Size

63.4 MB

Last updated

almost 8 years ago

docker pull aarongorka/kubernetes-utils