Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support evented pleg feature in the Openshift
1. Incase of Evented PLEG, CRI-O sends the container events to the Kubelet so that the pod cache can be updated based on the received events. 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 required Kubelet and CRI-O configurations Enhancement PR: openshift/enhancements#1368 Signed-off-by: Sai Ramesh Vanka <svanka@redhat.com>
- Loading branch information
1 parent
91a8d2b
commit 7661898
Showing
6 changed files
with
96 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
config/v1/0000_10_config-operator_01_node-TechPreviewNoUpgrade.crd.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
api-approved.openshift.io: https://github.com/openshift/api/pull/1107 | ||
include.release.openshift.io/ibm-cloud-managed: "true" | ||
include.release.openshift.io/self-managed-high-availability: "true" | ||
include.release.openshift.io/single-node-developer: "true" | ||
release.openshift.io/feature-set: TechPreviewNoUpgrade | ||
name: nodes.config.openshift.io | ||
spec: | ||
group: config.openshift.io | ||
names: | ||
kind: Node | ||
listKind: NodeList | ||
plural: nodes | ||
singular: node | ||
scope: Cluster | ||
versions: | ||
- name: v1 | ||
schema: | ||
openAPIV3Schema: | ||
description: "Node holds cluster-wide information about node specific features. \n Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer)." | ||
type: object | ||
required: | ||
- spec | ||
properties: | ||
apiVersion: | ||
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' | ||
type: string | ||
kind: | ||
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
description: spec holds user settable values for configuration | ||
type: object | ||
properties: | ||
cgroupMode: | ||
description: CgroupMode determines the cgroups version on the node | ||
type: string | ||
enum: | ||
- v1 | ||
- v2 | ||
- "" | ||
eventedPleg: | ||
description: EventedPleg enables event based PLEG between the kubelet and the CRI-O | ||
type: string | ||
enum: | ||
- Enabled | ||
- Disabled | ||
- "" | ||
workerLatencyProfile: | ||
description: WorkerLatencyProfile determins the how fast the kubelet is updating the status and corresponding reaction of the cluster | ||
type: string | ||
enum: | ||
- Default | ||
- MediumUpdateAverageReaction | ||
- LowUpdateSlowReaction | ||
status: | ||
description: status holds observed values. | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters