Skip to content

Commit

Permalink
Enable evented pleg feature in the Openshift
Browse files Browse the repository at this point in the history
1. CRI-O sends the container events to the Kubelet so that the pod cache can be updated based on the received events.
More about the Evented PLEG is here. KEP Reference: https://github.com/kubernetes/enhancements/blob/master/keps/sig-node/3386-kubelet-evented-pleg/README.md
2. This feature can be enabled in OCP by adding a new field in the node config custom resource
that can be monitored by the MCO and update both the Kubelet and CRI-O configurations
Enhancement PR: openshift/enhancements#1368

Signed-off-by: Sai Ramesh Vanka <svanka@redhat.com>
  • Loading branch information
sairameshv committed May 24, 2023
1 parent f6e7dff commit 40bdeef
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/v1/0000_10_config-operator_01_node.crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ spec:
- v1
- v2
- ""
eventedPleg:
description: EventedPleg enables event based PLEG between the kubelet and the CRI-O
type: boolean
workerLatencyProfile:
description: WorkerLatencyProfile determins the how fast the kubelet is updating the status and corresponding reaction of the cluster
type: string
Expand Down
4 changes: 4 additions & 0 deletions config/v1/types_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ type NodeSpec struct {
// the status and corresponding reaction of the cluster
// +optional
WorkerLatencyProfile WorkerLatencyProfileType `json:"workerLatencyProfile,omitempty"`

// EventedPleg enables event based PLEG between the kubelet and the CRI-O
// +optional
EventedPleg *bool `json:"eventedPleg,omitempty"`
}

type NodeStatus struct{}
Expand Down
1 change: 1 addition & 0 deletions config/v1/zz_generated.swagger_doc_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions openapi/generated_openapi/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -7849,6 +7849,10 @@
"description": "CgroupMode determines the cgroups version on the node",
"type": "string"
},
"eventedPleg": {
"description": "EventedPleg enables event based PLEG between the kubelet and the CRI-O",
"type": "boolean"
},
"workerLatencyProfile": {
"description": "WorkerLatencyProfile determins the how fast the kubelet is updating the status and corresponding reaction of the cluster",
"type": "string"
Expand Down

0 comments on commit 40bdeef

Please sign in to comment.