k8s curl验证yaml
curl验证k8s dns curl.yamlapiVersion: v1kind: Podmetadata:name: curl-utilspec:containers:- name: curl-utilimage: radial/busyboxplus:curlcommand:- sh- -c- while true; ...
·
curl验证k8s dns
curl.yaml
apiVersion: v1
kind: Pod
metadata:
name: curl-util
spec:
containers:
- name: curl-util
image: radial/busyboxplus:curl
command:
- sh
- -c
- while true; do sleep 1; done
kubectl run curl --image=radial/busyboxplus:curl -i --tty
也可以使用dig dig @K8S dns ip svc_name
dig @10.0.16.10 nginx-svc
更多推荐
已为社区贡献5条内容
所有评论(0)