728x90
반응형
busybox.yaml
apiVersion: v1
kind: Pod
metadata:
name: busybox
spec:
containers:
- name: busybox
image: busybox
command:
- sleep
- "3600"
imagePullPolicy: IfNotPresent
restartPolicy: Always
예제 - nc 사용
$ kubectl exec -it busybox sh -- nc localhost 6379
예제 - nslookup 사용
$ kubectl exec -it busybox sh -- nslookup kubernetes
Server: 10.96.0.10
Address: 10.96.0.10:53
728x90
반응형
'Programming > Kubernetes' 카테고리의 다른 글
[kubernetes][redis] kubernetes에 redis 간단 설치 (0) | 2022.05.23 |
---|---|
[Kubernetes] command terminated with exit code 137 (0) | 2022.05.17 |
[Kubernetes][Docker] image pull ecr login (0) | 2022.05.16 |
[Kubernetes] kubelet error - part of the existing bootstrap client certificate is expired (0) | 2022.03.14 |
[Kubernets] coredns에 multiple consul dns 등록하기 (0) | 2022.02.09 |
댓글