Skip to content
Snippets Groups Projects
Commit 06db6bd1 authored by Helmut Hutzler's avatar Helmut Hutzler
Browse files

Updating git-lab agent Readme by adding helm commands

parent 39fa97ed
No related branches found
No related tags found
No related merge requests found
Pipeline #8982 canceled
# gitlab-agent
## Getting started
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
## Add your files
- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
```
cd existing_repo
git remote add origin https://git.informatik.fh-nuernberg.de/HutzlerHe/gitlab-agent.git
git branch -M main
git push -uf origin main
```
## Install new Gitlab Runner
- [ ] Create a new namespact and secret
# gitlab-agent
## Getting started
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
## Add your files
- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
```
cd existing_repo
git remote add origin https://git.informatik.fh-nuernberg.de/HutzlerHe/gitlab-agent.git
git branch -M main
git push -uf origin main
```
## Install new Gitlab-Agent
- [ ] Our gitlab-agent is named gitlab-agent
- [ ] All Yaml files deployed to directory /deployments/ in Gitlab project HutzlerHe/gitlab-agent will be deployed at our Kubernetes cluster
- [ ] => Config file needs to be named : .gitlab/agents/gitlab-agent/config.yaml
- [ ] Initial Content
```
gitops:
manifest_projects:
- id: HutzlerHe/gitlab-agent
default_namespace: testing
paths:
# Read all YAML files from this directory.
- glob: '/deployments/*.yaml'
# Read all .yaml files from team2/apps and all subdirectories.
#- glob: '/team2/apps/**/*.yaml'
# If 'paths' is not specified or is an empty list, the configuration below is used.
#- glob: '/**/*.{yaml,yml,json}'
reconcile_timeout: 3600s
dry_run_strategy: none
prune: true
prune_timeout: 3600s
prune_propagation_policy: foreground
inventory_policy: must_match
```
- [ ] helm commands to install Agent
```
# helm repo add gitlab https://charts.gitlab.io
"gitlab" already exists with the same configuration, skipping
# helm repo update
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "harbor" chart repository
...Successfully got an update from the "kasten" chart repository
...Successfully got an update from the "vmware-tanzu" chart repository
...Successfully got an update from the "bitnami" chart repository
...Successfully got an update from the "prometheus-community" chart repository
...Successfully got an update from the "gitlab" chart repository
...Successfully got an update from the "bitnami-ibm" chart repository
# export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
# helm upgrade --install gitlab-agent gitlab/gitlab-agent \
--namespace gitlab-agent \
--create-namespace \
--set image.tag=v15.3.0 \
--set config.token=FS..................................... \
--set config.kasAddress=wss://git.informatik.fh-nuernberg.de/-/kubernetes-agent/
Release "gitlab-agent" does not exist. Installing it now.
NAME: gitlab-agent
LAST DEPLOYED: Wed Sep 7 13:06:13 2022
NAMESPACE: gitlab-agent
STATUS: deployed
REVISION: 1
TEST SUITE: None
```
For a detail description adding a new Kubernetes cluster to your project read
- [ ] [Add Gitlab Agent description](https://team.informatik.fh-nuernberg.de/confluence/display/KUB/Gitlab+Agent+Install)
## Add new repositories
- [ ] All Yaml files deployed to directory /deployments/ in Gitlab project HutzlerHe/gitlab-agent will be deployed at our Kubernetes cluster
- [ ] => Config file needs to be named : .gitlab/agents/gitlab-agent/config.yaml
- [ ] Initial Content
```
gitops:
manifest_projects:
- id: HutzlerHe/gitlab-agent
default_namespace: testing
paths:
# Read all YAML files from this directory.
- glob: '/deployments/*.yaml'
reconcile_timeout: 3600s
dry_run_strategy: none
prune: true
prune_timeout: 3600s
prune_propagation_policy: foreground
inventory_policy: must_match
```
For adding a new Kubernetes cluster to your project read
- [ ] [Add Gitlab Agent description](https://team.informatik.fh-nuernberg.de/confluence/display/KUB/Gitlab+Agent+Install)
## Add new repositories
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment