Skip to content

eddiezane/kubectl-gitlab_bootstrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubectl-gitlab_bootstrap

This is a kubectl plugin that makes adding a Kubernetes cluster to a GitLab project a breeze.

The plugin will use the cluster set as your current context to create a ServiceAccount named gitlab-admin with the ClusterRole of cluster-admin. It will then use the provided GitLab personal access token to bootstrap your cluster into the provided GitLab project. From there it's just two simple clicks to install Helm and the GitLab Runner.

Note: Once GitLab implements API support for cluster applications we will be able to install the Runner directly into the cluster as well. Tracked at this issue.

Installation

Download the latest release binary and place in $PATH (probably /usr/local/bin).

Usage

kubectl gitlab-bootstrap gitlab-project-id
...
Cluster successfully added to project!
To finish up visit: https://gitlab.com/eddiezane/kubectl-gitlab_bootstrap/clusters/68697 and install Helm and Runner.

LICENSE

MIT

About

Quickly add a Kubernetes cluster to a GitLab project

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages