Sign inSign up

cjimti/docker-kubectl

By cjimti

Updated 9 months ago

Kubectl on alpine based image from docker. Used for container building and k8s deployments in CI/CD.

Image
0

1.1K

cjimti/docker-kubectl repository overview

Docker - Kubectl

Kubectl installed in an alpine based image from docker. Used for container building and k8s deployments in CI/CD.

Usage

GitLab CI/CD
deploy:
  image: txn2/docker-kubectl:29.1.3-1.35.0-2
  script:
    - kubectl set image deployment/myapp myapp=myregistry/myapp:${CI_COMMIT_TAG}
      --server="${K8S_SERVER}"
      --token="${K8S_TOKEN}"
      --certificate-authority=ca.crt
Docker
docker run --rm txn2/docker-kubectl:29.1.3-1.35.0-2 kubectl version --client

Versioning

Images are versioned using the format <docker-version>-<kubectl-version>-<revision>. The Makefile automatically uses the latest git tag.

Make Targets

make build   # Build with latest git tag
make test    # Build and verify kubectl works
make tag     # Build and tag as latest
make push    # Build, tag, and push both
make all     # Same as push

Release

git tag 29.1.3-1.35.0-3
make push

Tag summary

Content type

Image

Digest

sha256:a39e2cc07

Size

166.6 MB

Last updated

9 months ago

docker pull cjimti/docker-kubectl