2018-01-09 18:57:14 +00:00
|
|
|
{
|
|
|
|
"kind": "Pod",
|
|
|
|
"apiVersion": "v1",
|
|
|
|
"metadata": {
|
|
|
|
"name": "cluster-autoscaler",
|
|
|
|
"namespace": "kube-system",
|
|
|
|
"labels": {
|
|
|
|
"tier": "cluster-management",
|
|
|
|
"component": "cluster-autoscaler"
|
2018-07-18 14:47:22 +00:00
|
|
|
},
|
|
|
|
"annotations": {
|
|
|
|
"seccomp.security.alpha.kubernetes.io/pod": "docker/default"
|
2018-01-09 18:57:14 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"spec": {
|
|
|
|
"hostNetwork": true,
|
|
|
|
"containers": [
|
|
|
|
{
|
|
|
|
"name": "cluster-autoscaler",
|
2019-01-15 16:20:41 +00:00
|
|
|
"image": "k8s.gcr.io/cluster-autoscaler:v1.13.1",
|
2018-01-09 18:57:14 +00:00
|
|
|
"livenessProbe": {
|
|
|
|
"httpGet": {
|
|
|
|
"path": "/health-check",
|
|
|
|
"port": 8085
|
2018-03-06 22:33:18 +00:00
|
|
|
},
|
2018-01-09 18:57:14 +00:00
|
|
|
"initialDelaySeconds": 600,
|
|
|
|
"periodSeconds": 60
|
2018-03-06 22:33:18 +00:00
|
|
|
},
|
2018-01-09 18:57:14 +00:00
|
|
|
"command": [
|
|
|
|
"./run.sh",
|
2018-07-18 14:47:22 +00:00
|
|
|
"--kubernetes=https://127.0.0.1:443",
|
2018-01-09 18:57:14 +00:00
|
|
|
"--v=4",
|
|
|
|
"--logtostderr=true",
|
|
|
|
"--write-status-configmap=true",
|
|
|
|
"--balance-similar-node-groups=true",
|
2018-11-26 18:23:56 +00:00
|
|
|
"--expendable-pods-priority-cutoff=-10",
|
2018-01-09 18:57:14 +00:00
|
|
|
"{{params}}"
|
|
|
|
],
|
|
|
|
"env": [
|
|
|
|
{
|
|
|
|
"name": "LOG_OUTPUT",
|
|
|
|
"value": "/var/log/cluster-autoscaler.log"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"resources": {
|
|
|
|
"requests": {
|
|
|
|
"cpu": "10m",
|
|
|
|
"memory": "300Mi"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"volumeMounts": [
|
|
|
|
{{cloud_config_mount}}
|
|
|
|
{
|
|
|
|
"name": "ssl-certs",
|
|
|
|
"readOnly": true,
|
|
|
|
"mountPath": "/etc/ssl/certs"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "usrsharecacerts",
|
|
|
|
"readOnly": true,
|
|
|
|
"mountPath": "/usr/share/ca-certificates"
|
|
|
|
},
|
2018-07-18 14:47:22 +00:00
|
|
|
{
|
|
|
|
"name": "srvkube",
|
|
|
|
"readOnly": true,
|
|
|
|
"mountPath": "/etc/srv/kubernetes/cluster-autoscaler"
|
|
|
|
},
|
2018-01-09 18:57:14 +00:00
|
|
|
{
|
|
|
|
"name": "logfile",
|
|
|
|
"mountPath": "/var/log/cluster-autoscaler.log",
|
|
|
|
"readOnly": false
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"terminationMessagePath": "/dev/termination-log",
|
|
|
|
"imagePullPolicy": "IfNotPresent"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"volumes": [
|
|
|
|
{{cloud_config_volume}}
|
|
|
|
{
|
|
|
|
"name": "ssl-certs",
|
|
|
|
"hostPath": {
|
|
|
|
"path": "/etc/ssl/certs"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "usrsharecacerts",
|
|
|
|
"hostPath": {
|
|
|
|
"path": "/usr/share/ca-certificates"
|
|
|
|
}
|
|
|
|
},
|
2018-07-18 14:47:22 +00:00
|
|
|
{
|
|
|
|
"name": "srvkube",
|
|
|
|
"hostPath": {
|
|
|
|
"path": "/etc/srv/kubernetes/cluster-autoscaler"
|
|
|
|
}
|
|
|
|
},
|
2018-01-09 18:57:14 +00:00
|
|
|
{
|
|
|
|
"name": "logfile",
|
|
|
|
"hostPath": {
|
|
|
|
"path": "/var/log/cluster-autoscaler.log",
|
|
|
|
"type": "FileOrCreate"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"restartPolicy": "Always"
|
|
|
|
}
|
|
|
|
}
|