mirror of https://github.com/k3s-io/k3s
99 lines
2.2 KiB
Plaintext
99 lines
2.2 KiB
Plaintext
{
|
|
"apiVersion": "v1",
|
|
"kind": "Pod",
|
|
"metadata": {
|
|
"name":"kube-apiserver",
|
|
"namespace": "kube-system"
|
|
},
|
|
"spec":{
|
|
"hostNetwork": true,
|
|
"containers":[
|
|
{
|
|
"name": "kube-apiserver",
|
|
"image": "{{kube_docker_registry}}/kube-apiserver:{{kube-apiserver_docker_tag}}",
|
|
"resources": {
|
|
"requests": {
|
|
"cpu": "250m"
|
|
}
|
|
},
|
|
"command": [
|
|
"/bin/sh",
|
|
"-c",
|
|
"/usr/local/bin/kube-apiserver {{params}} 1>>/var/log/kube-apiserver.log 2>&1"
|
|
],
|
|
"livenessProbe": {
|
|
"httpGet": {
|
|
"host": "127.0.0.1",
|
|
"port": 8080,
|
|
"path": "/healthz"
|
|
},
|
|
"initialDelaySeconds": 15,
|
|
"timeoutSeconds": 15
|
|
},
|
|
"ports":[
|
|
{ "name": "https",
|
|
"containerPort": 443,
|
|
"hostPort": 443},{
|
|
"name": "local",
|
|
"containerPort": 8080,
|
|
"hostPort": 8080}
|
|
],
|
|
"volumeMounts": [
|
|
{{cloud_config_mount}}
|
|
{ "name": "srvkube",
|
|
"mountPath": "/etc/srv/kubernetes",
|
|
"readOnly": true},
|
|
{ "name": "logfile",
|
|
"mountPath": "/var/log/kube-apiserver.log",
|
|
"readOnly": false},
|
|
{ "name": "etcssl",
|
|
"mountPath": "/etc/ssl",
|
|
"readOnly": true},
|
|
{ "name": "varssl",
|
|
"mountPath": "/var/ssl",
|
|
"readOnly": true},
|
|
{ "name": "etcopenssl",
|
|
"mountPath": "/etc/openssl",
|
|
"readOnly": true},
|
|
{ "name": "etcpkitls",
|
|
"mountPath": "/etc/pki/tls",
|
|
"readOnly": true},
|
|
{ "name": "srvsshproxy",
|
|
"mountPath": "/etc/srv/sshproxy",
|
|
"readOnly": false}
|
|
]
|
|
}
|
|
],
|
|
"volumes":[
|
|
{{cloud_config_volume}}
|
|
{ "name": "srvkube",
|
|
"hostPath": {
|
|
"path": "/etc/srv/kubernetes"}
|
|
},
|
|
{ "name": "logfile",
|
|
"hostPath": {
|
|
"path": "/var/log/kube-apiserver.log"}
|
|
},
|
|
{ "name": "etcssl",
|
|
"hostPath": {
|
|
"path": "/etc/ssl"}
|
|
},
|
|
{ "name": "varssl",
|
|
"hostPath": {
|
|
"path": "/var/ssl"}
|
|
},
|
|
{ "name": "etcopenssl",
|
|
"hostPath": {
|
|
"path": "/etc/openssl"}
|
|
},
|
|
{ "name": "etcpkitls",
|
|
"hostPath": {
|
|
"path": "/etc/pki/tls"}
|
|
},
|
|
{ "name": "srvsshproxy",
|
|
"hostPath": {
|
|
"path": "/etc/srv/sshproxy"}
|
|
}
|
|
]
|
|
}}
|