Skip to content

dxas90/drone-kubectl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forked and built with the latest kubectl.

drone-kubectl

This Drone plugin allows you to use kubectl without messing around with the authentication.

Usage

# drone 1.0 syntax
kind: pipeline
name: deploy

steps:
  - name: deploy
    image: dxas90/drone-kubectl
    environment:
      KUBE_CONFIG:
        from_secret: kube_config
    commands:
      - /bin/kubectl create -f job_foo.yaml
      - /bin/kubectl wait --for=condition=complete -f job_foo.yaml

How to get the credentials

First, you need to have a service account with proper privileges and service-account-token:

cat ~/.kube/config | base64 -w0 > config-serialized

Special thanks

Inspired by:

About

kubectl plugin for Drone CI

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 71.7%
  • Shell 28.3%