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 protocol: TCP
env: env:
- name: REDIS_ADDR - name: REDIS_ADDR
value: "redis-service:6379" value: "redis:6379"
- name: NATS_URL - name: NATS_URL
value: "nats://nats-service:4222" value: "nats://nats:4222"
livenessProbe: livenessProbe:
httpGet: httpGet:
path: /health path: /health

View File

@@ -5,7 +5,6 @@ metadata:
labels: labels:
app: nats app: nats
spec: spec:
replicas: 1
selector: selector:
matchLabels: matchLabels:
app: nats app: nats
@@ -16,40 +15,23 @@ spec:
spec: spec:
containers: containers:
- name: nats - name: nats
image: nats:2-alpine image: nats:alpine
ports: ports:
- containerPort: 4222 - containerPort: 4222
name: client
- containerPort: 8222
name: monitoring
resources: resources:
requests: requests:
memory: "64Mi" memory: "64Mi"
cpu: "100m" cpu: "50m"
limits: limits:
memory: "256Mi" memory: "256Mi"
cpu: "500m" cpu: "500m"
args:
- "-js"
- "-m"
- "8222"
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: nats-service name: nats
labels:
app: nats
spec: spec:
type: ClusterIP ports:
- port: 4222
selector: selector:
app: nats app: nats
ports:
- port: 4222
targetPort: 4222
name: client
protocol: TCP
- port: 8222
targetPort: 8222
name: monitoring
protocol: TCP