Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eddiezane/kubectl-gitlab_bootstrap

Quickly add a Kubernetes cluster to a GitLab project
https://github.com/eddiezane/kubectl-gitlab_bootstrap

gitlab kubectl kubectl-plugin kubectl-plugins kubernetes

Last synced: 2 months ago
JSON representation

Quickly add a Kubernetes cluster to a GitLab project

Awesome Lists containing this project

README

        

# kubectl-gitlab_bootstrap

This is a [kubectl plugin](https://kubernetes.io/docs/tasks/extend-kubectl/kubectl-plugins/) 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](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html) 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](https://gitlab.com/gitlab-org/gitlab-ce/issues/55778).

## Installation

Download the [latest release binary](https://gitlab.com/eddiezane/kubectl-gitlab_bootstrap/-/releases) 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