The great reset, we moved infra into two clusters (sekibanki et seija)
This commit is contained in:
4
apps/sekibanki/thelounge/kustomization.yaml
Normal file
4
apps/sekibanki/thelounge/kustomization.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
resources:
|
||||
- pvc.yaml
|
||||
- services.yaml
|
||||
- statefulset.yaml
|
11
apps/sekibanki/thelounge/pvc.yaml
Normal file
11
apps/sekibanki/thelounge/pvc.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: thelounge-pvc
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 3Gi
|
||||
storageClassName: nfs-csi
|
12
apps/sekibanki/thelounge/services.yaml
Normal file
12
apps/sekibanki/thelounge/services.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: thelounge
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app.kubernetes.io/name: thelounge
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 9000
|
33
apps/sekibanki/thelounge/statefulset.yaml
Normal file
33
apps/sekibanki/thelounge/statefulset.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: thelounge
|
||||
labels:
|
||||
app.kubernetes.io/name: thelounge
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: thelounge
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: thelounge
|
||||
spec:
|
||||
dnsPolicy: "None"
|
||||
dnsConfig:
|
||||
nameservers:
|
||||
- 100.96.226.96
|
||||
volumes:
|
||||
- name: thelounge-data
|
||||
persistentVolumeClaim:
|
||||
claimName: thelounge-pvc
|
||||
containers:
|
||||
- name: thelounge
|
||||
image: ghcr.io/thelounge/thelounge:4.4.3
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 9000
|
||||
volumeMounts:
|
||||
- name: thelounge-data
|
||||
mountPath: "/var/opt/thelounge"
|
Reference in New Issue
Block a user