{ "apiVersion": "v1", "kind": "Pod", "metadata": { "name":"kube-scheduler", "namespace": "kube-system", "annotations": { "scheduler.alpha.kubernetes.io/critical-pod": "", "seccomp.security.alpha.kubernetes.io/pod": "docker/default" }, "labels": { "tier": "control-plane", "component": "kube-scheduler" } }, "spec":{ "hostNetwork": true, "containers":[ { "name": "kube-scheduler", "image": "{{pillar['kube_docker_registry']}}/kube-scheduler:{{pillar['kube-scheduler_docker_tag']}}", "resources": { "requests": { "cpu": "75m" } }, "command": [ "/bin/sh", "-c", "exec /usr/local/bin/kube-scheduler {{params}} 1>>/var/log/kube-scheduler.log 2>&1" ], "livenessProbe": { "httpGet": { "host": "127.0.0.1", "port": 10251, "path": "/healthz" }, "initialDelaySeconds": 15, "timeoutSeconds": 15 }, "volumeMounts": [ { "name": "logfile", "mountPath": "/var/log/kube-scheduler.log", "readOnly": false }, { "name": "srvkube", "mountPath": "{{srv_kube_path}}", "readOnly": true } ] } ], "volumes":[ { "name": "srvkube", "hostPath": {"path": "{{srv_kube_path}}"} }, { "name": "logfile", "hostPath": {"path": "/var/log/kube-scheduler.log", "type": "FileOrCreate"} } ] }}