본문 바로가기
Kubernetes

[Kubernetes] 초간단 busybox 설치

by guru_k 2022. 5. 23.
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
반응형

댓글0