diff --git a/charts/wordpress-helm/templates/deployment.yaml b/charts/wordpress-helm/templates/deployment.yaml index 361ddc1..916f440 100644 --- a/charts/wordpress-helm/templates/deployment.yaml +++ b/charts/wordpress-helm/templates/deployment.yaml @@ -4,6 +4,8 @@ metadata: name: {{ .Values.fullname }} labels: {{- include "wordpress-website.labels" . | nindent 4 }} + app.kubernetes.io/component: website + spec: {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.replicaCount }} @@ -11,6 +13,7 @@ spec: selector: matchLabels: {{- include "wordpress-website.selectorLabels" . | nindent 6 }} + app.kubernetes.io/component: website template: metadata: {{- with .Values.podAnnotations }} @@ -19,6 +22,7 @@ spec: {{- end }} labels: {{- include "wordpress-website.selectorLabels" . | nindent 8 }} + app.kubernetes.io/component: website spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: diff --git a/charts/wordpress-helm/templates/service.yaml b/charts/wordpress-helm/templates/service.yaml index 49c2cf3..dba3cbf 100644 --- a/charts/wordpress-helm/templates/service.yaml +++ b/charts/wordpress-helm/templates/service.yaml @@ -13,3 +13,4 @@ spec: name: http selector: {{- include "wordpress-website.selectorLabels" . | nindent 4 }} + app.kubernetes.io/component: website