mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Merge pull request #27037 from wojtek-t/push_hollow_nodes_logs_to_kubelets
Automatic merge from submit-queue Mount hollow-node logs to parent node hostpath
This commit is contained in:
commit
d1cc7f9e2c
@ -25,6 +25,12 @@
|
|||||||
"secret": {
|
"secret": {
|
||||||
"secretName": "kubeconfig"
|
"secretName": "kubeconfig"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "logs-volume",
|
||||||
|
"hostPath": {
|
||||||
|
"path": "/var/logs"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"containers": [
|
"containers": [
|
||||||
@ -45,20 +51,29 @@
|
|||||||
"key": "content.type"
|
"key": "content.type"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "MY_POD_NAME",
|
||||||
|
"valueFrom": {
|
||||||
|
"fieldRef": {
|
||||||
|
"fieldPath": "metadata.name"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"command": [
|
"command": [
|
||||||
"./kubemark.sh"
|
"/bin/sh",
|
||||||
],
|
"-c",
|
||||||
"args": [
|
"./kubemark.sh --morph=kubelet $(CONTENT_TYPE) --v=2 1>>/var/logs/kubelet_$(MY_POD_NAME).log 2>&1"
|
||||||
"--v=3",
|
|
||||||
"--morph=kubelet",
|
|
||||||
"$(CONTENT_TYPE)"
|
|
||||||
],
|
],
|
||||||
"volumeMounts": [
|
"volumeMounts": [
|
||||||
{
|
{
|
||||||
"name": "kubeconfig-volume",
|
"name": "kubeconfig-volume",
|
||||||
"mountPath": "/kubeconfig"
|
"mountPath": "/kubeconfig"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "logs-volume",
|
||||||
|
"mountPath": "/var/logs"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"resources": {
|
"resources": {
|
||||||
@ -81,20 +96,29 @@
|
|||||||
"key": "content.type"
|
"key": "content.type"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "MY_POD_NAME",
|
||||||
|
"valueFrom": {
|
||||||
|
"fieldRef": {
|
||||||
|
"fieldPath": "metadata.name"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"command": [
|
"command": [
|
||||||
"./kubemark.sh"
|
"/bin/sh",
|
||||||
],
|
"-c",
|
||||||
"args": [
|
"./kubemark.sh --morph=proxy $(CONTENT_TYPE) --v=2 1>>/var/logs/kube_proxy_$(MY_POD_NAME).log 2>&1"
|
||||||
"--v=3",
|
|
||||||
"--morph=proxy",
|
|
||||||
"$(CONTENT_TYPE)"
|
|
||||||
],
|
],
|
||||||
"volumeMounts": [
|
"volumeMounts": [
|
||||||
{
|
{
|
||||||
"name": "kubeconfig-volume",
|
"name": "kubeconfig-volume",
|
||||||
"mountPath": "/kubeconfig"
|
"mountPath": "/kubeconfig"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "logs-volume",
|
||||||
|
"mountPath": "/var/logs"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"resources": {
|
"resources": {
|
||||||
|
Loading…
Reference in New Issue
Block a user