controller.yaml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. kind: Pod
  2. apiVersion: v1
  3. metadata:
  4. name: master-controllers
  5. namespace: kube-system
  6. labels:
  7. openshift.io/control-plane: "true"
  8. openshift.io/component: controllers
  9. annotations:
  10. scheduler.alpha.kubernetes.io/critical-pod: ''
  11. spec:
  12. restartPolicy: Always
  13. hostNetwork: true
  14. priorityClassName: system-node-critical
  15. containers:
  16. - name: controllers
  17. image: docker.io/openshift/origin:v3.11.0
  18. command: ["/bin/bash", "-c"]
  19. args:
  20. - |
  21. #!/bin/bash
  22. set -euo pipefail
  23. if [[ -f /etc/origin/master/master.env ]]; then
  24. set -o allexport
  25. source /etc/origin/master/master.env
  26. fi
  27. exec openshift start master controllers --config=/etc/origin/master/master-config.yaml --listen=https://0.0.0.0:8444 --loglevel=${DEBUG_LOGLEVEL:-2}
  28. securityContext:
  29. privileged: true
  30. volumeMounts:
  31. - mountPath: /etc/origin/master/
  32. name: master-config
  33. - mountPath: /etc/origin/cloudprovider/
  34. name: master-cloud-provider
  35. - mountPath: /etc/containers/registries.d/
  36. name: signature-import
  37. - mountPath: /usr/libexec/kubernetes/kubelet-plugins
  38. name: kubelet-plugins
  39. mountPropagation: "HostToContainer"
  40. - mountPath: /etc/pki
  41. name: master-pki
  42. livenessProbe:
  43. httpGet:
  44. scheme: HTTPS
  45. port: 8444
  46. path: healthz
  47. # second controllers container would be started here
  48. # scheduler container started here
  49. volumes:
  50. - name: master-config
  51. hostPath:
  52. path: /etc/origin/master/
  53. - name: master-cloud-provider
  54. hostPath:
  55. path: /etc/origin/cloudprovider
  56. - hostPath:
  57. path: /etc/containers/registries.d
  58. name: signature-import
  59. - name: kubelet-plugins
  60. hostPath:
  61. path: /usr/libexec/kubernetes/kubelet-plugins
  62. - name: master-pki
  63. hostPath:
  64. path: /etc/pki