mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2024-11-21 23:40:19 +00:00
Add files via upload
This commit is contained in:
parent
b7fe55d28b
commit
a40448aed3
2 changed files with 92 additions and 0 deletions
16
Kubernetes/GitOps/Gotify/default-headers.yaml
Normal file
16
Kubernetes/GitOps/Gotify/default-headers.yaml
Normal 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
|
76
Kubernetes/GitOps/Gotify/deployment.yaml
Normal file
76
Kubernetes/GitOps/Gotify/deployment.yaml
Normal 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
|
Loading…
Reference in a new issue