All checks were successful
continuous-integration/drone/push Build is passing
feat: add postgres database Signed-off-by: kjuulh <contact@kjuulh.io> feat: add postgres and more templates Signed-off-by: kjuulh <contact@kjuulh.io> Reviewed-on: https://git.front.kjuulh.io/kjuulh/cuddle-clusters/pulls/20 Co-authored-by: kjuulh <contact@kjuulh.io> Co-committed-by: kjuulh <contact@kjuulh.io>
55 lines
1.3 KiB
YAML
55 lines
1.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: service
|
|
name: service
|
|
spec:
|
|
replicas: 3
|
|
selector:
|
|
matchLabels:
|
|
app: service
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: service
|
|
spec:
|
|
containers:
|
|
- args:
|
|
- serve
|
|
command:
|
|
- service
|
|
image: kasperhermansen/service:main-1715336504
|
|
name: service
|
|
envFrom:
|
|
- configMapRef:
|
|
name: service-config
|
|
env:
|
|
- name: DATABASE_HOST
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: service-cuddle-postgres
|
|
key: DATABASE_HOST
|
|
- name: DATABASE_PORT
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: service-cuddle-postgres
|
|
key: DATABASE_PORT
|
|
- name: DATABASE_USER
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: service-cuddle-postgres
|
|
key: DATABASE_USER
|
|
- name: DATABASE_DB
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: service-cuddle-postgres
|
|
key: DATABASE_DB
|
|
ports:
|
|
- containerPort: 3000
|
|
name: external-http
|
|
- containerPort: 3001
|
|
name: internal-http
|
|
- containerPort: 3002
|
|
name: internal-grpc
|