Below are commands to use to Check Flannel Daemon Set and ConfigMap & Other Configuration - Memory, CPU, IP, Events
kubectl describe ds kube-flannel-ds -n kube-system
kubectl describe pod kube-flannel -n kube-system
Below are sample outputs:
$ kubectl describe ds kube-flannel-ds -n kube-system
Name: kube-flannel-ds
Selector: app=flannel
Node-Selector: <none>
Labels: app=flannel
tier=node
Annotations: deprecated.daemonset.template.generation: 6
Desired Number of Nodes Scheduled: 4
Current Number of Nodes Scheduled: 4
Number of Nodes Scheduled with Up-to-date Pods: 4
Number of Nodes Scheduled with Available Pods: 4
Number of Nodes Misscheduled: 0
Pods Status: 4 Running / 0 Waiting / 0 Succeeded / 0 Failed
Pod Template:
Labels: app=flannel
tier=node
Annotations: kubectl.kubernetes.io/restartedAt: 2023-05-25T04:32:40Z
Service Account: flannel
Init Containers:
install-cni:
Image: container-registry.oracle.com/olcne/flannel:v0.14.1
Port: <none>
Host Port: <none>
Command:
cp
Args:
-f
/etc/kube-flannel/cni-conf.json
/etc/cni/net.d/10-flannel.conflist
Environment: <none>
Mounts:
/etc/cni/net.d from cni (rw)
/etc/kube-flannel/ from flannel-cfg (rw)
Containers:
kube-flannel:
Image: container-registry.oracle.com/olcne/flannel:v0.14.1
Port: <none>
Host Port: <none>
Command:
/opt/bin/flanneld
Args:
--ip-masq
--kube-subnet-mgr
Limits:
cpu: 100m
memory: 50Mi
Requests:
cpu: 100m
memory: 50Mi
Environment:
POD_NAME: (v1:metadata.name)
POD_NAMESPACE: (v1:metadata.namespace)
Mounts:
/etc/kube-flannel/ from flannel-cfg (rw)
/run/flannel from run (rw)
Volumes:
run:
Type: HostPath (bare host directory volume)
Path: /run/flannel
HostPathType:
cni:
Type: HostPath (bare host directory volume)
Path: /etc/cni/net.d
HostPathType:
flannel-cfg:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: kube-flannel-cfg
Optional: false
Priority Class Name: system-node-critical
Events: <none>
[opc@cne1-ha-control1 ~]$
[opc@cne1-ha-control1 ~]$ kubectl describe pod kube-flannel -n kube-system
Name: kube-flannel-ds-lxkc4
Namespace: kube-system
Priority: 2000001000
Priority Class Name: system-node-critical
Service Account: flannel
Node: cne1-ha-worker2/10.0.1.107
Start Time: Fri, 13 Oct 2023 03:57:34 +0000
Labels: app=flannel
controller-revision-hash=7f8b9b4955
pod-template-generation=6
tier=node
Annotations: kubectl.kubernetes.io/restartedAt: 2023-05-25T04:32:40Z
Status: Running
IP: 10.0.1.107
IPs:
IP: 10.0.1.107
Controlled By: DaemonSet/kube-flannel-ds
Init Containers:
install-cni:
Container ID: cri-o://36e063573bf1df8b682f7a66578ba3d5fd548a136cf38c27e7e504c867ab32c6
Image: container-registry.oracle.com/olcne/flannel:v0.14.1
Image ID: container-registry.oracle.com/olcne/flannel@sha256:809c8865ec70d2cffbe6cabaef32e2a62bf9756b764c579cd48dc252d72c74f7
Port: <none>
Host Port: <none>
Command:
cp
Args:
-f
/etc/kube-flannel/cni-conf.json
/etc/cni/net.d/10-flannel.conflist
State: Terminated
Reason: Completed
Exit Code: 0
Started: Thu, 19 Oct 2023 17:26:25 +0000
Finished: Thu, 19 Oct 2023 17:26:25 +0000
Ready: True
Restart Count: 4
Environment: <none>
Mounts:
/etc/cni/net.d from cni (rw)
/etc/kube-flannel/ from flannel-cfg (rw)
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-hxmph (ro)
Containers:
kube-flannel:
Container ID: cri-o://3bce3829f7997b11af90bdbac06a85284e402ca64a940251bac170e0485890ea
Image: container-registry.oracle.com/olcne/flannel:v0.14.1
Image ID: container-registry.oracle.com/olcne/flannel@sha256:809c8865ec70d2cffbe6cabaef32e2a62bf9756b764c579cd48dc252d72c74f7
Port: <none>
Host Port: <none>
Command:
/opt/bin/flanneld
Args:
--ip-masq
--kube-subnet-mgr
State: Running
Started: Thu, 19 Oct 2023 17:26:56 +0000
Last State: Terminated
Reason: Error
Exit Code: 1
Started: Thu, 19 Oct 2023 17:26:25 +0000
Finished: Thu, 19 Oct 2023 17:26:56 +0000
Ready: True
Restart Count: 6
Limits:
cpu: 100m
memory: 50Mi
Requests:
cpu: 100m
memory: 50Mi
Environment:
POD_NAME: kube-flannel-ds-lxkc4 (v1:metadata.name)
POD_NAMESPACE: kube-system (v1:metadata.namespace)
Mounts:
/etc/kube-flannel/ from flannel-cfg (rw)
/run/flannel from run (rw)
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-hxmph (ro)
Conditions:
Type Status
Initialized True
Ready True
ContainersReady True
PodScheduled True
Volumes:
run:
Type: HostPath (bare host directory volume)
Path: /run/flannel
HostPathType:
cni:
Type: HostPath (bare host directory volume)
Path: /etc/cni/net.d
HostPathType:
flannel-cfg:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: kube-flannel-cfg
Optional: false
kube-api-access-hxmph:
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: <none>
Tolerations: :NoSchedule op=Exists
node.kubernetes.io/disk-pressure:NoSchedule op=Exists
node.kubernetes.io/memory-pressure:NoSchedule op=Exists
node.kubernetes.io/network-unavailable:NoSchedule op=Exists
node.kubernetes.io/not-ready:NoExecute op=Exists
node.kubernetes.io/pid-pressure:NoSchedule op=Exists
node.kubernetes.io/unreachable:NoExecute op=Exists
node.kubernetes.io/unschedulable:NoSchedule op=Exists
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Pulled 26m kubelet Container image "container-registry.oracle.com/olcne/flannel:v0.14.1" already present on machine
Normal Created 26m kubelet Created container install-cni
Normal Started 26m kubelet Started container install-cni
Normal Pulled 25m (x2 over 26m) kubelet Container image "container-registry.oracle.com/olcne/flannel:v0.14.1" already present on machine
Normal Created 25m (x2 over 26m) kubelet Created container kube-flannel
Normal Started 25m (x2 over 26m) kubelet Started container kube-flannel
No comments:
Post a Comment