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
i want to install it on my k8s cluster version 1.17.3 i gave error about version and selector!
first of all i change apps/v1beta2 to apps/v1 then give error about (validating data) and i use tag to ignore this error with (--validate=false) then give error like bellow:
The StatefulSet "mysql" is invalid:
spec.selector: Required value
spec.template.metadata.labels: Invalid value: map[string]string{"name":"mysql"}: selector does not match template labels
then i change yaml file and put selector there like this:
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: mysql
labels:
name: mysql
spec:
serviceName: "mysql"
replicas: 3
selector:
matchlabels:
app: mysql
then give another error!
The StatefulSet "mysql" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string(nil), MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: empty selector is invalid for statefulset
could yo help me to solve this issue?!
The text was updated successfully, but these errors were encountered:
hi
i want to install it on my k8s cluster version 1.17.3 i gave error about version and selector!
first of all i change apps/v1beta2 to apps/v1 then give error about (validating data) and i use tag to ignore this error with (--validate=false) then give error like bellow:
The StatefulSet "mysql" is invalid:
then i change yaml file and put selector there like this:
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: mysql
labels:
name: mysql
spec:
serviceName: "mysql"
replicas: 3
selector:
matchlabels:
app: mysql
then give another error!
The StatefulSet "mysql" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string(nil), MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: empty selector is invalid for statefulset
could yo help me to solve this issue?!
The text was updated successfully, but these errors were encountered: