All checks were successful
deploy / deploy (push) Successful in 46s
Proof: npm test; PYTHONPATH=. python3 test/render_release_manifest_test.py; PYTHONPATH=. python3 test/repo_deployments_test.py; PYTHONPATH=. python3 test/ntfy_manifest_test.py; kubectl kustomize deploy/k8s/base. Assumptions: ntfy should start as an internal ClusterIP utility so repo-owned services can publish without exposing an unauthenticated public notification endpoint; mobile delivery needs a separate authenticated ingress or external endpoint decision. Still fake: No public ntfy ingress or operator mobile subscription exists yet; no existing runtime path emits ntfy notifications by default; ntfy cache storage is ephemeral emptyDir.
86 lines
1.8 KiB
YAML
86 lines
1.8 KiB
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: ntfy-config
|
|
namespace: utility
|
|
data:
|
|
server.yml: |
|
|
base-url: http://ntfy.utility.svc.cluster.local
|
|
cache-file: /var/cache/ntfy/cache.db
|
|
attachment-cache-dir: /var/cache/ntfy/attachments
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: ntfy
|
|
namespace: utility
|
|
labels:
|
|
app: ntfy
|
|
app.kubernetes.io/part-of: unrip
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
app: ntfy
|
|
ports:
|
|
- name: http
|
|
port: 80
|
|
targetPort: http
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: ntfy
|
|
namespace: utility
|
|
labels:
|
|
app: ntfy
|
|
app.kubernetes.io/part-of: unrip
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: ntfy
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: ntfy
|
|
app.kubernetes.io/part-of: unrip
|
|
spec:
|
|
containers:
|
|
- name: ntfy
|
|
image: binwiederhier/ntfy:v2.21.0
|
|
imagePullPolicy: IfNotPresent
|
|
args: ["serve"]
|
|
ports:
|
|
- name: http
|
|
containerPort: 80
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /v1/health
|
|
port: http
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /v1/health
|
|
port: http
|
|
initialDelaySeconds: 20
|
|
periodSeconds: 30
|
|
resources:
|
|
requests:
|
|
cpu: 25m
|
|
memory: 64Mi
|
|
limits:
|
|
cpu: 250m
|
|
memory: 128Mi
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /etc/ntfy
|
|
readOnly: true
|
|
- name: cache
|
|
mountPath: /var/cache/ntfy
|
|
volumes:
|
|
- name: config
|
|
configMap:
|
|
name: ntfy-config
|
|
- name: cache
|
|
emptyDir: {}
|