Bug 1811493
| Summary: | Failed to create the KubeletConfig object | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Jian Zhang <jiazha> |
| Component: | Node | Assignee: | Ryan Phillips <rphillips> |
| Status: | CLOSED DUPLICATE | QA Contact: | Sunil Choudhary <schoudha> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 4.4 | CC: | aos-bugs, jokerman |
| Target Milestone: | --- | ||
| Target Release: | 4.4.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-03-09 13:34:36 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Jian Zhang
2020-03-09 03:49:35 UTC
Workaround: add the apiVersion/Kind in it:
mac:~ jianzhang$ cat pod_evication.yaml
apiVersion: machineconfiguration.openshift.io/v1
kind: KubeletConfig
metadata:
name: worker-kubeconfig
spec:
machineConfigPoolSelector:
matchLabels:
custom-kubelet: small-pods
kubeletConfig:
apiVersion: machineconfiguration.openshift.io/v1
kind: KubeletConfig
evictionSoft:
memory.available: "90%"
nodefs.available: "90%"
nodefs.inodesFree: "90%"
evictionPressureTransitionPeriod: 0s
mac:~ jianzhang$ oc create -f pod_evication.yaml
kubeletconfig.machineconfiguration.openshift.io/worker-kubeconfig created
mac:~ jianzhang$ oc get machineconfigpool
NAME CONFIG UPDATED UPDATING DEGRADED MACHINECOUNT READYMACHINECOUNT UPDATEDMACHINECOUNT DEGRADEDMACHINECOUNT AGE
master rendered-master-e3490b51f062c3a94b508209b44089f6 True False False 3 3 3 0 94m
worker rendered-worker-9bf0b68b8e317cb5aaccf7b61b2d13f5 False True False 3 0 0 0 94m
mac:~ jianzhang$ oc get nodes
NAME STATUS ROLES AGE VERSION
ip-10-0-131-77.us-east-2.compute.internal Ready worker 88m v1.17.1
ip-10-0-133-75.us-east-2.compute.internal Ready master 95m v1.17.1
ip-10-0-146-18.us-east-2.compute.internal Ready master 96m v1.17.1
ip-10-0-153-230.us-east-2.compute.internal NotReady,SchedulingDisabled worker 90m v1.17.1
ip-10-0-168-220.us-east-2.compute.internal Ready worker 88m v1.17.1
ip-10-0-173-167.us-east-2.compute.internal Ready master 96m v1.17.1
*** This bug has been marked as a duplicate of bug 1811211 *** |