busybox.yaml
apiVersion: v1 kind: Pod metadata: name: busybox namespace: default spec: containers: - name: busybox image: busybox:1.28.4 command: - sleep - "3600" imagePullPolicy: IfNotPresent restartPolicy: Always
部署
# 部署 kubectl apply -f busybox.yaml # 测试解析,下面是解析正常 kubectl exec -i busybox -n default nslookup kubernetes
请登录之后再进行评论