70 lines
1.7 KiB
YAML
70 lines
1.7 KiB
YAML
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: alertmanager-ntfy
|
|
labels:
|
|
app.kubernetes.io/name: alertmanager-ntfy
|
|
app.kubernetes.io/component: alertmanager-ntfy
|
|
spec:
|
|
ports:
|
|
- port: 8000
|
|
name: alertmanager-ntfy
|
|
selector:
|
|
app.kubernetes.io/name: alertmanager-ntfy
|
|
app.kubernetes.io/component: alertmanager-ntfy
|
|
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: alertmanager-ntfy
|
|
labels:
|
|
app.kubernetes.io/name: alertmanager-ntfy
|
|
app.kubernetes.io/component: alertmanager-ntfy
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: alertmanager-ntfy
|
|
app.kubernetes.io/component: alertmanager-ntfy
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: alertmanager-ntfy
|
|
app.kubernetes.io/component: alertmanager-ntfy
|
|
spec:
|
|
containers:
|
|
- name: alertmanager-ntfy
|
|
image: git.pyrocufflink.net/containerimages/alertmanager-ntfy
|
|
args:
|
|
- --configs=/config/config.yml
|
|
ports:
|
|
- containerPort: 8000
|
|
name: http
|
|
readinessProbe: &probe
|
|
tcpSocket:
|
|
port: http
|
|
periodSeconds: 60
|
|
startupProbe:
|
|
<<: *probe
|
|
periodSeconds: 1
|
|
successThreshold: 1
|
|
failureThreshold: 30
|
|
timeoutSeconds: 1
|
|
securityContext:
|
|
runAsNonRoot: true
|
|
readOnlyRootFilesystem: true
|
|
volumeMounts:
|
|
- mountPath: /config
|
|
name: config
|
|
readOnly: true
|
|
securityContext:
|
|
fsGroup: 21447
|
|
runAsGroup: 21447
|
|
runAsNonRoot: true
|
|
runAsUser: 21447
|
|
volumes:
|
|
- name: config
|
|
configMap:
|
|
name: alertmanager-ntfy
|