当前位置: 首页 > 知识库问答 >
问题:

Metadata.finalizers[0]:无效值:“ForegroundDeletion”:name既不是标准终结器名称,也不是完全限定的

盖嘉珍
2023-03-14

我们有一个完整的集群正在生产中运行,但它突然停止工作,出现以下错误:

The Deployment "authapi" is invalid: metadata.finalizers[0]: Invalid value: "foregroundDeletion": name is neither a standard

终结程序名称也不是完全限定的

   W1127 15:28:32.999978 42625 factory_object_mapping.go:423] Failed to download OpenAPI (the server could not find the requested
apiVersion: apps/v1beta1
kind: Deployment
metadata:
  name: authapi
spec:
  replicas: 1
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 1  
  template:
    metadata:
      labels:
        app: authapi
    spec:
      containers:
      - name: authapi
        image: edgecontainerregistry.azurecr.io/portal.authapi:latest
        imagePullPolicy: Always
        resources:
          requests:
            cpu: 100m        
        ports:
        - containerPort: 5006   
        env:
          - name: ASPNETCORE_ENVIRONMENT
            valueFrom:
              configMapKeyRef:
                name: aspnetcore-config
                key: aspnetcore.env           
      imagePullSecrets:
        - name: edgesecret        
---
kind: Service
apiVersion: v1
metadata:
  name: authapi
spec:
  ports:
    - protocol: TCP
      port: 5006
      targetPort: 5006
  selector:
    app: authapi
  type: ClusterIP
---
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
  name: authapi
spec:
  scaleTargetRef:
    apiVersion: apps/v1beta1
    kind: Deployment
    name: authapi
  minReplicas: 1
  maxReplicas: 10
  targetCPUUtilizationPercentage: 50

在这方面有什么帮助吗?

共有1个答案

范浩荡
2023-03-14

这是一个bug,已在1.6.7+中修复

https://github.com/kubernetes/kubernetes/blob/master/changelog-1.6.md/#v167

修复无效值:试图删除资源时出现“ForegroundDeletion”错误。(#46500,@Tnozicka)

 类似资料: