==> v1/StorageClass NAME PROVISIONER AGE ceph-tidb (default) kubernetes.io/rbd 5m
==> v1/Service NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE pingcap-tidb-pd ClusterIP None <none> 2379/TCP,2380/TCP 5m pingcap-tidb-db NodePort 10.254.164.24 <none> 4000:31975/TCP,10080:30608/TCP 5m pingcap-tidb-vision NodePort 10.254.30.87 <none> 8010:30895/TCP 5m
==> v1beta1/Deployment NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE pingcap-tidb-db 1 1 1 1 5m pingcap-tidb-vision 1 1 1 1 5m
==> v1beta1/StatefulSet NAME DESIRED CURRENT AGE pingcap-tidb-pd 3 3 5m pingcap-tidb-kv 3 3 5m
注意Chart.yaml文件中 name 和 version 的值及--namerelease name,否则会报错:
Error: release PingCAP failed: Service “PingCAP-TiDB-pd” is invalid: metadata.name: Invalid value: “PingCAP-TiDB-pd”: a DNS-1035 label must consist of lower case alphanumeric characters or ‘-’, start with an alphabetic character, and end with an alphanumeric character (e.g. ‘my-name’, or ‘abc-123’, regex used for validation is ‘a-z?’)
$ mysql -h 10.0.77.17 -P 31975 -u root -D test Welcome to the MySQL monitor. Commands endwith ; or \g. Your MySQL connection id is 2 Server version: 5.7.10-TiDB-v2.0.0-rc.3 MySQL Community Server (Apache License 2.0)
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Type 'help;' or '\h' for help. Type'\c'toclear the currentinput statement.
mysql> showdatabases; +--------------------+ | Database | +--------------------+ | INFORMATION_SCHEMA | | PERFORMANCE_SCHEMA | | mysql | | test | +--------------------+ 4 rows in set (0.01 sec)
1 2 3 4 5 6
$ helm list NAME REVISION UPDATED STATUS CHART NAMESPACE pingcap 1 Sat Apr 7 15:57:13 2018 DEPLOYED tidb-v2.0.0 default
$ helm delete pingcap release "pingcap" deleted
1 2 3 4 5 6 7 8 9 10 11
$ helm install --name pingcap tidb Error: a release named pingcap already exists. Run: helm ls --all pingcap; to check the status of the release Or run: helm del --purge pingcap; to delete it
$ helm ls --all NAME REVISION UPDATED STATUS CHART NAMESPACE pingcap 1 Tue Apr 7 17:20:31 2018 DELETED tidb-v2.0.0 default
$ helm del --purge pingcap release "pingcap" deleted
2018/04/04 03:10:07.591 tikv-server.rs:135: [ERROR] Limit(“the maximum number of open file descriptors is too small, got 65536, expect greater or equal to 82920”)