Files
sor/deploy/k8s/deployment-nats.yaml
T

62 lines
1.4 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
argocd.argoproj.io/sync-wave: "0"
name: nats
namespace: stone-server
labels:
app: nats
spec:
replicas: 1
selector:
matchLabels:
app: nats
template:
metadata:
annotations:
sor/redeploy-at: "initial"
labels:
app: nats
spec:
volumes:
- name: nats-config
configMap:
name: nats-config
containers:
- name: nats
image: nats:2.10-alpine
args:
- "-c"
- "/etc/nats/nats.conf"
volumeMounts:
- name: nats-config
mountPath: /etc/nats
readOnly: true
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"