1&2.pod拉起后,1分钟左右就会停止,期间日志正常,describe没看到event 有什么异常。没有exit code,退出后pod就销毁了。无法看到销毁后的pod信息
[xsbank@k8s-worker16 ~]$ sudo journalctl -fu kubelet -f | grep devops
Oct 12 15:15:56 k8s-worker16 kubelet[26715]: 2024-10-12 15:15:56.880 [INFO][10024] ipam_plugin.go 282: Calico CNI IPAM assigned addresses IPv4=[10.96.222.193/24] IPv6=[] ContainerID=“7bf17604645355d9e8515caa3f1360c9db32dac186d798149946ecacef4f6123” HandleID=“k8s-pod-network.7bf17604645355d9e8515caa3f1360c9db32dac186d798149946ecacef4f6123” Workload=“k8s–worker16-k8s-devops–apiserver–65f897d48b–s2h2c-eth0”
Oct 12 15:15:56 k8s-worker16 kubelet[26715]: 2024-10-12 15:15:56.884 [INFO][10012] k8s.go 383: Populated endpoint ContainerID=“7bf17604645355d9e8515caa3f1360c9db32dac186d798149946ecacef4f6123” Namespace=“kubesphere-devops-system” Pod=“devops-apiserver-65f897d48b-s2h2c” WorkloadEndpoint=“k8s–worker16-k8s-devops–apiserver–65f897d48b–s2h2c-eth0” endpoint=&v3.WorkloadEndpoint{TypeMeta:v1.TypeMeta{Kind:“WorkloadEndpoint”, APIVersion:“projectcalico.org/v3”}, ObjectMeta:v1.ObjectMeta{Name:“k8s–worker16-k8s-devops–apiserver–65f897d48b–s2h2c-eth0”, GenerateName:“devops-apiserver-65f897d48b-”, Namespace:“kubesphere-devops-system”, SelfLink:"", UID:“f447b235-74d3-48c3-b8da-fbc35902aadf”, ResourceVersion:“463852405”, Generation:0, CreationTimestamp:time.Date(2024, time.October, 12, 15, 14, 7, 0, time.Local), DeletionTimestamp:<nil>, DeletionGracePeriodSeconds🙁*int64)(nil), Labels:map[string]string{“app.kubernetes.io/instance”:“devops”, “app.kubernetes.io/name”:“ks-devops”, “devops.kubesphere.io/component”:“apiserver”, “pod-template-hash”:“65f897d48b”, “projectcalico.org/namespace”:“kubesphere-devops-system”, “projectcalico.org/orchestrator”:“k8s”, “projectcalico.org/serviceaccount”:“devops”}, Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string(nil), ClusterName:"", ManagedFields:[]v1.ManagedFieldsEntry(nil)}, Spec:v3.WorkloadEndpointSpec{Orchestrator:“k8s”, Workload:"", Node:“k8s-worker16”, ContainerID:"", Pod:“devops-apiserver-65f897d48b-s2h2c”, Endpoint:“eth0”, ServiceAccountName:“devops”, IPNetworks:[]string{“10.96.222.193/32”}, IPNATs:[]v3.IPNAT(nil), IPv4Gateway:"“, IPv6Gateway:”", Profiles:[]string{“kns.kubesphere-devops-system”, “ksa.kubesphere-devops-system.devops”}, InterfaceName:“calif57a7ae40ff”, MAC:"", Ports:[]v3.WorkloadEndpointPort(nil), AllowSpoofedSourcePrefixes:[]string(nil)}}
Oct 12 15:15:56 k8s-worker16 kubelet[26715]: 2024-10-12 15:15:56.884 [INFO][10012] k8s.go 384: Calico CNI using IPs: [10.96.222.193/32] ContainerID=“7bf17604645355d9e8515caa3f1360c9db32dac186d798149946ecacef4f6123” Namespace=“kubesphere-devops-system” Pod=“devops-apiserver-65f897d48b-s2h2c” WorkloadEndpoint=“k8s–worker16-k8s-devops–apiserver–65f897d48b–s2h2c-eth0”
Oct 12 15:15:56 k8s-worker16 kubelet[26715]: 2024-10-12 15:15:56.884 [INFO][10012] dataplane_linux.go 68: Setting the host side veth name to calif57a7ae40ff ContainerID=“7bf17604645355d9e8515caa3f1360c9db32dac186d798149946ecacef4f6123” Namespace=“kubesphere-devops-system” Pod=“devops-apiserver-65f897d48b-s2h2c” WorkloadEndpoint=“k8s–worker16-k8s-devops–apiserver–65f897d48b–s2h2c-eth0”
Oct 12 15:15:56 k8s-worker16 kubelet[26715]: 2024-10-12 15:15:56.885 [INFO][10012] dataplane_linux.go 453: Disabling IPv4 forwarding ContainerID=“7bf17604645355d9e8515caa3f1360c9db32dac186d798149946ecacef4f6123” Namespace=“kubesphere-devops-system” Pod=“devops-apiserver-65f897d48b-s2h2c” WorkloadEndpoint=“k8s–worker16-k8s-devops–apiserver–65f897d48b–s2h2c-eth0”
Oct 12 15:15:56 k8s-worker16 kubelet[26715]: 2024-10-12 15:15:56.904 [INFO][10012] k8s.go 411: Added Mac, interface name, and active container ID to endpoint ContainerID=“7bf17604645355d9e8515caa3f1360c9db32dac186d798149946ecacef4f6123” Namespace=“kubesphere-devops-system” Pod=“devops-apiserver-65f897d48b-s2h2c” WorkloadEndpoint=“k8s–worker16-k8s-devops–apiserver–65f897d48b–s2h2c-eth0” endpoint=&v3.WorkloadEndpoint{TypeMeta:v1.TypeMeta{Kind:“WorkloadEndpoint”, APIVersion:“projectcalico.org/v3”}, ObjectMeta:v1.ObjectMeta{Name:“k8s–worker16-k8s-devops–apiserver–65f897d48b–s2h2c-eth0”, GenerateName:“devops-apiserver-65f897d48b-”, Namespace:“kubesphere-devops-system”, SelfLink:"", UID:“f447b235-74d3-48c3-b8da-fbc35902aadf”, ResourceVersion:“463852405”, Generation:0, CreationTimestamp:time.Date(2024, time.October, 12, 15, 14, 7, 0, time.Local), DeletionTimestamp:<nil>, DeletionGracePeriodSeconds🙁*int64)(nil), Labels:map[string]string{“app.kubernetes.io/instance”:“devops”, “app.kubernetes.io/name”:“ks-devops”, “devops.kubesphere.io/component”:“apiserver”, “pod-template-hash”:“65f897d48b”, “projectcalico.org/namespace”:“kubesphere-devops-system”, “projectcalico.org/orchestrator”:“k8s”, “projectcalico.org/serviceaccount”:“devops”}, Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string(nil), ClusterName:"", ManagedFields:[]v1.ManagedFieldsEntry(nil)}, Spec:v3.WorkloadEndpointSpec{Orchestrator:“k8s”, Workload:"", Node:“k8s-worker16”, ContainerID:“7bf17604645355d9e8515caa3f1360c9db32dac186d798149946ecacef4f6123”, Pod:“devops-apiserver-65f897d48b-s2h2c”, Endpoint:“eth0”, ServiceAccountName:“devops”, IPNetworks:[]string{“10.96.222.193/32”}, IPNATs:[]v3.IPNAT(nil), IPv4Gateway:"“, IPv6Gateway:”", Profiles:[]string{“kns.kubesphere-devops-system”, “ksa.kubesphere-devops-system.devops”}, InterfaceName:“calif57a7ae40ff”, MAC:“92:f8:d4:41:32:07”, Ports:[]v3.WorkloadEndpointPort(nil), AllowSpoofedSourcePrefixes:[]string(nil)}}
Oct 12 15:15:56 k8s-worker16 kubelet[26715]: 2024-10-12 15:15:56.911 [INFO][10012] k8s.go 489: Wrote updated endpoint to datastore ContainerID=“7bf17604645355d9e8515caa3f1360c9db32dac186d798149946ecacef4f6123” Namespace=“kubesphere-devops-system” Pod=“devops-apiserver-65f897d48b-s2h2c” WorkloadEndpoint=“k8s–worker16-k8s-devops–apiserver–65f897d48b–s2h2c-eth0”
Oct 12 15:16:12 k8s-worker16 kubelet[26715]: 2024-10-12 15:16:12.130 [INFO][10777] ipam_plugin.go 411: Releasing address using handleID ContainerID=“9829ca8e7d952bce04b801735ce8b4205699541f1105dfb0fc2c058cba4a140a” HandleID=“k8s-pod-network.9829ca8e7d952bce04b801735ce8b4205699541f1105dfb0fc2c058cba4a140a” Workload=“k8s–worker16-k8s-devops–controller–6bd75b5c67–n6b9j-eth0”
Oct 12 15:16:12 k8s-worker16 kubelet[26715]: 2024-10-12 15:16:12.179 [INFO][10777] ipam_plugin.go 430: Released address using handleID ContainerID=“9829ca8e7d952bce04b801735ce8b4205699541f1105dfb0fc2c058cba4a140a” HandleID=“k8s-pod-network.9829ca8e7d952bce04b801735ce8b4205699541f1105dfb0fc2c058cba4a140a” Workload=“k8s–worker16-k8s-devops–controller–6bd75b5c67–n6b9j-eth0”
Oct 12 15:16:12 k8s-worker16 kubelet[26715]: 2024-10-12 15:16:12.179 [INFO][10777] ipam_plugin.go 439: Releasing address using workloadID ContainerID=“9829ca8e7d952bce04b801735ce8b4205699541f1105dfb0fc2c058cba4a140a” HandleID=“k8s-pod-network.9829ca8e7d952bce04b801735ce8b4205699541f1105dfb0fc2c058cba4a140a” Workload=“k8s–worker16-k8s-devops–controller–6bd75b5c67–n6b9j-eth0”
Oct 12 15:16:22 k8s-worker16 kubelet[26715]: E1012 15:16:22.657968 26715 cpu_manager.go:394] “RemoveStaleState: removing container” podUID=“a03ed885-5020-4cdf-a2b4-9ca45dc0f66c” containerName=“ks-devops”
Oct 12 15:16:22 k8s-worker16 kubelet[26715]: I1012 15:16:22.658035 26715 memory_manager.go:345] “RemoveStaleState removing state” podUID=“a03ed885-5020-4cdf-a2b4-9ca45dc0f66c” containerName=“ks-devops”
Oct 12 15:16:22 k8s-worker16 kubelet[26715]: I1012 15:16:22.763200 26715 reconciler.go:221] "operationExecutor.VerifyControllerAttachedVolume started for volume \“kubesphere-config\” (UniqueName: \“kubernetes.io/configmap/5099adde-5b21-4f39-bc92-5d9217aaf555-kubesphere-config\”) pod \“devops-controller-684fd895d6-92sl8\” (UID: \“5099adde-5b21-4f39-bc92-5d9217aaf555\”) " pod=“kubesphere-devops-system/devops-controller-684fd895d6-92sl8”
Oct 12 15:16:22 k8s-worker16 kubelet[26715]: I1012 15:16:22.763261 26715 reconciler.go:221] "operationExecutor.VerifyControllerAttachedVolume started for volume \“kube-api-access-wrvlt\” (UniqueName: \“kubernetes.io/projected/5099adde-5b21-4f39-bc92-5d9217aaf555-kube-api-access-wrvlt\”) pod \“devops-controller-684fd895d6-92sl8\” (UID: \“5099adde-5b21-4f39-bc92-5d9217aaf555\”) " pod=“kubesphere-devops-system/devops-controller-684fd895d6-92sl8”
Oct 12 15:16:23 k8s-worker16 kubelet[26715]: 2024-10-12 15:16:23.534 [INFO][11408] plugin.go 324: Calico CNI found existing endpoint: &{{WorkloadEndpoint projectcalico.org/v3} {k8s–worker16-k8s-devops–controller–684fd895d6–92sl8-eth0 devops-controller-684fd895d6- kubesphere-devops-system 5099adde-5b21-4f39-bc92-5d9217aaf555 463853038 0 2024-10-12 15:14:33 +0800 CST <nil> <nil> map[app.kubernetes.io/instance:devops app.kubernetes.io/name:ks-devops devops.kubesphere.io/component:controller pod-template-hash:684fd895d6 projectcalico.org/namespace:kubesphere-devops-system projectcalico.org/orchestrator:k8s projectcalico.org/serviceaccount:devops] map[] [] [] []} {k8s k8s-worker16 devops-controller-684fd895d6-92sl8 eth0 devops [] [] [kns.kubesphere-devops-system ksa.kubesphere-devops-system.devops] calib25fee24b4c [] []}} ContainerID=“d30914ae62eae16beaf437a988f700f9b28ff1b107ade37f99cbd7157d5febda” Namespace=“kubesphere-devops-system” Pod=“devops-controller-684fd895d6-92sl8” WorkloadEndpoint=“k8s–worker16-k8s-devops–controller–684fd895d6–92sl8-”
Oct 12 15:16:23 k8s-worker16 kubelet[26715]: 2024-10-12 15:16:23.534 [INFO][11408] k8s.go 74: Extracted identifiers for CmdAddK8s ContainerID=“d30914ae62eae16beaf437a988f700f9b28ff1b107ade37f99cbd7157d5febda” Namespace=“kubesphere-devops-system” Pod=“devops-controller-684fd895d6-92sl8” WorkloadEndpoint=“k8s–worker16-k8s-devops–controller–684fd895d6–92sl8-eth0”
Oct 12 15:16:23 k8s-worker16 kubelet[26715]: 2024-10-12 15:16:23.565 [INFO][11424] ipam_plugin.go 224: Calico CNI IPAM request count IPv4=1 IPv6=0 ContainerID=“d30914ae62eae16beaf437a988f700f9b28ff1b107ade37f99cbd7157d5febda” HandleID=“k8s-pod-network.d30914ae62eae16beaf437a988f700f9b28ff1b107ade37f99cbd7157d5febda” Workload=“k8s–worker16-k8s-devops–controller–684fd895d6–92sl8-eth0”
Oct 12 15:16:23 k8s-worker16 kubelet[26715]: 2024-10-12 15:16:23.574 [INFO][11424] ipam_plugin.go 264: Auto assigning IP ContainerID=“d30914ae62eae16beaf437a988f700f9b28ff1b107ade37f99cbd7157d5febda” HandleID=“k8s-pod-network.d30914ae62eae16beaf437a988f700f9b28ff1b107ade37f99cbd7157d5febda” Workload=“k8s–worker16-k8s-devops–controller–684fd895d6–92sl8-eth0” assignArgs=ipam.AutoAssignArgs{Num4:1, Num6:0, HandleID🙁*string)(0xc00003ae10), Attrs:map[string]string{“namespace”:“kubesphere-devops-system”, “node”:“k8s-worker16”, “pod”:“devops-controller-684fd895d6-92sl8”, “timestamp”:“2024-10-12 07:16:23.565273056 +0000 UTC”}, Hostname:“k8s-worker16”, IPv4Pools:[]net.IPNet{}, IPv6Pools:[]net.IPNet{}, MaxBlocksPerHost:0, HostReservedAttrIPv4s🙁*ipam.HostReservedAttr)(nil), HostReservedAttrIPv6s🙁*ipam.HostReservedAttr)(nil), IntendedUse:“Workload”}
Oct 12 15:16:23 k8s-worker16 kubelet[26715]: 2024-10-12 15:16:23.615 [INFO][11424] ipam_plugin.go 282: Calico CNI IPAM assigned addresses IPv4=[10.96.222.198/24] IPv6=[] ContainerID=“d30914ae62eae16beaf437a988f700f9b28ff1b107ade37f99cbd7157d5febda” HandleID=“k8s-pod-network.d30914ae62eae16beaf437a988f700f9b28ff1b107ade37f99cbd7157d5febda” Workload=“k8s–worker16-k8s-devops–controller–684fd895d6–92sl8-eth0”
Oct 12 15:16:23 k8s-worker16 kubelet[26715]: 2024-10-12 15:16:23.617 [INFO][11408] k8s.go 383: Populated endpoint ContainerID=“d30914ae62eae16beaf437a988f700f9b28ff1b107ade37f99cbd7157d5febda” Namespace=“kubesphere-devops-system” Pod=“devops-controller-684fd895d6-92sl8” WorkloadEndpoint=“k8s–worker16-k8s-devops–controller–684fd895d6–92sl8-eth0” endpoint=&v3.WorkloadEndpoint{TypeMeta:v1.TypeMeta{Kind:“WorkloadEndpoint”, APIVersion:“projectcalico.org/v3”}, ObjectMeta:v1.ObjectMeta{Name:“k8s–worker16-k8s-devops–controller–684fd895d6–92sl8-eth0”, GenerateName:“devops-controller-684fd895d6-”, Namespace:“kubesphere-devops-system”, SelfLink:"", UID:“5099adde-5b21-4f39-bc92-5d9217aaf555”, ResourceVersion:“463853038”, Generation:0, CreationTimestamp:time.Date(2024, time.October, 12, 15, 14, 33, 0, time.Local), DeletionTimestamp:<nil>, DeletionGracePeriodSeconds🙁*int64)(nil), Labels:map[string]string{“app.kubernetes.io/instance”:“devops”, “app.kubernetes.io/name”:“ks-devops”, “devops.kubesphere.io/component”:“controller”, “pod-template-hash”:“684fd895d6”, “projectcalico.org/namespace”:“kubesphere-devops-system”, “projectcalico.org/orchestrator”:“k8s”, “projectcalico.org/serviceaccount”:“devops”}, Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string(nil), ClusterName:"", ManagedFields:[]v1.ManagedFieldsEntry(nil)}, Spec:v3.WorkloadEndpointSpec{Orchestrator:“k8s”, Workload:"", Node:“k8s-worker16”, ContainerID:"", Pod:“devops-controller-684fd895d6-92sl8”, Endpoint:“eth0”, ServiceAccountName:“devops”, IPNetworks:[]string{“10.96.222.198/32”}, IPNATs:[]v3.IPNAT(nil), IPv4Gateway:"“, IPv6Gateway:”", Profiles:[]string{“kns.kubesphere-devops-system”, “ksa.kubesphere-devops-system.devops”}, InterfaceName:“calib25fee24b4c”, MAC:"", Ports:[]v3.WorkloadEndpointPort(nil), AllowSpoofedSourcePrefixes:[]string(nil)}}
Oct 12 15:16:23 k8s-worker16 kubelet[26715]: 2024-10-12 15:16:23.618 [INFO][11408] k8s.go 384: Calico CNI using IPs: [10.96.222.198/32] ContainerID=“d30914ae62eae16beaf437a988f700f9b28ff1b107ade37f99cbd7157d5febda” Namespace=“kubesphere-devops-system” Pod=“devops-controller-684fd895d6-92sl8” WorkloadEndpoint=“k8s–worker16-k8s-devops–controller–684fd895d6–92sl8-eth0”
Oct 12 15:16:23 k8s-worker16 kubelet[26715]: 2024-10-12 15:16:23.618 [INFO][11408] dataplane_linux.go 68: Setting the host side veth name to calib25fee24b4c ContainerID=“d30914ae62eae16beaf437a988f700f9b28ff1b107ade37f99cbd7157d5febda” Namespace=“kubesphere-devops-system” Pod=“devops-controller-684fd895d6-92sl8” WorkloadEndpoint=“k8s–worker16-k8s-devops–controller–684fd895d6–92sl8-eth0”
Oct 12 15:16:23 k8s-worker16 kubelet[26715]: 2024-10-12 15:16:23.619 [INFO][11408] dataplane_linux.go 453: Disabling IPv4 forwarding ContainerID=“d30914ae62eae16beaf437a988f700f9b28ff1b107ade37f99cbd7157d5febda” Namespace=“kubesphere-devops-system” Pod=“devops-controller-684fd895d6-92sl8” WorkloadEndpoint=“k8s–worker16-k8s-devops–controller–684fd895d6–92sl8-eth0”
Oct 12 15:16:23 k8s-worker16 kubelet[26715]: 2024-10-12 15:16:23.635 [INFO][11408] k8s.go 411: Added Mac, interface name, and active container ID to endpoint ContainerID=“d30914ae62eae16beaf437a988f700f9b28ff1b107ade37f99cbd7157d5febda” Namespace=“kubesphere-devops-system” Pod=“devops-controller-684fd895d6-92sl8” WorkloadEndpoint=“k8s–worker16-k8s-devops–controller–684fd895d6–92sl8-eth0” endpoint=&v3.WorkloadEndpoint{TypeMeta:v1.TypeMeta{Kind:“WorkloadEndpoint”, APIVersion:“projectcalico.org/v3”}, ObjectMeta:v1.ObjectMeta{Name:“k8s–worker16-k8s-devops–controller–684fd895d6–92sl8-eth0”, GenerateName:“devops-controller-684fd895d6-”, Namespace:“kubesphere-devops-system”, SelfLink:"", UID:“5099adde-5b21-4f39-bc92-5d9217aaf555”, ResourceVersion:“463853038”, Generation:0, CreationTimestamp:time.Date(2024, time.October, 12, 15, 14, 33, 0, time.Local), DeletionTimestamp:<nil>, DeletionGracePeriodSeconds🙁*int64)(nil), Labels:map[string]string{“app.kubernetes.io/instance”:“devops”, “app.kubernetes.io/name”:“ks-devops”, “devops.kubesphere.io/component”:“controller”, “pod-template-hash”:“684fd895d6”, “projectcalico.org/namespace”:“kubesphere-devops-system”, “projectcalico.org/orchestrator”:“k8s”, “projectcalico.org/serviceaccount”:“devops”}, Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string(nil), ClusterName:"", ManagedFields:[]v1.ManagedFieldsEntry(nil)}, Spec:v3.WorkloadEndpointSpec{Orchestrator:“k8s”, Workload:"", Node:“k8s-worker16”, ContainerID:“d30914ae62eae16beaf437a988f700f9b28ff1b107ade37f99cbd7157d5febda”, Pod:“devops-controller-684fd895d6-92sl8”, Endpoint:“eth0”, ServiceAccountName:“devops”, IPNetworks:[]string{“10.96.222.198/32”}, IPNATs:[]v3.IPNAT(nil), IPv4Gateway:"“, IPv6Gateway:”", Profiles:[]string{“kns.kubesphere-devops-system”, “ksa.kubesphere-devops-system.devops”}, InterfaceName:“calib25fee24b4c”, MAC:“ea:05:ef:c6:d4:a4”, Ports:[]v3.WorkloadEndpointPort(nil), AllowSpoofedSourcePrefixes:[]string(nil)}}
Oct 12 15:16:23 k8s-worker16 kubelet[26715]: 2024-10-12 15:16:23.641 [INFO][11408] k8s.go 489: Wrote updated endpoint to datastore ContainerID=“d30914ae62eae16beaf437a988f700f9b28ff1b107ade37f99cbd7157d5febda” Namespace=“kubesphere-devops-system” Pod=“devops-controller-684fd895d6-92sl8” WorkloadEndpoint=“k8s–worker16-k8s-devops–controller–684fd895d6–92sl8-eth0”