κ΄λ¦¬ν μ μλ κ°μ₯ μμ μν¬λ‘λ
λͺ λ Ήν 컀맨λλ‘ νλ μμ±
$ kubectl run myweb --image httpd
νλ λͺ©λ‘ νμΈ
$ kubectl get pods
νΉμ νλ νμΈ
$ kubectl get pods myweb
νλ μμΈ μ 보
$ kubectl get pods -o wide
$ kubectl get pods -o yaml
$ kubectl get pods -o json
$ kubectl describe pods myweb
μ ν리μΌμ΄μ λ‘κ·Έ
$ kubectl logs myweb
νλ μμ
$ kubectl delete pods myweb
myweb.yaml
apiVersion: v1
kind: Pod
metadata:
name: myweb
spec:
containers:
- name: myweb
image: httpd
ports:
- containerPort: 80
protocol: TCP
kubectl explain pods
$ kubectl create -f myweb.yaml
$ kubectl get -f myweb.yaml
$ kubectl describe -f myweb.yaml
$ kubectl delete -f myweb.yaml
ν μ€νΈ & λλ²κΉ λͺ©μ
$ kubectl port-forward pods/myweb 8080:80
μ΄λ¦
λ€μμ€νμ΄μ€ μ μΌ
UID
ν΄λ¬μ€ν°μμ μ μΌ