add unifi and gittea
This commit is contained in:
56
apps/gittea/gitea-deployment.yaml
Normal file
56
apps/gittea/gitea-deployment.yaml
Normal 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
|
||||
25
apps/gittea/gitea-ingress.yaml
Normal file
25
apps/gittea/gitea-ingress.yaml
Normal 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
|
||||
21
apps/gittea/gitea-service.yaml
Normal file
21
apps/gittea/gitea-service.yaml
Normal 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
|
||||
12
apps/gittea/gitea-storage.yaml
Normal file
12
apps/gittea/gitea-storage.yaml
Normal 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
|
||||
Reference in New Issue
Block a user