kubectl get pods
-
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..
-
kubectl 컨테이너 netstat 정보알기카테고리 없음 2019. 1. 9. 17:50
#!/bin/bashkubectl get pods -o wide |awk '{ print $1 }' | grep -w "단어" | head -n 55 > w.outkubectl get pods -o wide |awk '{ print $1 }' | grep -w "단어" | head -n 55 | wc -lcDate=`date '+%Y-%m-%d %T'`echo "$cDate"for B in $(cat ./w.out)doecho ${B}kubectl exec -it ${B} -- netstat -tan | grep -i 'SYN_SENT'done