쿠버네티스
-
No resources found in default namespace. kubectl get podsIT 2020. 7. 2. 16:27
pod를 생성하지 않아서 생긴 문제 [root@localhost system]# kubectl get pods No resources found in default namespace. [root@localhost system]# vi pod-nginx.yaml apiVersion: v1 kind: Pod metadata: name: nginx labels: env: test spec: containers: - name: nginx image: nginx imagePullPolicy: IfNotPresent nodeSelector: disktype: ssd [root@localhost ~]# kubectl apply -f i.yaml pod/nginx created [root@localhost ~]# ku..
-
Failed to get system container stats for "/system.slice/kubelet.service": failed to get cgroup stats for "/system.slice/kubelet.service" failed to find cgroups of kubelet - cpu and memory cgroupIT 2020. 7. 1. 12:04
failed to find cgroups of kubelet - cpu and memory cgroup # 해결 vi /etc/systemd/system/kubelet.service.d/11-cgroups.conf [Service] CPUAccounting=true MemoryAccounting=true vi /etc/sysconfig/kubelet KUBELET_CGROUP_ARGS=--cgroup-driver=systemd --runtime-cgroups=/systemd/system.slice --kubelet-cgroups=/systemd/system.slice [root@localhost ~]# vi /usr/lib/systemd/system/kubelet.service [Unit] Descrip..