kubectl
-
error: unable to recognize "test-dep.yml": no matches for kind "Deployment" in version "extensions/v1"IT 2020. 6. 29. 14:16
Client Version: v1.18.3 Server Version: v1.18.3 kubectl apply -f test-dep.yml error: unable to recognize "test-dep.yml": no matches for kind "Deployment" in version "extensions/v1" 해결 #apiVersion: extensions/v1 - > apiVersion: apps/v1 kubectl apply -f test-dep.yml deployment.apps/service-test created
-
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