...

Text file src/k8s.io/kubernetes/cluster/gce/manifests/cluster-autoscaler.manifest

Documentation: k8s.io/kubernetes/cluster/gce/manifests

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

View as plain text