cuddle-rust-service-plan/templates/kustomize/base/kustomization.yaml
kjuulh a4092639d1
feat: add templates
Signed-off-by: kjuulh <contact@kjuulh.io>
2024-02-03 19:13:55 +01:00

25 lines
465 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: "{{ service }}"
newTag: "{{ image_tag }}"