feat: add infra

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-01-28 23:50:06 +01:00
parent aca5838d54
commit 81847f4c49
9 changed files with 254 additions and 2 deletions

View File

@@ -0,0 +1,24 @@
{% 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 }}"