Kubelet streaming connection timeout disabled
This product is not supported for your selected
Datadog site. (
).
Id: ed89b97d-04e9-4fd4-919f-ee5b27e555e9
Cloud Provider: k8s
Framework: Kubernetes
Severity: Medium
Category: Networking and Firewall
Learn More
Description
The --streaming-connection-idle-timeout
flag should not be set to 0
.
Compliant Code Examples
apiVersion: v1
kind: Pod
metadata:
name: command-demo
labels:
purpose: demonstrate-command
spec:
containers:
- name: command-demo-container
image: foo/bar
command: ["kubelet"]
args: [""]
restartPolicy: OnFailure
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
address: "192.168.0.8"
port: 20250
serializeImagePulls: false
evictionHard:
memory.available: "200Mi"
{
"address": "192.168.0.8",
"apiVersion": "kubelet.config.k8s.io/v1beta1",
"evictionHard": {
"memory.available": "200Mi"
},
"kind": "KubeletConfiguration",
"port": 20250,
"serializeImagePulls": false
}
Non-Compliant Code Examples
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
address: "192.168.0.8"
port: 20250
serializeImagePulls: false
evictionHard:
memory.available: "200Mi"
streamingConnectionIdleTimeout: 0s
{
"apiVersion": "kubelet.config.k8s.io/v1beta1",
"evictionHard": {
"memory.available": "200Mi"
},
"kind": "KubeletConfiguration",
"serializeImagePulls": false,
"address": "192.168.0.8",
"port": 20250,
"streamingConnectionIdleTimeout": "0s"
}
apiVersion: v1
kind: Pod
metadata:
name: command-demo
labels:
purpose: demonstrate-command
spec:
containers:
- name: command-demo-container
image: foo/bar
command: ["kubelet"]
args: ["--streaming-connection-idle-timeout=0"]
restartPolicy: OnFailure