85 lines
2.1 KiB
YAML
85 lines
2.1 KiB
YAML
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: gitea-deployer-data
|
|
namespace: gitea-deployer
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 256Mi
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: gitea-k3s-deployer
|
|
namespace: gitea-deployer
|
|
labels:
|
|
app: gitea-k3s-deployer
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app: gitea-k3s-deployer
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: gitea-k3s-deployer
|
|
spec:
|
|
serviceAccountName: gitea-k3s-deployer
|
|
imagePullSecrets:
|
|
- name: gitea-registry-secret
|
|
containers:
|
|
- name: deployer
|
|
image: git.site.latha.org/experiments/gitea-k3s-deployer:latest
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 8080
|
|
name: http
|
|
envFrom:
|
|
- secretRef:
|
|
name: gitea-deployer-secrets
|
|
optional: true
|
|
env:
|
|
- name: PORT
|
|
value: "8080"
|
|
- name: GITEA_URL
|
|
value: "https://git.site.latha.org"
|
|
- name: KUBE_MODE
|
|
value: "in-cluster"
|
|
- name: ALLOWED_OWNERS
|
|
value: "experiments,nandi"
|
|
- name: DATA_FILE
|
|
value: "/data/state.json"
|
|
- name: DEFAULT_IMAGE_PULL_SECRET
|
|
value: "gitea-registry-secret"
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /readyz
|
|
port: http
|
|
initialDelaySeconds: 2
|
|
periodSeconds: 5
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: http
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
resources:
|
|
requests:
|
|
cpu: 50m
|
|
memory: 64Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 256Mi
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /data
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: gitea-deployer-data
|