feat: default locale Russian, geo determines language for other countries
- localization-svc: defaultLocale ru, resolveLocale only by geo - web-svc: DEFAULT_LOCALE ru, layout lang=ru, embeddedTranslations fallback ru - countryToLocale: default ru when no country or unknown country Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
77
deploy/k3s/notifications-svc.yaml
Normal file
77
deploy/k3s/notifications-svc.yaml
Normal file
@@ -0,0 +1,77 @@
|
||||
# notifications-svc — Web Push, SMTP email, preferences, reminders
|
||||
# docs/architecture: 02-k3s-microservices-spec.md
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: notifications-svc
|
||||
namespace: gooseek
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: notifications-svc
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: notifications-svc
|
||||
spec:
|
||||
containers:
|
||||
- name: notifications-svc
|
||||
image: gooseek/notifications-svc:latest
|
||||
ports:
|
||||
- containerPort: 3013
|
||||
env:
|
||||
- name: POSTGRES_URL
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: db-credentials
|
||||
key: url
|
||||
- name: AUTH_SERVICE_URL
|
||||
value: "http://auth-svc.gooseek-auth:3014"
|
||||
- name: VAPID_PUBLIC_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: notifications-credentials
|
||||
key: vapid_public
|
||||
- name: VAPID_PRIVATE_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: notifications-credentials
|
||||
key: vapid_private
|
||||
- name: SMTP_URL
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: notifications-credentials
|
||||
key: smtp_url
|
||||
optional: true
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 3013
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /ready
|
||||
port: 3013
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 128Mi
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 512Mi
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: notifications-svc
|
||||
namespace: gooseek
|
||||
spec:
|
||||
selector:
|
||||
app: notifications-svc
|
||||
ports:
|
||||
- port: 3013
|
||||
targetPort: 3013
|
||||
Reference in New Issue
Block a user