This repository contains the Docker image can be used to create an ephemeral Kubernetes Cluster using kind inside a Drone.io build. You can create the cluster, install via Helm the prerequisites and test your artifact as you prefer.
kind: pipeline
type: kubernetes
name: test
platform:
os: linux
arch: arm64
steps:
- name: create kind cluster
image: angeloxx/drone-kind
pull: always
settings:
verbose: 1
cluster_name: "kind-default"
hostname: "kubernetes"
volumes:
- name: dockersock
path: /var/run
- name: kubeconfig
path: /root/.kube
depends_on:
- kubernetes
- name: install prerequisites
image: alpine/helm
commands:
- helm install cert-manager oci://quay.io/jetstack/charts/cert-manager --namespace cert-manager --create-namespace --version v1.21.2 --set crds.enabled=true
- helm install essendi-xc-issuer oci://registry-1.docker.io/angeloxx/cert-manager-essendi-xc-issuer --version 0.2.4-helm --namespace cert-manager
depends_on:
- create kind cluster
volumes:
- name: kubeconfig
path: /root/.kube
- name: delete kind cluster
image: angeloxx/drone-kind
pull: always
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/run
volumes:
- name: dockersock
temp: {}
- name: kubeconfig
temp: {}
trigger:
event:
- push
- custom
branch:
- master
Content type
Image
Digest
sha256:e2e44326c…
Size
125.7 MB
Last updated
6 days ago
docker pull angeloxx/drone-kind