Added flog

This commit is contained in:
Justine Pelletreau 2023-01-15 14:05:17 +01:00
parent 672360d915
commit 6c835f16de
5 changed files with 97 additions and 0 deletions

29
flog/flog-deployment.yaml Normal file
View File

@ -0,0 +1,29 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: flog
name: flog
spec:
replicas: 1
selector:
matchLabels:
app: flog
template:
metadata:
labels:
app: flog
spec:
containers:
- image: squi/flog:0.1.0
name: flog
ports:
- containerPort: 8000
volumeMounts:
- mountPath: /opt/flog
name: flog
restartPolicy: Always
volumes:
- name: flog
persistentVolumeClaim:
claimName: flog-data

25
flog/flog-ingress.yaml Normal file
View File

@ -0,0 +1,25 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: flog-ingr
annotations:
kubernetes.io/tls-acme: "true"
cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
tls:
- secretName: todo-tls
hosts:
- flog.squi.fr
ingressClassName: nginx
rules:
- host: flog.squi.fr
http:
paths:
- pathType: Prefix
backend:
service:
name: flog
port:
number: 8000
path: /

View File

@ -0,0 +1,13 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: flog-data
spec:
accessModes:
- ReadWriteOnce
storageClassName: ""
resources:
requests:
storage: 10Gi
volumeName: flog-data

15
flog/flog-service.yaml Normal file
View File

@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: flog
name: flog
spec:
ports:
- name: "8000"
port: 8000
targetPort: 8000
selector:
app: flog
status:
loadBalancer: {}

15
flog/flog-volume.yaml Normal file
View File

@ -0,0 +1,15 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: flog-data
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteOnce
nfs:
server: nas.sq.lan
path: "/swarmdata/flog"
mountOptions:
- nfsvers=4.2