2024-02-03 19:13:55 +01:00
|
|
|
|
|
|
|
{% 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"
|
2024-02-03 21:00:46 +01:00
|
|
|
newName: "{{ registry }}/{{ service }}"
|
2024-02-03 19:13:55 +01:00
|
|
|
newTag: "{{ image_tag }}"
|