kjuulh
f112bcf1a9
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: kjuulh <contact@kjuulh.io>
24 lines
479 B
YAML
24 lines
479 B
YAML
{% set_global cluster_vars = filter_by_prefix(prefix=["clusters", cluster]) %}
|
|
|
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
|
|
resources:
|
|
- deployment.yaml
|
|
- service.yaml
|
|
|
|
commonLabels:
|
|
app: "{{ service }}"
|
|
cluster: "{{ cluster }}"
|
|
|
|
namespace: "{{ cluster_vars.namespace }}"
|
|
|
|
replicas:
|
|
- name: "{{ service }}"
|
|
count: {{ cluster_vars.replicas }}
|
|
|
|
images:
|
|
- name: "deployment"
|
|
newName: "{{ registry }}/{{ service }}"
|
|
newTag: "{{ image_tag }}"
|