From fa59070c4a21ee11265c55e15160a6edf7b9d1c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Untersch=C3=BCtz?= Date: Sun, 4 Jan 2026 15:57:00 +0100 Subject: [PATCH] Update Redis and NATS configurations; simplify NATS deployment and service setup --- k8s/app.yaml | 4 ++-- k8s/nats.yaml | 28 +++++----------------------- 2 files changed, 7 insertions(+), 25 deletions(-) diff --git a/k8s/app.yaml b/k8s/app.yaml index a3fef9a..ea2d8f2 100644 --- a/k8s/app.yaml +++ b/k8s/app.yaml @@ -24,9 +24,9 @@ spec: protocol: TCP env: - name: REDIS_ADDR - value: "redis-service:6379" + value: "redis:6379" - name: NATS_URL - value: "nats://nats-service:4222" + value: "nats://nats:4222" livenessProbe: httpGet: path: /health diff --git a/k8s/nats.yaml b/k8s/nats.yaml index 62335dd..58598ae 100644 --- a/k8s/nats.yaml +++ b/k8s/nats.yaml @@ -5,7 +5,6 @@ metadata: labels: app: nats spec: - replicas: 1 selector: matchLabels: app: nats @@ -16,40 +15,23 @@ spec: spec: containers: - name: nats - image: nats:2-alpine + image: nats:alpine ports: - containerPort: 4222 - name: client - - containerPort: 8222 - name: monitoring resources: requests: memory: "64Mi" - cpu: "100m" + cpu: "50m" limits: memory: "256Mi" cpu: "500m" - args: - - "-js" - - "-m" - - "8222" --- apiVersion: v1 kind: Service metadata: - name: nats-service - labels: - app: nats + name: nats spec: - type: ClusterIP + ports: + - port: 4222 selector: app: nats - ports: - - port: 4222 - targetPort: 4222 - name: client - protocol: TCP - - port: 8222 - targetPort: 8222 - name: monitoring - protocol: TCP