From 39fa97edb7063890bed441b9fb8f94108aea92bf Mon Sep 17 00:00:00 2001 From: Helmut Hutzler <helmut.hutzler@th-nuernberg.de> Date: Thu, 15 Sep 2022 16:41:31 +0200 Subject: [PATCH] Updating git-lab agent Readme --- README.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/README.md b/README.md index c9c7818..3f1b9d7 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,42 @@ git remote add origin https://git.informatik.fh-nuernberg.de/HutzlerHe/gitlab-ag 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 +``` +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 +- [ ] All Yaml files deployed to directory /deployments/ in Gitlab project HutzlerHe/testing-gitlab-agent will be deployed at our Kubernetes cluster +``` + - id: HutzlerHe/testing-gitlab-agent + default_namespace: testing + paths: + # Read all YAML files from this directory. + - glob: '/deployments/*.yaml' +``` ## Integrate with your tools - [ ] [Set up project integrations](https://git.informatik.fh-nuernberg.de/HutzlerHe/gitlab-agent/-/settings/integrations) -- GitLab