c12s-kubespray/roles/kubernetes/master/templates/manifests/kubeadm-kube-scheduler.json.j2

46 lines
1 KiB
Text
Raw Normal View History

{
"kind": "Pod",
"apiVersion": "v1",
"metadata": {
"name": "kube-scheduler",
"namespace": "kube-system",
"creationTimestamp": null,
"labels": {
"component": "kube-scheduler",
"tier": "control-plane"
}
},
"spec": {
"containers": [
{
"name": "kube-scheduler",
"image": "{{ hyperkube_image_repo }}:{{ hyperkube_image_tag }}",
"command": [
"/hyperkube",
"scheduler",
"--v={{ kube_log_level | default('2') }}",
"--address=127.0.0.1",
"--leader-elect",
"--master={{ kube_apiserver_endpoint }}"
],
"resources": {
"requests": {
"cpu": "100m"
}
},
"livenessProbe": {
"httpGet": {
"path": "/healthz",
"port": 10251,
"host": "127.0.0.1"
},
"initialDelaySeconds": 15,
"timeoutSeconds": 15
}
}
],
"hostNetwork": true
},
"status": {}
}