Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/otwld/drone-kind
A Drone CI Plugin for Kubernetes IN Docker
https://github.com/otwld/drone-kind
drone-ci drone-plugin kind kubernetes
Last synced: 21 days ago
JSON representation
A Drone CI Plugin for Kubernetes IN Docker
- Host: GitHub
- URL: https://github.com/otwld/drone-kind
- Owner: otwld
- License: apache-2.0
- Created: 2024-03-29T15:52:59.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-07-15T06:13:45.000Z (7 months ago)
- Last Synced: 2024-11-12T07:17:31.739Z (3 months ago)
- Topics: drone-ci, drone-plugin, kind, kubernetes
- Language: Shell
- Homepage: https://hub.docker.com/repository/docker/otwld/drone-kind/general
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# drone-kind
![GitHub License](https://img.shields.io/github/license/otwld/drone-kind)
[![Build Status](https://drone.outworld.fr/api/badges/otwld/drone-kind/status.svg)](https://drone.outworld.fr/otwld/drone-kind)
![Docker Image Version (latest semver)](https://img.shields.io/docker/v/otwld/drone-kind?label=docker%20image)
![Docker Image Size (tag)](https://img.shields.io/docker/image-size/otwld/drone-kind/latest)A Drone Plugin for Kubernetes IN Docker - local clusters for testing Kubernetes using [kubernetes-sigs/kind](https://kind.sigs.k8s.io/).
This plugin is based and inspired by the [kind-action](https://github.com/helm/kind-action).
## Usage
### Pipeline Overview
```yaml
kind: pipeline
type: docker
name: defaultsteps:
- name: create kind cluster
image: otwld/drone-kind
settings:
verbose: 1
cluster_name: "kind-default"
hostname: "kubernetes" # Use same name as service`s name
volumes:
- name: dockersock
path: /var/run
- name: kubeconfig
path: /root/.kube
depends_on:
- kubernetes
# Add steps for interacting with your kind cluster
- name: kubectl example
image: bitnami/kubectl
commands:
- kubectl cluster-info
depends_on:
- create kind cluster
volumes:
- name: kubeconfig
path: /root/.kube
- name: delete kind cluster
image: otwld/drone-kind
settings:
clean: true
volumes:
- name: dockersock
path: /var/run
- name: kubeconfig
path: /root/.kube
depends_on:
- kubernetes
# Use docker:dind for running kind
services:
- name: kubernetes
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/runvolumes:
- name: dockersock
temp: {}
- name: kubeconfig
temp: {}
```
### Pre-requisites1. Project must be **Trusted**, Settings > General > Project Settings > Enable Trusted
2. Create a `.drone.yml` file in your root directory. [Pipelines examples](#example-pipeline) are available below.
For more information, reference the Drone CI Help Documentation for [Pipeline Overview](https://docs.drone.io/pipeline/overview/)### Inputs
| Setting properties | type | default | required | description |
|--------------------|---------|------------------|---------------|-------------------------------------------------------------------------------------------------------------------------------------------|
| `version` | string | `v0.21.0` | optional | The kind version to use |
| `config` | string | ` ` | optional | Config file for kind. For more information on the config file, see the [documentation](https://kind.sigs.k8s.io/docs/user/configuration/) |
| `node_image` | string | ` ` | optional | The node image to use if specified |
| `cluster_name` | string | `default-kind` | optional | The cluster name | |
| `wait` | string | `60s` | optional | Waiting time for cluster creation |
| `verbosity` | boolean | false | optional | Enabled verbosity of kind |
| `kubectl_version` | string | `v1.28.6` | optional | The kubectl version to use |
| `hostname` | string | `kubernetes` | optional | Specify hostname, must match the **docker:dind service name** |
| `clean_only` | boolean | false | _used for CI_ | This is used for the CI to delete the cluster. |
| `install_only` | boolean | false | _used for CI_ | This is used for the CI. |
| `install_dir` | string | `/usr/local/bin` | _used for CI_ | This is used for the CI. |## Support
- For questions, suggestions, and discussion about this plugin please visit [Drone Kind Github issue page](https://github.com/otwld/drone-kind/issues)