chore(bootstrap): Added Gitea Runners to ArgoCD
This commit is contained in:
17
clusters/artemis/apps/gitea-runners/app-project.yaml
Normal file
17
clusters/artemis/apps/gitea-runners/app-project.yaml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: AppProject
|
||||||
|
metadata:
|
||||||
|
name: gitea-runners
|
||||||
|
spec:
|
||||||
|
description: Runners for Gitea
|
||||||
|
sourceRepos:
|
||||||
|
- '*'
|
||||||
|
sourceNamespaces:
|
||||||
|
- '*'
|
||||||
|
destinations:
|
||||||
|
- namespace: 'gitea-runners'
|
||||||
|
server: '*'
|
||||||
|
clusterResourceWhitelist:
|
||||||
|
- group: '*'
|
||||||
|
kind: '*'
|
||||||
24
clusters/artemis/apps/gitea-runners/application.yaml
Normal file
24
clusters/artemis/apps/gitea-runners/application.yaml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: gitea-runners
|
||||||
|
namespace: gitea-runners
|
||||||
|
labels:
|
||||||
|
platform.dgse.cloud/cluster: artemis
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
spec:
|
||||||
|
project: vault
|
||||||
|
source:
|
||||||
|
repoURL: 'https://git.dgse.cloud/DGSE/kubernetes.git'
|
||||||
|
path: manifests/artemis/gitea-runners
|
||||||
|
targetRevision: HEAD
|
||||||
|
destination:
|
||||||
|
namespace: gitea-runners
|
||||||
|
name: in-cluster
|
||||||
|
syncPolicy:
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
7
clusters/artemis/apps/gitea-runners/kustomization.yaml
Normal file
7
clusters/artemis/apps/gitea-runners/kustomization.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- app-project.yaml
|
||||||
|
- application.yaml
|
||||||
8
manifests/artemis/gitea-runners/kustomization.yaml
Normal file
8
manifests/artemis/gitea-runners/kustomization.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
helmCharts:
|
||||||
|
- name: actions
|
||||||
|
repo: https://dl.gitea.com/charts/
|
||||||
|
version: 0.0.1
|
||||||
|
releaseName: gitea-actions
|
||||||
|
namespace: gitea-runners
|
||||||
|
valuesFile: values.yaml
|
||||||
95
manifests/artemis/gitea-runners/values.yaml
Normal file
95
manifests/artemis/gitea-runners/values.yaml
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
# Configure Gitea Actions
|
||||||
|
## @section Gitea Actions
|
||||||
|
#
|
||||||
|
## @param enabled Create an act runner StatefulSet.
|
||||||
|
## @param init.image.repository The image used for the init containers
|
||||||
|
## @param init.image.tag The image tag used for the init containers
|
||||||
|
## @param statefulset.replicas the amount of (replica) runner pods deployed
|
||||||
|
## @param statefulset.timezone is the timezone that will be set in the act_runner image
|
||||||
|
## @param statefulset.annotations Act runner annotations
|
||||||
|
## @param statefulset.labels Act runner labels
|
||||||
|
## @param statefulset.resources Act runner resources
|
||||||
|
## @param statefulset.nodeSelector NodeSelector for the statefulset
|
||||||
|
## @param statefulset.tolerations Tolerations for the statefulset
|
||||||
|
## @param statefulset.affinity Affinity for the statefulset
|
||||||
|
## @param statefulset.extraVolumes Extra volumes for the statefulset
|
||||||
|
## @param statefulset.actRunner.repository The Gitea act runner image
|
||||||
|
## @param statefulset.actRunner.tag The Gitea act runner tag
|
||||||
|
## @param statefulset.actRunner.pullPolicy The Gitea act runner pullPolicy
|
||||||
|
## @param statefulset.actRunner.extraVolumeMounts Allows mounting extra volumes in the act runner container
|
||||||
|
## @param statefulset.actRunner.config [default: Too complex. See values.yaml] Act runner custom configuration. See [Act Runner documentation](https://docs.gitea.com/usage/actions/act-runner#configuration) for details.
|
||||||
|
## @param statefulset.dind.repository The Docker-in-Docker image
|
||||||
|
## @param statefulset.dind.tag The Docker-in-Docker image tag
|
||||||
|
## @param statefulset.dind.pullPolicy The Docker-in-Docker pullPolicy
|
||||||
|
## @param statefulset.dind.extraVolumeMounts Allows mounting extra volumes in the Docker-in-Docker container
|
||||||
|
## @param statefulset.dind.extraEnvs Allows adding custom environment variables, such as `DOCKER_IPTABLES_LEGACY`
|
||||||
|
## @param statefulset.persistence.size Size for persistence to store act runner data
|
||||||
|
## @param existingSecret Secret that contains the token
|
||||||
|
## @param existingSecretKey Secret key
|
||||||
|
## @param giteaRootURL URL the act_runner registers and connect with
|
||||||
|
enabled: true
|
||||||
|
statefulset:
|
||||||
|
replicas: 3
|
||||||
|
timezone: Etc/UTC
|
||||||
|
annotations: {}
|
||||||
|
labels: {}
|
||||||
|
resources: {}
|
||||||
|
nodeSelector: {}
|
||||||
|
tolerations: []
|
||||||
|
affinity: {}
|
||||||
|
extraVolumes: []
|
||||||
|
|
||||||
|
actRunner:
|
||||||
|
repository: gitea/act_runner
|
||||||
|
tag: 0.2.13
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
extraVolumeMounts: []
|
||||||
|
|
||||||
|
# See full example here: https://gitea.com/gitea/act_runner/src/branch/main/internal/pkg/config/config.example.yaml
|
||||||
|
config: |
|
||||||
|
log:
|
||||||
|
level: debug
|
||||||
|
cache:
|
||||||
|
enabled: false
|
||||||
|
container:
|
||||||
|
require_docker: true
|
||||||
|
docker_timeout: 300s
|
||||||
|
|
||||||
|
dind:
|
||||||
|
repository: docker
|
||||||
|
tag: 28.3.3-dind
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
extraVolumeMounts: []
|
||||||
|
|
||||||
|
# If the container keeps crashing in your environment, you might have to add the `DOCKER_IPTABLES_LEGACY` environment variable.
|
||||||
|
# See https://github.com/docker-library/docker/issues/463#issuecomment-1881909456
|
||||||
|
extraEnvs:
|
||||||
|
[]
|
||||||
|
# - name: "DOCKER_IPTABLES_LEGACY"
|
||||||
|
# value: "1"
|
||||||
|
|
||||||
|
persistence:
|
||||||
|
size: 1Gi
|
||||||
|
|
||||||
|
init:
|
||||||
|
image:
|
||||||
|
repository: busybox
|
||||||
|
# Overrides the image tag whose default is the chart appVersion.
|
||||||
|
tag: "1.37.0"
|
||||||
|
|
||||||
|
## Specify an existing token secret
|
||||||
|
##
|
||||||
|
existingSecret: "gitea-runner-token"
|
||||||
|
existingSecretKey: "token"
|
||||||
|
|
||||||
|
## Specify the root URL of the Gitea instance
|
||||||
|
giteaRootURL: "https://git.dgse.cloud"
|
||||||
|
|
||||||
|
## @section Global
|
||||||
|
#
|
||||||
|
## @param global.imageRegistry global image registry override
|
||||||
|
## @param global.storageClass global storage class override
|
||||||
|
global:
|
||||||
|
imageRegistry: ""
|
||||||
|
storageClass: ""
|
||||||
|
|
||||||
Reference in New Issue
Block a user