Use the Kubernetes plugin to deploy pods, replication controllers or services to a kubernetes cluster. The following parameters are used to configure this plugin:
artifacts
- list of artifacts you want to deployapiserver
- url of kubernetes masternamespace
- namespace where the artifacts will be deployedtoken
- token to validate credentials
The following is a sample Kubernetes configuration in your .drone.yml file:
publish:
kubernetes:
replicationcontrollers:
- kubernetes/nginx-rc.yaml
- kubernetes/nginx.json
secrets:
- kubernetes/secrets.yaml
services:
apiserver: https://127.0.0.1
namespace: default
token: $$TOKEN
The plugin assumes the kubernetes artifacts are stored in the current repo.