diff --git a/Kubernetes/GitOps/Gotify/default-headers.yaml b/Kubernetes/GitOps/Gotify/default-headers.yaml new file mode 100644 index 0000000..ef8e3f6 --- /dev/null +++ b/Kubernetes/GitOps/Gotify/default-headers.yaml @@ -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 \ No newline at end of file diff --git a/Kubernetes/GitOps/Gotify/deployment.yaml b/Kubernetes/GitOps/Gotify/deployment.yaml new file mode 100644 index 0000000..a58b226 --- /dev/null +++ b/Kubernetes/GitOps/Gotify/deployment.yaml @@ -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