cuddle-rust-service-plan/templates/kustomize/base/deployment.yaml
kjuulh 991825df95
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
feat: add resources
Signed-off-by: kjuulh <contact@kjuulh.io>
2024-03-09 23:02:43 +01:00

30 lines
829 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: "{{ service }}"
spec:
selector:
matchLabels:
app: "{{ service }}"
template:
spec:
containers:
- name: "{{ service }}"
command: [{{ service }}]
args: ["serve"]
image: "deployment:latest"
ports:
- containerPort: 3000
name: external-http
- containerPort: 3001
name: internal-http
- containerPort: 3002
name: internal-grpc
envFrom:
- configMapRef:
name: "{{ service | lower | replace(from='_', to='-') }}-database-crdb"
- configMapRef:
name: "{{ service | lower | replace(from='_', to='-') }}-config"
- configMapRef:
name: "{{ service | lower | replace(from='_', to='-') }}-message-queue-nats"