Skip to content

SamuAlfageme/PoC-k8s-Drone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DRONE PIPELINE EXAMPLE

An example drone pipeline using kind to create a kind cluster.

For the sake of simplicity all dependencies will be installed at runtime, but a more complete example can be found in the fury-kubernetes-monitoring project using the image built from fury-images.

We have chosen to use a docker service, sharing the docker socket with the pipeline step creating the cluster. If access to the cluster is needed from successive steps, only the kubeconfig file has to be mounted and used as in the example.

N.B.

  • the project's repository has to be flagged as "trusted" from drone reposistory's settings due to the docker service having privileged: true set
  • the teardown of the cluster will be managed from the docker service, no need to kind delete cluster explicitly
  • the docker service name (here "docker") has to be added to "/apiServer/certSANs" as can be seen in the "kubeadmConfigPatchesJson6902" in kind-config

About

Testbed for EOS running in k8s as a Service in Drone CI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages