Add files via upload

This commit is contained in:
tehNooB 2023-10-24 13:37:50 +01:00 committed by GitHub
parent b7fe55d28b
commit a40448aed3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 92 additions and 0 deletions

View file

@ -0,0 +1,16 @@
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: default-headers
namespace: gotify
spec:
headers:
browserXssFilter: true
contentTypeNosniff: true
forceSTSHeader: true
stsIncludeSubdomains: true
stsPreload: true
stsSeconds: 15552000
customFrameOptionsValue: SAMEORIGIN
customRequestHeaders:
X-Forwarded-Proto: https

View file

@ -0,0 +1,76 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: gotify
namespace: gotify
labels:
app: gotify
app.kubernetes.io/instance: gotify
app.kubernetes.io/name: gotify
spec:
selector:
matchLabels:
app: gotify
replicas: 1
template:
metadata:
labels:
app: gotify
app.kubernetes.io/instance: gotify
app.kubernetes.io/name: gotify
spec:
nodeSelector:
worker: "true"
containers:
- name: gotify
image: gotify/server:latest
env:
- name: GOTIFY_DB_SQLITE
value: /app/data/gotify.db
- name: GOTIFY_PORT
value: "80"
ports:
- containerPort: 80
volumeMounts:
- name: gotify
mountPath: /app/data
volumes:
- name: gotify
persistentVolumeClaim:
claimName: gotify
---
apiVersion: v1
kind: Service
metadata:
name: gotify
namespace: gotify
labels:
app: gotify
app.kubernetes.io/instance: gotify
app.kubernetes.io/name: gotify
spec:
type: ClusterIP
ports:
- name: http
port: 80
protocol: TCP
targetPort: 80
selector:
app: gotify
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: gotify
namespace: gotify
labels:
app: gotify
app.kubernetes.io/instance: gotify
app.kubernetes.io/name: gotify
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: longhorn