mirror of
https://github.com/nold360/hive-apps
synced 2024-12-22 21:51:20 +00:00
parent
46715be6aa
commit
7d15e00720
3 changed files with 138 additions and 0 deletions
27
projects/woodpecker/project.yml
Normal file
27
projects/woodpecker/project.yml
Normal file
|
@ -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
|
35
projects/woodpecker/values/woodpecker-agent.yaml
Normal file
35
projects/woodpecker/values/woodpecker-agent.yaml
Normal file
|
@ -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
|
76
projects/woodpecker/values/woodpecker-server.yaml
Normal file
76
projects/woodpecker/values/woodpecker-server.yaml
Normal file
|
@ -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
|
Loading…
Reference in a new issue