add unifi and gittea

This commit is contained in:
Chris Richardson
2025-01-24 11:21:27 -05:00
parent 745ed8cfa9
commit 331afdcd97
7 changed files with 229 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: gitea
name: gitea-deployment
namespace: default
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: gitea
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: gitea
spec:
containers:
- image: gitea/gitea:latest
imagePullPolicy: Always
name: gitea
ports:
- containerPort: 3000
name: gitea-http
protocol: TCP
- containerPort: 22
name: gitea-ssh
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /data
name: gitea-storage
- mountPath: /persistentvolumes
name: nfs-client-root
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- name: gitea-storage
persistentVolumeClaim:
claimName: gitea
- name: nfs-client-root
nfs:
path: /volume1/k8s
server: 192.168.1.176

View File

@@ -0,0 +1,25 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
acme.cert-manager.io/http01-edit-in-place: "true"
cert-manager.io/issuer: letsencrypt-prod
kubernetes.io/ingress.class: nginx
name: gittea-ingress
namespace: default
spec:
rules:
- host: git.lilpenguins.com
http:
paths:
- backend:
service:
name: gitea-service
port:
number: 80
path: /
pathType: Prefix
tls:
- hosts:
- git.lilpenguins.com
secretName: gitea-tls-prod

View File

@@ -0,0 +1,21 @@
apiVersion: v1
kind: Service
metadata:
name: gitea-service
namespace: default
spec:
ports:
- name: gitea-http
nodePort: 32671
port: 80
protocol: TCP
targetPort: gitea-http
- name: gitea-ssh
nodePort: 31364
port: 22
protocol: TCP
targetPort: gitea-ssh
selector:
app: gitea
sessionAffinity: None
type: LoadBalancer

View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: gitea
namespace: default
spec:
storageClassName: synology-iscsi-storage-custom
accessModes:
- ReadWriteMany
resources:
requests:
storage: 20Gi