From 7d15e00720525212b03de66616b48aaeb41f91e9 Mon Sep 17 00:00:00 2001 From: nold Date: Mon, 21 Nov 2022 20:05:03 +0100 Subject: [PATCH] Revert "Del: Woodpecker" This reverts commit 28df12a3532b43f454f13b26fb0244eafb704a89. --- projects/woodpecker/project.yml | 27 +++++++ .../woodpecker/values/woodpecker-agent.yaml | 35 +++++++++ .../woodpecker/values/woodpecker-server.yaml | 76 +++++++++++++++++++ 3 files changed, 138 insertions(+) create mode 100644 projects/woodpecker/project.yml create mode 100644 projects/woodpecker/values/woodpecker-agent.yaml create mode 100644 projects/woodpecker/values/woodpecker-server.yaml diff --git a/projects/woodpecker/project.yml b/projects/woodpecker/project.yml new file mode 100644 index 00000000..280fea1c --- /dev/null +++ b/projects/woodpecker/project.yml @@ -0,0 +1,27 @@ +config: + description: Woodpecker-CI + +apps: + - name: woodpecker-server + repoURL: https://github.com/nold360/woodpecker/ + path: charts/woodpecker-server + targetRevision: helm + secrets: + - name: github-oauth + keys: + - WOODPECKER_GITHUB_CLIENT + - WOODPECKER_GITHUB_SECRET + - name: woodpecker-secret + keys: + - WOODPECKER_AGENT_SECRET + + - name: woodpecker-agent + namespace: woodpecker-agent + repoURL: https://github.com/nold360/woodpecker + path: charts/woodpecker-agent + targetRevision: helm + secrets: + - name: woodpecker-secret + fromApp: woodpecker-server + keys: + - WOODPECKER_AGENT_SECRET diff --git a/projects/woodpecker/values/woodpecker-agent.yaml b/projects/woodpecker/values/woodpecker-agent.yaml new file mode 100644 index 00000000..4525aafe --- /dev/null +++ b/projects/woodpecker/values/woodpecker-agent.yaml @@ -0,0 +1,35 @@ +replicaCount: 2 + +image: + registry: docker.io + repository: woodpeckerci/woodpecker-agent + pullPolicy: Always + # Overrides the image tag whose default is the chart appVersion. + tag: "latest" + +env: + WOODPECKER_SERVER: "woodpecker-server.woodpecker-server.svc.cluster.local:9000" + +extraSecretNamesForEnvFrom: +- woodpecker-secret + +podAnnotations: {} + +podSecurityContext: + fsGroup: 2000 + +securityContext: + capabilities: + drop: + - ALL + readOnlyRootFilesystem: true + runAsNonRoot: true + runAsUser: 1000 + +resources: + limits: + cpu: 500m + memory: 512Mi + requests: + cpu: 100m + memory: 128Mi diff --git a/projects/woodpecker/values/woodpecker-server.yaml b/projects/woodpecker/values/woodpecker-server.yaml new file mode 100644 index 00000000..f4cb8d34 --- /dev/null +++ b/projects/woodpecker/values/woodpecker-server.yaml @@ -0,0 +1,76 @@ +replicaCount: 1 + +image: + registry: docker.io + repository: woodpeckerci/woodpecker-server + pullPolicy: Always + # Overrides the image tag whose default is the chart appVersion. + tag: "latest" + +env: + WOODPECKER_OPEN: "false" + WOODPECKER_ADMIN: "Nold360" + WOODPECKER_HOST: https://ci.nold.in + WOODPECKER_GITHUB: "true" + #WOODPECKER_REPO_OWNERS: "nold360" + + HTTP_PROXY: http://proxy-squid.proxy.svc.cluster.local + HTTPS_PROXY: http://proxy-squid.proxy.svc.cluster.local + http_proxy: http://proxy-squid.proxy.svc.cluster.local + https_proxy: http://proxy-squid.proxy.svc.cluster.local + NO_PROXY: localhost,.cluster.local + no_proxy: localhost,.cluster.local + + +extraSecretNamesForEnvFrom: +- github-oauth +- woodpecker-secret + +persistentVolume: + enabled: true + size: 10Gi + mountPath: "/var/lib/woodpecker" + storageClass: "local-path" + +podAnnotations: {} + +podSecurityContext: + fsGroup: 2000 + +securityContext: + capabilities: + drop: + - ALL + readOnlyRootFilesystem: true + runAsNonRoot: true + runAsUser: 1000 + +service: + type: ClusterIP + port: 80 + +ingress: + enabled: true + annotations: + kubernetes.io/tls-acme: "true" + cert-manager.io/cluster-issuer: letsencrypt + kubernetes.io/ingress.class: external + hosts: + - host: ci.nold.in + paths: + - path: / + backend: + serviceName: server + servicePort: 80 + tls: + - secretName: ci-nold-in-tls + hosts: + - ci.nold.in + +resources: + limits: + cpu: 500m + memory: 512Mi + requests: + cpu: 100m + memory: 128Mi