68 lines
2.2 KiB
YAML
68 lines
2.2 KiB
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: atlas-alert-inbox
|
|
spec:
|
|
selector: {app.kubernetes.io/name: atlas-alert-inbox}
|
|
ports:
|
|
- {name: http, port: 8080}
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
name: atlas-alert-inbox
|
|
spec:
|
|
serviceName: atlas-alert-inbox
|
|
replicas: 1
|
|
selector:
|
|
matchLabels: {app.kubernetes.io/name: atlas-alert-inbox}
|
|
template:
|
|
metadata:
|
|
labels: {app.kubernetes.io/name: atlas-alert-inbox}
|
|
spec:
|
|
automountServiceAccountToken: false
|
|
securityContext:
|
|
fsGroup: 10001
|
|
fsGroupChangePolicy: OnRootMismatch
|
|
runAsNonRoot: true
|
|
runAsUser: 10001
|
|
runAsGroup: 10001
|
|
seccompProfile: {type: RuntimeDefault}
|
|
containers:
|
|
- name: ntfy
|
|
image: binwiederhier/ntfy:v2.38.3@sha256:874299b207a9815e7a0cf551b3a094241db7604fa2d274bbd86f569154b6ea51
|
|
args: [serve]
|
|
env:
|
|
- {name: NTFY_LISTEN_HTTP, value: ':8080'}
|
|
- {name: NTFY_BASE_URL, value: 'http://127.0.0.1:18485'}
|
|
- {name: NTFY_AUTH_FILE, value: /data/users.db}
|
|
- {name: NTFY_AUTH_DEFAULT_ACCESS, value: deny-all}
|
|
- {name: NTFY_AUTH_ACCESS, value: 'atlas-alert-publisher:atlas-staging-alerts:wo,atlas-alert-viewer:atlas-staging-alerts:ro'}
|
|
- {name: NTFY_ENABLE_LOGIN, value: 'true'}
|
|
- {name: NTFY_CACHE_FILE, value: /data/messages.db}
|
|
- {name: NTFY_CACHE_DURATION, value: 48h}
|
|
envFrom:
|
|
- secretRef: {name: atlas-alert-inbox-auth}
|
|
ports:
|
|
- {name: http, containerPort: 8080}
|
|
readinessProbe:
|
|
httpGet: {path: /v1/health, port: http}
|
|
timeoutSeconds: 3
|
|
livenessProbe:
|
|
httpGet: {path: /v1/health, port: http}
|
|
timeoutSeconds: 3
|
|
resources:
|
|
requests: {cpu: 15m, memory: 32Mi}
|
|
limits: {memory: 128Mi}
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
capabilities: {drop: [ALL]}
|
|
volumeMounts:
|
|
- {name: data, mountPath: /data}
|
|
volumeClaimTemplates:
|
|
- metadata: {name: data}
|
|
spec:
|
|
accessModes: [ReadWriteOnce]
|
|
resources:
|
|
requests: {storage: 256Mi}
|