kjuulh
c1d71df0e5
Some checks failed
continuous-integration/drone/push Build is failing
Signed-off-by: kjuulh <contact@kjuulh.io>
42 lines
1.0 KiB
Django/Jinja
42 lines
1.0 KiB
Django/Jinja
{%- set service_name = vars.cuddle_vars.service -%}
|
|
{%- set cluster_name = vars.cluster_vars.name -%}
|
|
{%- set cluster_namespace = vars.cluster_vars.namespace -%}
|
|
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: {{ service_name }}
|
|
cluster: {{ cluster_name }}
|
|
name: {{ service_name }}
|
|
namespace: {{ cluster_namespace }}
|
|
spec:
|
|
replicas: 3
|
|
selector:
|
|
matchLabels:
|
|
app: {{ service_name }}
|
|
cluster: {{ cluster_name }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: {{ service_name }}
|
|
cluster: {{ cluster_name }}
|
|
spec:
|
|
containers:
|
|
- args:
|
|
- serve
|
|
command:
|
|
- {{ service_name }}
|
|
image: kasperhermansen/{{ service_name }}:{{ vars.user_vars.image_tag }}
|
|
name: {{ service_name }}
|
|
envFrom:
|
|
- configMapRef:
|
|
name: {{service_name}}-config
|
|
ports:
|
|
- containerPort: 3000
|
|
name: external-http
|
|
- containerPort: 3001
|
|
name: internal-http
|
|
- containerPort: 3002
|
|
name: internal-grpc
|