cluster-autoscaler.manifest 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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.15.0",
  21. "livenessProbe": {
  22. "httpGet": {
  23. "path": "/health-check",
  24. "port": 8085
  25. },
  26. "initialDelaySeconds": 600,
  27. "periodSeconds": 60
  28. },
  29. "command": [
  30. "./run.sh",
  31. "--kubernetes=https://127.0.0.1:443",
  32. "--v=4",
  33. "--logtostderr=true",
  34. "--write-status-configmap=true",
  35. "--balance-similar-node-groups=true",
  36. "--expendable-pods-priority-cutoff=-10",
  37. {{params}}
  38. ],
  39. "env": [
  40. {
  41. "name": "LOG_OUTPUT",
  42. "value": "/var/log/cluster-autoscaler.log"
  43. }
  44. ],
  45. "resources": {
  46. "requests": {
  47. "cpu": "10m",
  48. "memory": "300Mi"
  49. }
  50. },
  51. "volumeMounts": [
  52. {{cloud_config_mount}}
  53. {
  54. "name": "ssl-certs",
  55. "readOnly": true,
  56. "mountPath": "/etc/ssl/certs"
  57. },
  58. {
  59. "name": "usrsharecacerts",
  60. "readOnly": true,
  61. "mountPath": "/usr/share/ca-certificates"
  62. },
  63. {
  64. "name": "srvkube",
  65. "readOnly": true,
  66. "mountPath": "/etc/srv/kubernetes/cluster-autoscaler"
  67. },
  68. {
  69. "name": "logfile",
  70. "mountPath": "/var/log/cluster-autoscaler.log",
  71. "readOnly": false
  72. }
  73. ],
  74. "terminationMessagePath": "/dev/termination-log",
  75. "imagePullPolicy": "IfNotPresent"
  76. }
  77. ],
  78. "volumes": [
  79. {{cloud_config_volume}}
  80. {
  81. "name": "ssl-certs",
  82. "hostPath": {
  83. "path": "/etc/ssl/certs"
  84. }
  85. },
  86. {
  87. "name": "usrsharecacerts",
  88. "hostPath": {
  89. "path": "/usr/share/ca-certificates"
  90. }
  91. },
  92. {
  93. "name": "srvkube",
  94. "hostPath": {
  95. "path": "/etc/srv/kubernetes/cluster-autoscaler"
  96. }
  97. },
  98. {
  99. "name": "logfile",
  100. "hostPath": {
  101. "path": "/var/log/cluster-autoscaler.log",
  102. "type": "FileOrCreate"
  103. }
  104. }
  105. ],
  106. "restartPolicy": "Always"
  107. }
  108. }