Closed NanXuejiao closed 5 years ago
@NanXuejiao What does your file tidb/tidb-operator/values-tidb-operator.yaml
look like?
@weekface I get it by helm inspect values pingcap/tidb-operator --version=v1.0.0 > tidb/tidb-operator/values-tidb-operator.yaml
clusterScoped: true
rbac:
create: true
operatorImage: pingcap/tidb-operator:v1.0.0
imagePullPolicy: IfNotPresent
defaultStorageClassName: local-storage
controllerManager:
serviceAccount: tidb-controller-manager
logLevel: 2
replicas: 1
resources:
limits:
cpu: 250m
memory: 150Mi
requests:
cpu: 80m
memory: 50Mi
autoFailover: true
# pd failover period default(5m)
pdFailoverPeriod: 5m
# tikv failover period default(5m)
tikvFailoverPeriod: 5m
# tidb failover period default(5m)
tidbFailoverPeriod: 5m
scheduler:
serviceAccount: tidb-scheduler
logLevel: 2
replicas: 1
schedulerName: tidb-scheduler
# features:
# - StableScheduling=true
resources:
limits:
cpu: 250m
memory: 150Mi
requests:
cpu: 80m
memory: 50Mi
kubeSchedulerImageName: k8s.gcr.io/kube-scheduler
# kubeSchedulerImageTag:
My kube-scheduler image name is k8s.gcr.io/kube-scheduler
,version is v1.13.4
@NanXuejiao
I suppose the indent of kubeSchedulerImageName:
is not corrent, now is:
scheduler:
serviceAccount: tidb-scheduler
logLevel: 2
replicas: 1
schedulerName: tidb-scheduler
# features:
# - StableScheduling=true
resources:
limits:
cpu: 250m
memory: 150Mi
requests:
cpu: 80m
memory: 50Mi
kubeSchedulerImageName: k8s.gcr.io/kube-scheduler
# kubeSchedulerImageTag:
It should be:
scheduler:
serviceAccount: tidb-scheduler
logLevel: 2
replicas: 1
schedulerName: tidb-scheduler
# features:
# - StableScheduling=true
resources:
limits:
cpu: 250m
memory: 150Mi
requests:
cpu: 80m
memory: 50Mi
kubeSchedulerImageName: k8s.gcr.io/kube-scheduler
# kubeSchedulerImageTag:
@weekface
Thank you so much. I've tried it, and tidb-scheduler is running now.
I test to get values-tidb-operator.yaml again, and the yaml format is ok. Maybe the file is modified carelessly when I check if kubeSchedulerImageName
need to modify.
helm inspect values pingcap/tidb-operator --version=v1.0.0 > tidb/tidb-operator/values-tidb-operator.yaml
I'll close this issue.
I deploy TiDB on k8s following here . and face issue when execute
helm install ...
Then, I look resource at
tidb-admin
namespace.Kubernetes version is
v1.13.4
, and I'm sure Kubernetes work well. TiDB Operator version isv1.0.0
.