Create, update and delete Digitalocean Kubernetes Clusters.
Installing
Use this resource by adding the following to
the resource_types section of your pipeline config:
See concourse docs for more details
on adding resource_types to a pipeline config.
Configuration (Check)
Check communicates with the Digitalocean API to make sure that your configuration is correct.
Options
| Option | Required | Description |
|---|---|---|
| token | :material-check: | Digitalocean token with read/write access. You can read how to create one here. |
| region | :material-check: | Set the region in which you want to deploy the kubernetes cluster. |
| tags | :material-check: | A list of tags for the cluster. |
| skip | :material-close: | Used only in get_params under Put |
| node_pools | :material-check: | A list with the node pools you want to deploy for your cluster. |
Node Pools options
| Option | Required | Description |
|---|---|---|
| name | :material-check: | Name of the node pool |
| size | :material-check: | Size of the nodes in the node pool |
| count | :material-check: | How many nodes will be in the pool |
| tags | :material-check: | A list of tags for the nodes in the node pool |
Get (In)
Provision a new cluster in Digitalocean and save the cluster ID and the cluster kubeconfig under the resource directory.
Generated artifacts:
- cluster/cluster_id
- cluster/kubeconfig
Params:
| Option | Required | Description |
|---|---|---|
| name | :material-check: | Name of the cluster |
| version | :material-check: | Version Slug of kubernetes cluster to deploy, |
Put (Out)
Update or delete a kubernetes cluster. Needs to be run after Get since it depends in some artifacts generated by it.
Delete
Params:
| Option | Required | Description |
|---|---|---|
| name | :material-check: | Name of the cluster |
| delete | :material-close: | If delete is true then the cluster will be deleted |
Update
Params:
| Option | Required | Description |
|---|---|---|
| name | :material-check: | Name of the cluster |
| node_pools | :material-check: | A list with the node pools you want to update |
Node Pools options
| Option | Required | Description |
|---|---|---|
| name | :material-check: | Name of the node pool |
| count | :material-check: | How many nodes will be in the pool |
Container Verification
To verify the container signature you will need to install cosign and run