diff --git a/charts/apps/ingress/templates/_helpers/ingress.tailscale.tpl b/charts/apps/ingress/templates/_helpers/ingress.tailscale.tpl index 643dc75..9646352 100644 --- a/charts/apps/ingress/templates/_helpers/ingress.tailscale.tpl +++ b/charts/apps/ingress/templates/_helpers/ingress.tailscale.tpl @@ -23,5 +23,7 @@ spec: ports: - name: main port: 80 - targetPort: {{.port}} + targetPort: {{.port | default 80}} + selector: + {{ .selector | toYaml | indent 4 }} {{ end }} \ No newline at end of file diff --git a/charts/apps/ingress/values-prod.yaml b/charts/apps/ingress/values-prod.yaml index 040ed08..1b4e4d3 100644 --- a/charts/apps/ingress/values-prod.yaml +++ b/charts/apps/ingress/values-prod.yaml @@ -21,12 +21,12 @@ services: tailScaleServices: - name: dummy namespace: "dummy" - annotations: + selector: app: dummy port: 80 - name: "argocd" namespace: plugin-argo-cd - annotations: + selector: "app.kubernetes.io/instance" : "argo-cd" "app.kubernetes.io/name" : "argocd-server" port: 80 \ No newline at end of file