Private
Public Access
1
0

Update Redis and NATS configurations; simplify NATS deployment and service setup
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 2m23s

This commit is contained in:
Sebastian Unterschütz
2026-01-04 15:57:00 +01:00
parent 932edf74f2
commit fa59070c4a
2 changed files with 7 additions and 25 deletions

View File

@@ -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

View File

@@ -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