Closed sonyafenge closed 1 month ago
Run kwok in cluster and monitor memory usage and found memory is keep increasing after multi hrs:
memory shouldn't keep increasing when fake nodes/pods running
repro steps included in "What happened"; yaml for nodes:
cat kwok-node.yaml apiVersion: v1 kind: Node metadata: annotations: node.alpha.kubernetes.io/ttl: "0" kwok.x-k8s.io/node: fake labels: beta.kubernetes.io/arch: amd64 beta.kubernetes.io/os: linux kubernetes.io/arch: amd64 kubernetes.io/hostname: kwok-node-0 kubernetes.io/os: linux kubernetes.io/role: agent node-role.kubernetes.io/agent: "" type: kwok name: kwok-node-0 spec: taints: # Avoid scheduling actual running pods to fake Node - effect: NoSchedule key: kwok.x-k8s.io/node value: fake status: allocatable: cpu: 32 memory: 256Gi pods: 110 capacity: cpu: 32 memory: 256Gi pods: 110 nodeInfo: architecture: amd64 bootID: "" containerRuntimeVersion: "" kernelVersion: "" kubeProxyVersion: fake kubeletVersion: fake machineID: "" operatingSystem: linux osImage: "" systemUUID: "" phase: Running
yaml for pods:
apiVersion: apps/v1 kind: Deployment metadata: name: fake-pod-${DEPI} namespace: fake-pod spec: replicas: ${REP} selector: matchLabels: app: fake-pod-${DEPI} template: metadata: labels: app: fake-pod-${DEPI} spec: affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: type operator: In values: - kwok # A taints was added to an automatically created Node. # You can remove taints of Node or add this tolerations. tolerations: - key: "kwok.x-k8s.io/node" operator: "Exists" effect: "NoSchedule" containers: - name: fake-container image: fake-image
No response
Good catch, thank you!
How to use it?
What happened?
Run kwok in cluster and monitor memory usage and found memory is keep increasing after multi hrs:
What did you expect to happen?
memory shouldn't keep increasing when fake nodes/pods running
How can we reproduce it (as minimally and precisely as possible)?
repro steps included in "What happened"; yaml for nodes:
yaml for pods:
Anything else we need to know?
No response
Kwok version
OS version