ch4/planpalto-helm/templates/deps.yaml

76 lines
1.8 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: redis
namespace: {{ include "planpal.namespace" . }}
annotations:
argocd.argoproj.io/sync-wave: "0"
spec:
selector:
matchLabels: { app: redis }
template:
metadata: { labels: { app: redis } }
spec:
containers:
- name: redis
image: {{ .Values.redis.image }}
ports: [{ containerPort: 6379 }]
resources: {{ toJson .Values.redis.resources }}
readinessProbe:
exec: { command: ["redis-cli", "ping"] }
initialDelaySeconds: 5
periodSeconds: 5
livenessProbe:
exec: { command: ["redis-cli", "ping"] }
initialDelaySeconds: 20
periodSeconds: 10
---
apiVersion: v1
kind: Service
metadata:
name: redis
namespace: {{ include "planpal.namespace" . }}
spec:
selector: { app: redis }
ports: [{ port: 6379 }]
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nats
namespace: {{ include "planpal.namespace" . }}
annotations:
argocd.argoproj.io/sync-wave: "0"
spec:
selector:
matchLabels: { app: nats }
template:
metadata: { labels: { app: nats } }
spec:
containers:
- name: nats
image: {{ .Values.nats.image }}
args: ["-m", "8222"]
ports:
- containerPort: 4222
- containerPort: 8222
readinessProbe:
httpGet: { path: "/healthz", port: 8222 }
periodSeconds: 5
livenessProbe:
tcpSocket: { port: 4222 }
initialDelaySeconds: 15
periodSeconds: 10
resources: {{ toJson .Values.nats.resources }}
---
apiVersion: v1
kind: Service
metadata:
name: nats
namespace: {{ include "planpal.namespace" . }}
spec:
selector: { app: nats }
ports:
- port: 4222
name: client