Skip to content

Instantly share code, notes, and snippets.

@pingkunga
Created November 7, 2023 23:26
Show Gist options
  • Save pingkunga/99ce5c95c2249a37848a3b0302a2f3d6 to your computer and use it in GitHub Desktop.
Save pingkunga/99ce5c95c2249a37848a3b0302a2f3d6 to your computer and use it in GitHub Desktop.
Error Metric Server
controlplane $ kubectl describe pod metrics-server-5d79fcb458-cx7rp
Error from server (NotFound): pods "metrics-server-5d79fcb458-cx7rp" not found
controlplane $ kubectl get pod metrics-server-5d79fcb458-cx7rp
Error from server (NotFound): pods "metrics-server-5d79fcb458-cx7rp" not found
controlplane $ kubectl describe pod metrics-server-5d79fcb458-cx7rp -n kube-system
Name: metrics-server-5d79fcb458-cx7rp
Namespace: kube-system
Priority: 2000000000
Priority Class Name: system-cluster-critical
Service Account: metrics-server
Node: <none>
Labels: k8s-app=metrics-server
pod-template-hash=5d79fcb458
Annotations: <none>
Status: Pending
IP:
IPs: <none>
Controlled By: ReplicaSet/metrics-server-5d79fcb458
Containers:
metrics-server:
Image: registry.k8s.io/metrics-server/metrics-server:v0.6.4
Port: 4443/TCP
Host Port: 0/TCP
Args:
--cert-dir=/tmp
--secure-port=4443
--kubelet-preferred-address-types=InternalIP,ExternalIP,Hostname
--kubelet-use-node-status-port
--metric-resolution=15s
Requests:
cpu: 100m
memory: 200Mi
Liveness: http-get https://:https/livez delay=0s timeout=1s period=10s #success=1 #failure=3
Readiness: http-get https://:https/readyz delay=20s timeout=1s period=10s #success=1 #failure=3
Environment: <none>
Mounts:
/tmp from tmp-dir (rw)
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-s5f76 (ro)
Conditions:
Type Status
PodScheduled False
Volumes:
tmp-dir:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
SizeLimit: <unset>
kube-api-access-s5f76:
Type: Projected (a volume that contains injected data from multiple sources)
TokenExpirationSeconds: 3607
ConfigMapName: kube-root-ca.crt
ConfigMapOptional: <nil>
DownwardAPI: true
QoS Class: Burstable
Node-Selectors: kubernetes.io/os=linux
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedScheduling 46m (x2 over 46m) default-scheduler 0/2 nodes are available: 1 node(s) didn't match pod anti-affinity rules, 1 node(s) had untolerated taint {node-role.kubernetes.io/control-plane: }. preemption: 0/2 nodes are available: 1 No preemption victims found for incoming pod, 1 Preemption is not helpful for scheduling..
Warning FailedScheduling 72s (x9 over 41m) default-scheduler 0/2 nodes are available: 1 node(s) didn't match pod anti-affinity rules, 1 node(s) had untolerated taint {node-role.kubernetes.io/control-plane: }. preemption: 0/2 nodes are available: 1 Preemption is not helpful for scheduling, 1 node(s) didn't match pod anti-affinity rules..
controlplane $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment