You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there,
I think there's a problem with the service selector and the labels on the pods.
Unless I hard-code a key pair in the services.yaml (spec.selector) and add the same one in statefulset.yaml (template.metadata.labels), my service doesn't work.
│ Error: StatefulSet.apps "nexus-nxrm-ha" is invalid: spec.template.metadata.labels: Invalid value: map[string]string{"app.kubernetes.io/instance":"nexus", "app.kubernetes.io/name":"nxrm-ha"}: `selector` does not match template `labels`
which is pretty logical. as in statefulset.yaml , matchLabels and labels don't match
selector:
matchLabels:
{{- include "nexus.selectorLabels" . | nindent 6 }}{{- if .Values.nexus.extraSelectorLabels }}{{- with .Values.nexus.extraSelectorLabels }}{{ toYaml . | nindent 6 }}{{- end }}{{- end }}template:
metadata:
[...]labels:
{{- include "nexus.selectorLabels" . | nindent 8 }}
If I try to add
[...]template:
metadata:
[...]labels:
{{- include "nexus.selectorLabels" . | nindent 8 }}{{- if .Values.nexus.extraSelectorLabels }}{{- with .Values.nexus.extraSelectorLabels }}{{ toYaml . | nindent 6 }}{{- end }}{{- end }}
I still get the same error.
Could you please have a look?
The text was updated successfully, but these errors were encountered:
extravio
changed the title
selector & labels issue
Helm Chart: selector & labels issue
Dec 4, 2023
Hi there,
I think there's a problem with the service selector and the labels on the pods.
Unless I hard-code a key pair in the services.yaml (spec.selector) and add the same one in statefulset.yaml (template.metadata.labels), my service doesn't work.
If I add extra labels in value.yml
I get the following error:
which is pretty logical. as in statefulset.yaml , matchLabels and labels don't match
If I try to add
I still get the same error.
Could you please have a look?
The text was updated successfully, but these errors were encountered: