kube-controller-manager.yaml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4. creationTimestamp: null
  5. labels:
  6. component: kube-controller-manager
  7. tier: control-plane
  8. name: kube-controller-manager
  9. namespace: kube-system
  10. spec:
  11. containers:
  12. - command:
  13. - kube-controller-manager
  14. - --allocate-node-cidrs=true
  15. - --authentication-kubeconfig=/etc/kubernetes/controller-manager.conf
  16. - --authorization-kubeconfig=/etc/kubernetes/controller-manager.conf
  17. - --bind-address=127.0.0.1
  18. - --client-ca-file=/etc/kubernetes/pki/ca.crt
  19. - --cluster-cidr=10.34.0.0/16
  20. - --cluster-name=kubernetes
  21. - --cluster-signing-cert-file=/etc/kubernetes/pki/ca.crt
  22. - --cluster-signing-key-file=/etc/kubernetes/pki/ca.key
  23. - --controllers=*,bootstrapsigner,tokencleaner
  24. - --kubeconfig=/etc/kubernetes/controller-manager.conf
  25. - --leader-elect=true
  26. - --requestheader-client-ca-file=/etc/kubernetes/pki/front-proxy-ca.crt
  27. - --root-ca-file=/etc/kubernetes/pki/ca.crt
  28. - --service-account-private-key-file=/etc/kubernetes/pki/sa.key
  29. - --service-cluster-ip-range=10.96.0.0/12
  30. - --use-service-account-credentials=true
  31. image: registry.k8s.io/kube-controller-manager:v1.25.15
  32. imagePullPolicy: IfNotPresent
  33. livenessProbe:
  34. failureThreshold: 8
  35. httpGet:
  36. host: 127.0.0.1
  37. path: /healthz
  38. port: 10257
  39. scheme: HTTPS
  40. initialDelaySeconds: 10
  41. periodSeconds: 10
  42. timeoutSeconds: 15
  43. name: kube-controller-manager
  44. resources:
  45. requests:
  46. cpu: 200m
  47. startupProbe:
  48. failureThreshold: 24
  49. httpGet:
  50. host: 127.0.0.1
  51. path: /healthz
  52. port: 10257
  53. scheme: HTTPS
  54. initialDelaySeconds: 10
  55. periodSeconds: 10
  56. timeoutSeconds: 15
  57. volumeMounts:
  58. - mountPath: /etc/ssl/certs
  59. name: ca-certs
  60. readOnly: true
  61. - mountPath: /etc/ca-certificates
  62. name: etc-ca-certificates
  63. readOnly: true
  64. - mountPath: /etc/pki
  65. name: etc-pki
  66. readOnly: true
  67. - mountPath: /usr/libexec/kubernetes/kubelet-plugins/volume/exec
  68. name: flexvolume-dir
  69. - mountPath: /etc/kubernetes/pki
  70. name: k8s-certs
  71. readOnly: true
  72. - mountPath: /etc/kubernetes/controller-manager.conf
  73. name: kubeconfig
  74. readOnly: true
  75. - mountPath: /usr/local/share/ca-certificates
  76. name: usr-local-share-ca-certificates
  77. readOnly: true
  78. - mountPath: /usr/share/ca-certificates
  79. name: usr-share-ca-certificates
  80. readOnly: true
  81. hostNetwork: true
  82. priorityClassName: system-node-critical
  83. securityContext:
  84. seccompProfile:
  85. type: RuntimeDefault
  86. volumes:
  87. - hostPath:
  88. path: /etc/ssl/certs
  89. type: DirectoryOrCreate
  90. name: ca-certs
  91. - hostPath:
  92. path: /etc/ca-certificates
  93. type: DirectoryOrCreate
  94. name: etc-ca-certificates
  95. - hostPath:
  96. path: /etc/pki
  97. type: DirectoryOrCreate
  98. name: etc-pki
  99. - hostPath:
  100. path: /usr/libexec/kubernetes/kubelet-plugins/volume/exec
  101. type: DirectoryOrCreate
  102. name: flexvolume-dir
  103. - hostPath:
  104. path: /etc/kubernetes/pki
  105. type: DirectoryOrCreate
  106. name: k8s-certs
  107. - hostPath:
  108. path: /etc/kubernetes/controller-manager.conf
  109. type: FileOrCreate
  110. name: kubeconfig
  111. - hostPath:
  112. path: /usr/local/share/ca-certificates
  113. type: DirectoryOrCreate
  114. name: usr-local-share-ca-certificates
  115. - hostPath:
  116. path: /usr/share/ca-certificates
  117. type: DirectoryOrCreate
  118. name: usr-share-ca-certificates
  119. status: {}