mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-11-03 23:40:03 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			111 lines
		
	
	
		
			3.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			111 lines
		
	
	
		
			3.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
{
 | 
						|
    "kind": "Pod",
 | 
						|
    "apiVersion": "v1",
 | 
						|
    "metadata": {
 | 
						|
        "name": "cluster-autoscaler",
 | 
						|
        "namespace": "kube-system",
 | 
						|
        "labels": {
 | 
						|
            "tier": "cluster-management",
 | 
						|
            "component": "cluster-autoscaler"
 | 
						|
        },
 | 
						|
        "annotations": {
 | 
						|
            "seccomp.security.alpha.kubernetes.io/pod": "docker/default"
 | 
						|
        }
 | 
						|
    },
 | 
						|
    "spec": {
 | 
						|
        "hostNetwork": true,
 | 
						|
        "containers": [
 | 
						|
            {
 | 
						|
                "name": "cluster-autoscaler",
 | 
						|
                "image": "k8s.gcr.io/cluster-autoscaler:v1.18.0",
 | 
						|
                "livenessProbe": {
 | 
						|
                    "httpGet": {
 | 
						|
                        "path": "/health-check",
 | 
						|
                        "port": 8085
 | 
						|
                    },
 | 
						|
                    "initialDelaySeconds": 600,
 | 
						|
                    "periodSeconds": 60
 | 
						|
                },
 | 
						|
                "command": [
 | 
						|
                    "/cluster-autoscaler",
 | 
						|
                    "--kubernetes=https://127.0.0.1:443",
 | 
						|
                    "--v=4",
 | 
						|
                    "--logtostderr=false",
 | 
						|
                    "--log-file=/var/log/cluster-autoscaler.log",
 | 
						|
                    "--log-file-max-size=0",
 | 
						|
                    "--write-status-configmap=true",
 | 
						|
                    "--balance-similar-node-groups=true",
 | 
						|
                    "--expendable-pods-priority-cutoff=-10",
 | 
						|
                    {{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"
 | 
						|
                    },
 | 
						|
                    {
 | 
						|
                        "name": "srvkube",
 | 
						|
                        "readOnly": true,
 | 
						|
                        "mountPath": "/etc/srv/kubernetes/cluster-autoscaler"
 | 
						|
                    },
 | 
						|
                    {
 | 
						|
                        "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"
 | 
						|
                }
 | 
						|
            },
 | 
						|
            {
 | 
						|
                "name": "srvkube",
 | 
						|
                "hostPath": {
 | 
						|
                    "path": "/etc/srv/kubernetes/cluster-autoscaler"
 | 
						|
                }
 | 
						|
            },
 | 
						|
            {
 | 
						|
                "name": "logfile",
 | 
						|
                "hostPath": {
 | 
						|
                    "path": "/var/log/cluster-autoscaler.log",
 | 
						|
                    "type": "FileOrCreate"
 | 
						|
                }
 | 
						|
            }
 | 
						|
        ],
 | 
						|
        "restartPolicy": "Always"
 | 
						|
    }
 | 
						|
}
 |