diff --git a/templates/statefulset.yaml b/templates/statefulset.yaml
index b0edb70eaa731d9d493abfaf9ed53bb252d059a9..7254825178a78d2283e9ff088de795cecb11ec50 100644
--- a/templates/statefulset.yaml
+++ b/templates/statefulset.yaml
@@ -6,6 +6,9 @@ metadata:
   labels:
     app: {{ include "wordpress.name" . }}
     release: {{ .Release.Name }}
+    {{- if .Values.statefulSetLabels }}
+    {{- toYaml .Values.statefulSetLabels | nindent 4 }}
+    {{- end }}
 spec:
   selector:
     matchLabels:
@@ -18,6 +21,9 @@ spec:
       labels:
         app: {{ include "wordpress.name" . }}
         release: {{ .Release.Name }}
+        {{- if .Values.podLabels }}
+        {{- toYaml .Values.podLabels | nindent 8 }}
+        {{- end }}
       annotations:
         # Reload the pod when values-local.yaml changes, so the ansible playbook
         # gets re-run.