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

sbdsn5lh  于 2024-01-07  发布在  Kubernetes
关注(0)|答案(1)|浏览(221)

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

Kubectl get sts -n jenkins

  1. NAME READY AGE
  2. jenkins 1/1 142d

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

kubectl describe sts jenkins -n jenkins

  1. Name: jenkins
  2. Namespace: jenkins
  3. CreationTimestamp: Fri, 30 Jun 2023 16:18:01 +0600
  4. Selector: app=jenkins
  5. Labels: app=jenkins
  6. section=tools
  7. Annotations: <none>
  8. Replicas: 1 desired | 2 total
  9. Update Strategy: RollingUpdate
  10. Partition: 0
  11. Pods Status: 0 Running / 0 Waiting / 0 Succeeded / 0 Failed
  12. Pod Template:
  13. Labels: app=jenkins
  14. section=tools
  15. Service Account: jenkins-account
  16. Containers:
  17. jenkins:
  18. Image: docker-c2.xyz.com/jenkins/jenkins:v0.1
  19. Ports: 8080/TCP, 50000/TCP
  20. Host Ports: 0/TCP, 0/TCP
  21. Limits:
  22. cpu: 2
  23. memory: 2Gi
  24. Requests:
  25. cpu: 50m
  26. memory: 256Mi
  27. Environment:
  28. JAVA_OPTS: -Xms2g -Xmx2g
  29. JENKINS_SLAVE_AGENT_PORT: 50000
  30. Mounts:
  31. /var/jenkins_home from jenkins-home (rw)
  32. Volumes: <none>
  33. Volume Claims:
  34. Name: jenkins-home
  35. StorageClass: jenkins-storage
  36. Labels: <none>
  37. Annotations: <none>
  38. Capacity: 80Gi
  39. Access Modes: [ReadWriteOnce]
  40. Events: <none>

sc4hvdpw

sc4hvdpw1#

更新

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

溶液

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

相关问题