Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
Code Block
titlenamespace.yaml
linenumberstrue
apiVersion: v1
kind: Namespace
metadata:
  name: applications


Namespace 실습

Info
iconfalse


Code Block
linenumberstrue
sansae@sansaeAir15m2 k8s-lab-workspace % k apply -f namespace.yaml 
namespace/applications created

sansae@sansaeAir15m2 k8s-lab-workspace % k get ns
NAME              STATUS   AGE
aks-command       Active   45h
applications      Active   3s
calico-system     Active   2d1h
default           Active   2d1h
kube-node-lease   Active   2d1h
kube-public       Active   2d1h
kube-system       Active   2d1h
tigera-operator   Active   2d1h

sansae@sansaeAir15m2 k8s-lab-workspace % k run busybox --image=busybox -n applications
pod/busybox created

sansae@sansaeAir15m2 k8s-lab-workspace % k get all -n applications
NAME      READY   STATUS             RESTARTS     AGE
busybox   0/1     CrashLoopBackOff   1 (2s ago)   9s
sansae@sansaeAir15m2 k8s-lab-workspace %