Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default enable kernel cpu and memory accounting #1397

Merged
merged 1 commit into from
Jul 22, 2022

Conversation

pixiake
Copy link
Collaborator

@pixiake pixiake commented Jul 22, 2022

Signed-off-by: pixiake guofeng@yunify.com

What type of PR is this?

/kind feature

What this PR does / why we need it:

kubernetes/kubernetes#56850

Failed to get system container stats for "/system.slice/kubelet.service": failed to get cgroup stats for "/system.slice/kubelet.service": failed to get container info for "/system.slice/kubelet.service": unknown container "/system.slice/kubelet.service"

Enable CPUAccounting and MemoryAccounting for kubelet by default

[Unit]
Description=kubelet: The Kubernetes Node Agent
Documentation=http://kubernetes.io/docs/

[Service]
CPUAccounting=true
MemoryAccounting=true
ExecStart=/usr/local/bin/kubelet
Restart=always
StartLimitInterval=0
RestartSec=10

[Install]
WantedBy=multi-user.target

Which issue(s) this PR fixes:

Fixes #

Special notes for reviewers:

Does this PR introduced a user-facing change?


Additional documentation, usage docs, etc.:


Signed-off-by: pixiake <guofeng@yunify.com>
@ks-ci-bot ks-ci-bot added the kind/feature Categorizes issue or PR as related to a new feature. label Jul 22, 2022
@ks-ci-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pixiake

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ks-ci-bot ks-ci-bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 22, 2022
@pixiake
Copy link
Collaborator Author

pixiake commented Jul 22, 2022

/cc @kubesphere/sig-installation

@ks-ci-bot ks-ci-bot requested a review from a team July 22, 2022 06:37
@24sama
Copy link
Collaborator

24sama commented Jul 22, 2022

/lgtm

@ks-ci-bot ks-ci-bot added the lgtm Indicates that a PR is ready to be merged. label Jul 22, 2022
@ks-ci-bot
Copy link
Collaborator

LGTM label has been added.

Git tree hash: 24e234340a2a3c8e6c5ea4baa45968c2515719a5

@ks-ci-bot ks-ci-bot merged commit 7c761db into kubesphere:master Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants