Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 27 days ago
JSON representation
Quickly add a Kubernetes cluster to a GitLab project
- Host: GitHub
- URL: https://github.com/eddiezane/kubectl-gitlab_bootstrap
- Owner: eddiezane
- License: mit
- Created: 2019-09-04T20:49:22.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-15T22:04:27.000Z (over 3 years ago)
- Last Synced: 2024-08-02T06:14:27.084Z (3 months ago)
- Topics: gitlab, kubectl, kubectl-plugin, kubectl-plugins, kubernetes
- Language: Go
- Size: 14.6 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-kubectl-plugins - kubectl-gitlab-bootstrap
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