All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 1m1s
- Web Push API for offline device notifications - Custom service worker with push event handling - Local notifications for background tab transfers - VAPID keys in K8s config - Persistent deviceId per device
72 lines
1.6 KiB
YAML
72 lines
1.6 KiB
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: anydrop-server-config
|
|
namespace: anydrop
|
|
data:
|
|
PORT: "3001"
|
|
BASE_URL: "https://anydrop.arthurbarre.fr"
|
|
VAPID_PUBLIC_KEY: "BCta0SNLmjBFfizMInnBhEQvVZlMbbaM-qw1a-p3JeQykCyy00GRGkDAKMDA5nv5UfokwJ30HRGoA6buJjWwKcE"
|
|
VAPID_PRIVATE_KEY: "gbmrcm9Tuz4JgoHophO-jUbam8rV9YgjImYcWvoE0w0"
|
|
VAPID_SUBJECT: "mailto:arthurbarre.js@gmail.com"
|
|
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: anydrop-server
|
|
namespace: anydrop
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: anydrop-server
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: anydrop-server
|
|
spec:
|
|
containers:
|
|
- name: anydrop-server
|
|
image: git.arthurbarre.fr/ordinarthur/anydrop-server:latest
|
|
ports:
|
|
- containerPort: 3001
|
|
envFrom:
|
|
- configMapRef:
|
|
name: anydrop-server-config
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 3001
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 30
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 3001
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
resources:
|
|
requests:
|
|
memory: "64Mi"
|
|
cpu: "50m"
|
|
limits:
|
|
memory: "128Mi"
|
|
cpu: "200m"
|
|
imagePullSecrets:
|
|
- name: gitea-registry
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: anydrop-server
|
|
namespace: anydrop
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
app: anydrop-server
|
|
ports:
|
|
- port: 3001
|
|
targetPort: 3001
|