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
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 2m23s
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
|
||||||
selector:
|
|
||||||
app: nats
|
|
||||||
ports:
|
ports:
|
||||||
- port: 4222
|
- port: 4222
|
||||||
targetPort: 4222
|
selector:
|
||||||
name: client
|
app: nats
|
||||||
protocol: TCP
|
|
||||||
- port: 8222
|
|
||||||
targetPort: 8222
|
|
||||||
name: monitoring
|
|
||||||
protocol: TCP
|
|
||||||
|
|||||||
Reference in New Issue
Block a user