Skip to content

Instantly share code, notes, and snippets.

@ryanzhang
Last active August 13, 2021 00:58
Show Gist options
  • Save ryanzhang/d8570ab7c7fb2d5d3054776c0afa200b to your computer and use it in GitHub Desktop.
Save ryanzhang/d8570ab7c7fb2d5d3054776c0afa200b to your computer and use it in GitHub Desktop.
machine-config 的问题
  1. 100 多天前,安装集群的时候 为了节省资源 a: 更改了cvo-overrides.yaml:
    spec:
  overrides:
  - kind: Deployment
    group: apps/v1
    name: cluster-monitoring-operator
    namespace: openshift-monitoring
    unmanaged: true
  - kind: ClusterOperator
    group: config.openshift.io/v1
    name: monitoring
    namespace: ""
    unmanaged: true
  - kind: Deployment
    group: apps/v1
    name: kube-storage-version-migrator-operator
    namespace: openshift-kube-storage-version-migrator-operator
    unmanaged: true
  - kind: ClusterOperator
    group: config.openshift.io/v1
    name: kube-storage-version-migrator
    namespace: ""
    unmanaged: true
  - kind: Deployment
    group: apps/v1
    name: insights-operator
    namespace: openshift-insights
    unmanaged: true
  - kind: ClusterOperator
    group: config.openshift.io/v1
    name: insights
    namespace: ""
    unmanaged: true
  - kind: Deployment
    group: apps/v1
    name: cloud-credential-operator
    namespace: openshift-cloud-credential-operator
    unmanaged: true
  - kind: ClusterOperator
    group: config.openshift.io/v1
    name: cloud-credential
    namespace: ""
    unmanaged: true
  - kind: Deployment
    group: apps/v1
    name: cluster-storage-operator
    namespace: openshift-cluster-storage-operator
    unmanaged: true
  - kind: ClusterOperator
    group: config.openshift.io/v1
    name: storage
    namespace: ""
    unmanaged: true
  - kind: Deployment
    group: apps/v1
    name: cluster-baremetal-operator
    namespace: openshift-machine-api
    unmanaged: true
  - kind: ClusterOperator
    group: config.openshift.io/v1
    name: baremetal
    namespace: ""
    unmanaged: true
  - kind: Deployment
    group: apps/v1
    name: cluster-autoscaler-operator
    namespace: openshift-machine-api
    unmanaged: true
  - kind: ClusterOperator
    group: config.openshift.io/v1
    name: cluster-autoscaler
    namespace: ""
    unmanaged: true
  - kind: Deployment
    group: apps/v1
    name: csi-snapshot-controller-operator
    namespace: openshift-cluster-storage-operator
    unmanaged: true
  - kind: ClusterOperator
    group: config.openshift.io/v1
    name: csi-snapshot-controller
    namespace: ""
    unmanaged: true

注意

overrides: clusteropeator 在overwrite里面;

并且我还执行了操作:

oc delete clusteroperator machine-api
oc delete deployment/machine-api-operator -n openshift-machine-api
oc delete statefulset,deployment,daemonset --all -n openshift-machine-api

 oc delete statefulset,deployment,daemonset --all -n openshift-machine-config-operator
 oc delete clusteroperator machine-config
  1. 昨天 oc get co machine-config 它显示的是 degraded状态; 然后我执行了 oc delete co machine-config

  2. 过了10分钟,它machine-config又被创建出来,但是显示的 就是

oc get co
NAME                                       VERSION   AVAILABLE   PROGRESSING   DEGRADED   SINCE
authentication                             4.7.5     True        False         False      11h
config-operator                            4.7.5     True        False         False      109d
console                                    4.7.5     True        False         False      84d
dns                                        4.7.5     True        False         False      109d
etcd                                       4.7.5     True        False         False      109d
image-registry                             4.7.5     True        False         True       18d
ingress                                    4.7.5     True        False         False      109d
kube-apiserver                             4.7.5     True        False         False      109d
kube-controller-manager                    4.7.5     True        False         False      109d
kube-scheduler                             4.7.5     True        False         False      109d
machine-approver                           4.7.5     True        False         False      109d
machine-config
marketplace                                4.7.5     True        False         False      9h

这个信息

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment