kubernetes StatefulSet在删除正在运行的pod后未创建pod

sbdsn5lh  于 4个月前  发布在  Kubernetes
关注(0)|答案(1)|浏览(72)

伙计们,我有很奇怪的问题,我删除成功运行的吊舱后,我的StatefulSet吊舱没有创建

Kubectl get sts -n jenkins

NAME      READY   AGE
jenkins   1/1     142d

字符串
但没有吊舱creting帮助请任何想法?

kubectl describe sts jenkins -n jenkins

Name:               jenkins
Namespace:          jenkins
CreationTimestamp:  Fri, 30 Jun 2023 16:18:01 +0600
Selector:           app=jenkins
Labels:             app=jenkins
                    section=tools
Annotations:        <none>
Replicas:           1 desired | 2 total
Update Strategy:    RollingUpdate
  Partition:        0
Pods Status:        0 Running / 0 Waiting / 0 Succeeded / 0 Failed
Pod Template:
  Labels:           app=jenkins
                    section=tools
  Service Account:  jenkins-account
  Containers:
   jenkins:
    Image:       docker-c2.xyz.com/jenkins/jenkins:v0.1
    Ports:       8080/TCP, 50000/TCP
    Host Ports:  0/TCP, 0/TCP
    Limits:
      cpu:     2
      memory:  2Gi
    Requests:
      cpu:     50m
      memory:  256Mi
    Environment:
      JAVA_OPTS:                 -Xms2g -Xmx2g
      JENKINS_SLAVE_AGENT_PORT:  50000
    Mounts:
      /var/jenkins_home from jenkins-home (rw)
  Volumes:  <none>
Volume Claims:
  Name:          jenkins-home
  StorageClass:  jenkins-storage
  Labels:        <none>
  Annotations:   <none>
  Capacity:      80Gi
  Access Modes:  [ReadWriteOnce]
Events:          <none>

sc4hvdpw

sc4hvdpw1#

更新

我想问题来自kube-scheduler昨天我更新了主节点上的证书。更新后,我只做了systemctl restart kubelet没有重新启动kube-scheduler

溶液

我重新启动主节点,然后问题消失。Pods重新创建
一切工作

相关问题