Sign inSign up

luuhai48/tiny-kubectl

By luuhai48

Updated about 5 years ago

Tiny alpine image, which only includes kubectl cli. Used for CI/CD.

Image
0

218

luuhai48/tiny-kubectl repository overview

Usage in Bitbucket Pipeline:

  • Generate base64-encoded KUBE_CONFIG, and put it in Bitbucket's environment variable:

    • On Lunux: base64 -w 0 < ~/.kube/config.
    • On Mac OS: base64 < ~/.kube/config
  • Example Pipeline step:

- step:
    name: Kubectl deploy
    image: luuhai48/tiny-kubectl:latest
    script:
      - mkdir -p .kube && echo $KUBE_CONFIG | base64 -d > .kube/config
      - kubectl get pods

Tag summary

Content type

Image

Digest

Size

16.6 MB

Last updated

about 5 years ago

docker pull luuhai48/tiny-kubectl