Rancher2.6.7回滚不能使用

Rancher Server 设置

  • Rancher 版本:
  • 安装选项 (Docker install/Helm Chart):
    • 如果是 Helm Chart 安装,需要提供 Local 集群的类型(RKE1, RKE2, k3s, EKS, 等)和版本:
  • 在线或离线部署:

下游集群信息

  • Kubernetes 版本:
  • Cluster Type (Local/Downstream):
    • 如果 Downstream,是什么类型的集群?(自定义/导入或为托管 等):

用户信息

  • 登录用户的角色是什么? (管理员/集群所有者/集群成员/项目所有者/项目成员/自定义):
    • 如果自定义,自定义权限集:

主机操作系统:

问题描述:

重现步骤:

结果:

预期结果:

截图:
image

其他上下文信息:

日志


你可以提供下具体的 yaml 文件,或者按照字面意思调整对应的 selector 和 labels

---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: bcjhrbb-manage
  namespace: bcjhrbb-prod
  labels:
    app: bcjhrbb-manage
spec:
  replicas: 1
  selector:
    matchLabels:
      app: bcjhrbb-manage
  strategy:
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 0
    type: RollingUpdate
  template:
    metadata:
      labels:
        app: bcjhrbb-manage
    spec:
      imagePullSecrets:
        - name: alicloud-hub-hk
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
            - matchExpressions:
              - key: project
                operator: In
                values:
                - bcjhrbb
      containers:
        - name: bcjhrbb-manage
          image: xxx/xxx:latest
          imagePullPolicy: Always
          ports:
            - name: bcjhrbb-manage
              containerPort: 8801
              protocol: TCP
          resources:
            requests:
              memory: "128Mi"
            limits:
              memory: "1Gi"
          volumeMounts:
            - name: global-db-config
              mountPath: /home/gcweb/home/project/webapps/ROOT/WEB-INF/classes/init.cla
              subPath: init.cla
      volumes:
      - name: global-db-config
        configMap:
          name: global-db-config
          defaultMode: 0777
          items:
          - key: "init.cla"
            path: "init.cla"