我正在尝试运行 percona xtradb 集群。percona 服务器的输出如下:
mysqld: [Warning] World-writable config file '/etc/mysql/my.cnf' is ignored.
2019-06-10T07:24:28.000875Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2019-06-10T07:24:28.000942Z 0 [Warning] WSREP: Node is running in bootstrap/initialize mode. Disabling pxc_strict_mode checks
2019-06-10T07:24:28.187210Z 0 [Warning] InnoDB: New log files created, LSN=45790
2019-06-10T07:24:28.218407Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2019-06-10T07:24:28.273235Z 0 [Warning] No existing UUID has been found, so we assume that this is …Run Code Online (Sandbox Code Playgroud) 我已经使用 1.3.0 运算符在 kubernetes 上安装了 Percona XtraDB。
使用后,我想删除命名空间。所以我按照应用顺序删除了它们。所有内容均已删除,svc、pods 中看不到任何内容,但有两个资源处于错误状态且无法删除。
~ kubectl get perconaxtradbclusters -n pxc
NAME ENDPOINT STATUS PXC PROXYSQL AGE
cluster1 Error 0 0 4h1m
cluster2 Error 0 0 3h34m
Run Code Online (Sandbox Code Playgroud)
我无法删除它们,因此我无法创建具有相同名称的集群。
当我运行删除命令时,它永远卡住了
~ kubectl delete perconaxtradbclusters -n pxc cluster1
perconaxtradbcluster.pxc.percona.com "cluster1" deleted
Run Code Online (Sandbox Code Playgroud)
命令执行永远不会完成。
对象的 yaml
apiVersion: pxc.percona.com/v1
kind: PerconaXtraDBCluster
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"pxc.percona.com/v1-3-0","kind":"PerconaXtraDBCluster"}
creationTimestamp: "2020-04-21T18:06:13Z"
deletionGracePeriodSeconds: 0
deletionTimestamp: "2020-04-21T18:38:33Z"
finalizers:
- delete-pxc-pods-in-order
generation: 2
name: cluster2
namespace: pxc
resourceVersion: "5445879"
selfLink: /apis/pxc.percona.com/v1/namespaces/pxc/perconaxtradbclusters/cluster2
uid: 8c100840-b7a8-40d1-b976-1f80c469622b
spec:
allowUnsafeConfigurations: false
backup: …Run Code Online (Sandbox Code Playgroud)