forked from k-space/kube
128 lines
3.0 KiB
YAML
128 lines
3.0 KiB
YAML
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: woodpecker
|
||
|
spec:
|
||
|
type: ClusterIP
|
||
|
ports:
|
||
|
- port: 80
|
||
|
targetPort: http
|
||
|
protocol: TCP
|
||
|
name: http
|
||
|
selector:
|
||
|
app: woodpecker
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: woodpecker-grpc
|
||
|
spec:
|
||
|
type: ClusterIP
|
||
|
ports:
|
||
|
- port: 9000
|
||
|
targetPort: grpc
|
||
|
protocol: TCP
|
||
|
name: grpc
|
||
|
selector:
|
||
|
app: woodpecker
|
||
|
---
|
||
|
apiVersion: apps/v1
|
||
|
kind: StatefulSet
|
||
|
metadata:
|
||
|
name: woodpecker
|
||
|
spec:
|
||
|
serviceName: woodpecker
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: woodpecker
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: woodpecker
|
||
|
spec:
|
||
|
automountServiceAccountToken: false
|
||
|
securityContext:
|
||
|
{}
|
||
|
containers:
|
||
|
- name: server
|
||
|
securityContext:
|
||
|
{}
|
||
|
image: woodpeckerci/woodpecker-server:next
|
||
|
ports:
|
||
|
- name: http
|
||
|
containerPort: 8000
|
||
|
protocol: TCP
|
||
|
- name: grpc
|
||
|
containerPort: 9000
|
||
|
protocol: TCP
|
||
|
livenessProbe:
|
||
|
httpGet:
|
||
|
path: /
|
||
|
port: http
|
||
|
env:
|
||
|
- name: WOODPECKER_ADMIN
|
||
|
value: laurivosandi
|
||
|
- name: WOODPECKER_OPEN
|
||
|
value: "true"
|
||
|
- name: WOODPECKER_HOST
|
||
|
value: "https://woodpecker.k-space.ee"
|
||
|
- name: WOODPECKER_GITEA
|
||
|
value: "true"
|
||
|
- name: WOODPECKER_GITEA_URL
|
||
|
value: "https://git.k-space.ee/"
|
||
|
- name: WOODPECKER_GITEA_CLIENT
|
||
|
valueFrom:
|
||
|
secretKeyRef:
|
||
|
name: woodpecker-secret
|
||
|
key: WOODPECKER_GITEA_CLIENT
|
||
|
- name: WOODPECKER_GITEA_SECRET
|
||
|
valueFrom:
|
||
|
secretKeyRef:
|
||
|
name: woodpecker-secret
|
||
|
key: WOODPECKER_GITEA_SECRET
|
||
|
- name: "WOODPECKER_AGENT_SECRET"
|
||
|
valueFrom:
|
||
|
secretKeyRef:
|
||
|
name: woodpecker-secret
|
||
|
key: WOODPECKER_AGENT_SECRET
|
||
|
volumeMounts:
|
||
|
- name: woodpecker-data
|
||
|
mountPath: /var/lib/woodpecker
|
||
|
volumeClaimTemplates:
|
||
|
- metadata:
|
||
|
name: woodpecker-data
|
||
|
spec:
|
||
|
storageClassName: longhorn
|
||
|
accessModes:
|
||
|
- ReadWriteOnce
|
||
|
resources:
|
||
|
requests:
|
||
|
storage: 8Gi
|
||
|
---
|
||
|
apiVersion: networking.k8s.io/v1
|
||
|
kind: Ingress
|
||
|
metadata:
|
||
|
name: woodpecker
|
||
|
annotations:
|
||
|
external-dns.alpha.kubernetes.io/target: traefik.k-space.ee
|
||
|
kubernetes.io/ingress.class: traefik
|
||
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||
|
traefik.ingress.kubernetes.io/router.tls: "true"
|
||
|
spec:
|
||
|
tls:
|
||
|
- hosts:
|
||
|
- "*.k-space.ee"
|
||
|
rules:
|
||
|
- host: "woodpecker.k-space.ee"
|
||
|
http:
|
||
|
paths:
|
||
|
- pathType: Prefix
|
||
|
path: /
|
||
|
backend:
|
||
|
service:
|
||
|
name: woodpecker
|
||
|
port:
|
||
|
number: 80
|