You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MacBook-Pro:~ jianzhang$ k8sgpt analyze -n openshift-operator-lifecycle-managerAI Provider: openai0 openshift-operator-lifecycle-manager/packageserver-pdb(packageserver-pdb)- Error: No matching pods found, expected label app=packageserver MacBook-Pro:~ jianzhang$ k8sgpt analyze AI Provider: openai0 openshift-kube-apiserver/kube-apiserver-guard-pdb(kube-apiserver-guard-pdb)- Error: No matching pods found, expected label app=guard1 openshift-monitoring/prometheus-operator-admission-webhook(prometheus-operator-admission-webhook)- Error: No matching pods found, expected label app.kubernetes.io/name=prometheus-operator-admission-webhook- Error: No matching pods found, expected label app.kubernetes.io/part-of=openshift-monitoring2 openshift-oauth-apiserver/oauth-apiserver-pdb(oauth-apiserver-pdb)- Error: No matching pods found, expected label apiserver=true- Error: No matching pods found, expected label app=openshift-oauth-apiserver3 openshift-apiserver/openshift-apiserver-pdb(openshift-apiserver-pdb)- Error: No matching pods found, expected label apiserver=true- Error: No matching pods found, expected label app=openshift-apiserver-a4 openshift-cloud-credential-operator/pod-identity-webhook(pod-identity-webhook)- Error: No matching pods found, expected label app=pod-identity-webhook5 openshift-cluster-csi-drivers/aws-ebs-csi-driver-controller-pdb(aws-ebs-csi-driver-controller-pdb)- Error: No matching pods found, expected label app=aws-ebs-csi-driver-controller6 openshift-etcd/etcd-guard-pdb(etcd-guard-pdb)- Error: No matching pods found, expected label app=guard7 openshift-kube-controller-manager/kube-controller-manager-guard-pdb(kube-controller-manager-guard-pdb)- Error: No matching pods found, expected label app=guard8 openshift-kube-scheduler/openshift-kube-scheduler-guard-pdb(openshift-kube-scheduler-guard-pdb)- Error: No matching pods found, expected label app=guard9 openshift-operator-lifecycle-manager/packageserver-pdb(packageserver-pdb)- Error: No matching pods found, expected label app=packageserver
Additional Information
The PDB works as expected, and it already found the matched pods, but the history event is preserved. We shouldn't use the event to judge if the pdb works well.
MacBook-Pro:~ jianzhang$ oc get pods --show-labels|grep packageserverpackageserver-69cc8b8cdd-jshp4 1/1 Running 0 106m app=packageserver,pod-template-hash=69cc8b8cddpackageserver-69cc8b8cdd-nszzz 1/1 Running 0 106m app=packageserver,pod-template-hash=69cc8b8cddMacBook-Pro:~ jianzhang$ oc describe pdb packageserver-pdbName: packageserver-pdbNamespace: openshift-operator-lifecycle-managerMax unavailable: 1Selector: app=packageserverStatus: Allowed disruptions: 1 Current: 2 Desired: 1 Total: 2Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal NoPods 139m (x2 over 139m) controllermanager No matching pods foundMacBook-Pro:~ jianzhang$ oc get event|grep packageserver-pdb115m Normal NoPods poddisruptionbudget/packageserver-pdb No matching pods found
The text was updated successfully, but these errors were encountered:
The PDB event is a historical record, it's not a good choice to judge the pdb latest status based on it.
So, use the `stataus` instead of `event` to check it.
Closes: k8sgpt-ai#476
Signed-off-by: Jian Zhang <jiazha@redhat.com>
The PDB event is a historical record, it's not a good choice to judge the pdb latest status based on it.
So, use the `stataus` instead of `event` to check it.
Closes: k8sgpt-ai#476
Signed-off-by: Jian Zhang <jiazha@redhat.com>
The PDB event is a historical record, it's not a good choice to judge the pdb latest status based on it.
So, use the `stataus` instead of `event` to check it.
Closes: #476
Signed-off-by: Jian Zhang <jiazha@redhat.com>
Checklist
Affected Components
K8sGPT Version
k8sgpt: 0.3.6 (9c0efe6), built at: unknown
Kubernetes Version
No response
Host OS and its Version
Mac OS 12.6.6
Steps to reproduce
$ k8sgpt analyze
Expected behaviour
No error report for the PDB(
PodDisruptionBudget
).Actual behaviour
Additional Information
The PDB works as expected, and it already found the matched pods, but the history event is preserved. We shouldn't use the
event
to judge if the pdb works well.The text was updated successfully, but these errors were encountered: