Drone plugin to deploy or update a deployments on kubernetes. For the usage information and a listing of the available options please take a look at the docs.
Please note this plugin uses Deployments avaliable on kubernetes 1.2 and up.
Build the binary using make
:
make deps build
deploy:
kubernetes:
cluster: https://107.978.211.57
token: $$TOKEN
image: squizr/drone-kubernetes
deployment:
kind: "Deployment"
spec:
template:
spec:
containers:
-
image: "nginx:1.7.9"
name: "nginx"
ports:
-
containerPort: 80
metadata:
labels:
app: "nginx"
replicas: 3
apiVersion: "extensions/v1beta1"
metadata:
name: "nginx-deployment"
cat test-payload.json | docker run -i squizr/drone-kubernetes
- Change Auth to service accounts
- Write tests
Build the container using make
:
make deps docker