diff --git a/stable/app/templates/cron.yaml b/stable/app/templates/cron.yaml index 528f76d3..4a14c872 100644 --- a/stable/app/templates/cron.yaml +++ b/stable/app/templates/cron.yaml @@ -18,6 +18,7 @@ spec: template: metadata: labels: + app.kubernetes.io/type: cronjob {{- $appSelectorLabels | nindent 12 }} spec: containers: diff --git a/stable/app/templates/deployment.yaml b/stable/app/templates/deployment.yaml index 24bff9ce..c1c669c4 100644 --- a/stable/app/templates/deployment.yaml +++ b/stable/app/templates/deployment.yaml @@ -9,6 +9,7 @@ spec: replicas: {{ .Values.replicaCount }} selector: matchLabels: + app.kubernetes.io/type: deployment {{- include "app.selectorLabels" . | nindent 6 }} template: metadata: @@ -21,6 +22,7 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} labels: + app.kubernetes.io/type: deployment {{- include "app.selectorLabels" . | nindent 8 }} spec: {{- with .Values.imagePullSecrets }} diff --git a/stable/app/templates/migration-job.yaml b/stable/app/templates/migration-job.yaml index 2777e9cd..13b98a4a 100644 --- a/stable/app/templates/migration-job.yaml +++ b/stable/app/templates/migration-job.yaml @@ -18,7 +18,8 @@ spec: template: metadata: labels: - {{- include "app.selectorLabels" . | nindent 8 }} + app.kubernetes.io/type: job + {{- include "app.selectorLabels" . | nindent 8 }} spec: restartPolicy: Never containers: diff --git a/stable/app/templates/pdb.yaml b/stable/app/templates/pdb.yaml index 0f168ad3..8e54d020 100644 --- a/stable/app/templates/pdb.yaml +++ b/stable/app/templates/pdb.yaml @@ -14,5 +14,6 @@ spec: {{- end }} selector: matchLabels: + app.kubernetes.io/type: deployment {{- include "app.selectorLabels" . | nindent 6 }} {{- end }} \ No newline at end of file diff --git a/stable/app/templates/service.yaml b/stable/app/templates/service.yaml index 23853ee7..fc8e736f 100644 --- a/stable/app/templates/service.yaml +++ b/stable/app/templates/service.yaml @@ -19,4 +19,5 @@ spec: name: {{ $port.name }} {{- end }} selector: + app.kubernetes.io/type: deployment {{- include "app.selectorLabels" . | nindent 4 }}