2015-04-09 21:35:07 +00:00
|
|
|
{
|
2015-06-30 02:30:14 +00:00
|
|
|
"apiVersion": "v1",
|
2015-04-09 21:35:07 +00:00
|
|
|
"kind": "Pod",
|
2015-08-04 18:14:46 +00:00
|
|
|
"metadata": {
|
|
|
|
"name":"kube-apiserver",
|
2016-04-14 23:03:40 +00:00
|
|
|
"namespace": "kube-system",
|
2017-06-12 22:22:04 +00:00
|
|
|
"annotations": {
|
2018-05-24 17:31:28 +00:00
|
|
|
"scheduler.alpha.kubernetes.io/critical-pod": "",
|
|
|
|
"seccomp.security.alpha.kubernetes.io/pod": "docker/default"
|
2017-06-12 22:22:04 +00:00
|
|
|
},
|
2016-04-14 23:03:40 +00:00
|
|
|
"labels": {
|
|
|
|
"tier": "control-plane",
|
|
|
|
"component": "kube-apiserver"
|
|
|
|
}
|
2015-08-04 18:14:46 +00:00
|
|
|
},
|
2015-04-09 21:35:07 +00:00
|
|
|
"spec":{
|
|
|
|
"hostNetwork": true,
|
|
|
|
"containers":[
|
2018-03-28 20:53:01 +00:00
|
|
|
{{kms_plugin_container}}
|
2015-04-09 21:35:07 +00:00
|
|
|
{
|
|
|
|
"name": "kube-apiserver",
|
2015-11-18 02:13:24 +00:00
|
|
|
"image": "{{pillar['kube_docker_registry']}}/kube-apiserver:{{pillar['kube-apiserver_docker_tag']}}",
|
2015-07-02 04:50:03 +00:00
|
|
|
"resources": {
|
2016-02-12 22:28:48 +00:00
|
|
|
"requests": {
|
2018-08-16 13:06:13 +00:00
|
|
|
"cpu": "125m"
|
2015-07-02 04:50:03 +00:00
|
|
|
}
|
|
|
|
},
|
2015-04-09 21:35:07 +00:00
|
|
|
"command": [
|
2015-04-24 21:46:43 +00:00
|
|
|
"/bin/sh",
|
|
|
|
"-c",
|
2018-01-02 16:12:48 +00:00
|
|
|
"exec /usr/local/bin/kube-apiserver {{params}} --allow-privileged={{pillar['allow_privileged']}} 1>>/var/log/kube-apiserver.log 2>&1"
|
2015-04-09 21:35:07 +00:00
|
|
|
],
|
2017-02-17 15:00:18 +00:00
|
|
|
{{container_env}}
|
2015-06-16 05:21:35 +00:00
|
|
|
"livenessProbe": {
|
|
|
|
"httpGet": {
|
2015-08-04 18:14:46 +00:00
|
|
|
"host": "127.0.0.1",
|
|
|
|
"port": 8080,
|
|
|
|
"path": "/healthz"
|
2015-06-16 05:21:35 +00:00
|
|
|
},
|
2018-01-02 12:13:03 +00:00
|
|
|
"initialDelaySeconds": {{liveness_probe_initial_delay}},
|
2015-06-16 05:21:35 +00:00
|
|
|
"timeoutSeconds": 15
|
|
|
|
},
|
2015-04-09 21:35:07 +00:00
|
|
|
"ports":[
|
|
|
|
{ "name": "https",
|
2015-04-17 21:04:14 +00:00
|
|
|
"containerPort": {{secure_port}},
|
|
|
|
"hostPort": {{secure_port}}},{
|
2015-04-09 21:35:07 +00:00
|
|
|
"name": "local",
|
|
|
|
"containerPort": 8080,
|
|
|
|
"hostPort": 8080}
|
|
|
|
],
|
|
|
|
"volumeMounts": [
|
2018-03-28 20:53:01 +00:00
|
|
|
{{kms_socket_mount}}
|
|
|
|
{{encryption_provider_mount}}
|
2015-05-18 17:34:50 +00:00
|
|
|
{{cloud_config_mount}}
|
2016-02-12 16:02:26 +00:00
|
|
|
{{additional_cloud_config_mount}}
|
2016-05-11 23:41:32 +00:00
|
|
|
{{webhook_config_mount}}
|
|
|
|
{{webhook_authn_config_mount}}
|
2017-05-26 20:48:49 +00:00
|
|
|
{{audit_policy_config_mount}}
|
2017-06-02 00:42:26 +00:00
|
|
|
{{audit_webhook_config_mount}}
|
2016-08-18 20:42:57 +00:00
|
|
|
{{admission_controller_config_mount}}
|
|
|
|
{{image_policy_webhook_config_mount}}
|
2015-04-09 21:35:07 +00:00
|
|
|
{ "name": "srvkube",
|
2018-06-21 11:58:11 +00:00
|
|
|
"mountPath": "/etc/srv/kubernetes",
|
2015-04-09 21:35:07 +00:00
|
|
|
"readOnly": true},
|
2015-04-24 21:46:43 +00:00
|
|
|
{ "name": "logfile",
|
|
|
|
"mountPath": "/var/log/kube-apiserver.log",
|
|
|
|
"readOnly": false},
|
2017-02-09 18:43:19 +00:00
|
|
|
{ "name": "auditlogfile",
|
|
|
|
"mountPath": "/var/log/kube-apiserver-audit.log",
|
|
|
|
"readOnly": false},
|
2015-04-09 21:35:07 +00:00
|
|
|
{ "name": "etcssl",
|
|
|
|
"mountPath": "/etc/ssl",
|
|
|
|
"readOnly": true},
|
2016-12-07 23:21:53 +00:00
|
|
|
{ "name": "usrsharecacerts",
|
|
|
|
"mountPath": "/usr/share/ca-certificates",
|
|
|
|
"readOnly": true},
|
2015-04-09 21:35:07 +00:00
|
|
|
{ "name": "varssl",
|
|
|
|
"mountPath": "/var/ssl",
|
|
|
|
"readOnly": true},
|
|
|
|
{ "name": "etcopenssl",
|
|
|
|
"mountPath": "/etc/openssl",
|
|
|
|
"readOnly": true},
|
2016-04-28 07:20:13 +00:00
|
|
|
{ "name": "etcpki",
|
2017-02-27 23:06:11 +00:00
|
|
|
"mountPath": "/etc/srv/pki",
|
2015-06-04 18:58:38 +00:00
|
|
|
"readOnly": true},
|
2015-06-05 21:49:26 +00:00
|
|
|
{ "name": "srvsshproxy",
|
2016-02-12 16:02:26 +00:00
|
|
|
"mountPath": "{{srv_sshproxy_path}}",
|
2015-06-04 18:58:38 +00:00
|
|
|
"readOnly": false}
|
2015-04-09 21:35:07 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"volumes":[
|
2018-03-28 20:53:01 +00:00
|
|
|
{{kms_socket_volume}}
|
|
|
|
{{encryption_provider_volume}}
|
2015-05-18 17:34:50 +00:00
|
|
|
{{cloud_config_volume}}
|
2016-02-12 16:02:26 +00:00
|
|
|
{{additional_cloud_config_volume}}
|
2016-05-11 23:41:32 +00:00
|
|
|
{{webhook_config_volume}}
|
|
|
|
{{webhook_authn_config_volume}}
|
2017-05-26 20:48:49 +00:00
|
|
|
{{audit_policy_config_volume}}
|
2017-06-02 00:42:26 +00:00
|
|
|
{{audit_webhook_config_volume}}
|
2016-08-18 20:42:57 +00:00
|
|
|
{{admission_controller_config_volume}}
|
|
|
|
{{image_policy_webhook_config_volume}}
|
2015-04-09 21:35:07 +00:00
|
|
|
{ "name": "srvkube",
|
|
|
|
"hostPath": {
|
2018-06-21 11:58:11 +00:00
|
|
|
"path": "/etc/srv/kubernetes"}
|
2015-04-09 21:35:07 +00:00
|
|
|
},
|
2015-04-24 21:46:43 +00:00
|
|
|
{ "name": "logfile",
|
|
|
|
"hostPath": {
|
2017-06-18 13:34:24 +00:00
|
|
|
"path": "/var/log/kube-apiserver.log",
|
|
|
|
"type": "FileOrCreate"}
|
2015-04-24 21:46:43 +00:00
|
|
|
},
|
2017-02-09 18:43:19 +00:00
|
|
|
{ "name": "auditlogfile",
|
|
|
|
"hostPath": {
|
2017-06-18 13:34:24 +00:00
|
|
|
"path": "/var/log/kube-apiserver-audit.log",
|
|
|
|
"type": "FileOrCreate"}
|
2017-02-09 18:43:19 +00:00
|
|
|
},
|
2015-04-09 21:35:07 +00:00
|
|
|
{ "name": "etcssl",
|
|
|
|
"hostPath": {
|
|
|
|
"path": "/etc/ssl"}
|
|
|
|
},
|
2016-12-07 23:21:53 +00:00
|
|
|
{ "name": "usrsharecacerts",
|
|
|
|
"hostPath": {
|
|
|
|
"path": "/usr/share/ca-certificates"}
|
|
|
|
},
|
2015-04-09 21:35:07 +00:00
|
|
|
{ "name": "varssl",
|
|
|
|
"hostPath": {
|
|
|
|
"path": "/var/ssl"}
|
|
|
|
},
|
|
|
|
{ "name": "etcopenssl",
|
|
|
|
"hostPath": {
|
|
|
|
"path": "/etc/openssl"}
|
|
|
|
},
|
2016-04-28 07:20:13 +00:00
|
|
|
{ "name": "etcpki",
|
2015-04-09 21:35:07 +00:00
|
|
|
"hostPath": {
|
2017-02-27 23:06:11 +00:00
|
|
|
"path": "/etc/srv/pki"}
|
2015-06-04 18:58:38 +00:00
|
|
|
},
|
2015-06-05 21:49:26 +00:00
|
|
|
{ "name": "srvsshproxy",
|
|
|
|
"hostPath": {
|
2016-02-12 16:02:26 +00:00
|
|
|
"path": "{{srv_sshproxy_path}}"}
|
2015-04-09 21:35:07 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}}
|