51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: nats
|
|
namespace: stone-server
|
|
labels:
|
|
app: nats
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: nats
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: nats
|
|
spec:
|
|
containers:
|
|
- name: nats
|
|
image: nats:2.10-alpine
|
|
args:
|
|
- "-js"
|
|
- "-m"
|
|
- "8222"
|
|
ports:
|
|
- name: client
|
|
containerPort: 4222
|
|
- name: monitor
|
|
containerPort: 8222
|
|
livenessProbe:
|
|
tcpSocket:
|
|
port: 4222
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 20
|
|
timeoutSeconds: 3
|
|
failureThreshold: 3
|
|
readinessProbe:
|
|
tcpSocket:
|
|
port: 4222
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
timeoutSeconds: 3
|
|
failureThreshold: 3
|
|
resources:
|
|
requests:
|
|
cpu: "50m"
|
|
memory: "64Mi"
|
|
limits:
|
|
cpu: "250m"
|
|
memory: "256Mi"
|