cluster-autoscaler.manifest 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. {
  2. "kind": "Pod",
  3. "apiVersion": "v1",
  4. "metadata": {
  5. "name": "cluster-autoscaler",
  6. "namespace": "kube-system",
  7. "labels": {
  8. "tier": "cluster-management",
  9. "component": "cluster-autoscaler"
  10. },
  11. "annotations": {
  12. "seccomp.security.alpha.kubernetes.io/pod": "docker/default"
  13. }
  14. },
  15. "spec": {
  16. "hostNetwork": true,
  17. "containers": [
  18. {
  19. "name": "cluster-autoscaler",
  20. "image": "k8s.gcr.io/cluster-autoscaler:v1.17.0",
  21. "livenessProbe": {
  22. "httpGet": {
  23. "path": "/health-check",
  24. "port": 8085
  25. },
  26. "initialDelaySeconds": 600,
  27. "periodSeconds": 60
  28. },
  29. "command": [
  30. "/cluster-autoscaler",
  31. "--kubernetes=https://127.0.0.1:443",
  32. "--v=4",
  33. "--logtostderr=false",
  34. "--log-file=/var/log/cluster-autoscaler.log",
  35. "--log-file-max-size=0",
  36. "--write-status-configmap=true",
  37. "--balance-similar-node-groups=true",
  38. "--expendable-pods-priority-cutoff=-10",
  39. {{params}}
  40. ],
  41. "env": [
  42. {
  43. "name": "LOG_OUTPUT",
  44. "value": "/var/log/cluster-autoscaler.log"
  45. }
  46. ],
  47. "resources": {
  48. "requests": {
  49. "cpu": "10m",
  50. "memory": "300Mi"
  51. }
  52. },
  53. "volumeMounts": [
  54. {{cloud_config_mount}}
  55. {
  56. "name": "ssl-certs",
  57. "readOnly": true,
  58. "mountPath": "/etc/ssl/certs"
  59. },
  60. {
  61. "name": "usrsharecacerts",
  62. "readOnly": true,
  63. "mountPath": "/usr/share/ca-certificates"
  64. },
  65. {
  66. "name": "srvkube",
  67. "readOnly": true,
  68. "mountPath": "/etc/srv/kubernetes/cluster-autoscaler"
  69. },
  70. {
  71. "name": "logfile",
  72. "mountPath": "/var/log/cluster-autoscaler.log",
  73. "readOnly": false
  74. }
  75. ],
  76. "terminationMessagePath": "/dev/termination-log",
  77. "imagePullPolicy": "IfNotPresent"
  78. }
  79. ],
  80. "volumes": [
  81. {{cloud_config_volume}}
  82. {
  83. "name": "ssl-certs",
  84. "hostPath": {
  85. "path": "/etc/ssl/certs"
  86. }
  87. },
  88. {
  89. "name": "usrsharecacerts",
  90. "hostPath": {
  91. "path": "/usr/share/ca-certificates"
  92. }
  93. },
  94. {
  95. "name": "srvkube",
  96. "hostPath": {
  97. "path": "/etc/srv/kubernetes/cluster-autoscaler"
  98. }
  99. },
  100. {
  101. "name": "logfile",
  102. "hostPath": {
  103. "path": "/var/log/cluster-autoscaler.log",
  104. "type": "FileOrCreate"
  105. }
  106. }
  107. ],
  108. "restartPolicy": "Always"
  109. }
  110. }