kubectl apply -f juiceshop.yaml # kubectl get pod ; kubectl get services NAME READY STATUS RESTARTS AGE juiceshop 1/1 Running 0 113s # kubectl expose -f juiceshop.yaml --port=3000 # kubectl get services NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE juiceshop ClusterIP 10.43.162.4 <none> 3000/TCP 10s # curl 10.43.162.4:3000
svc juiceshop service "juiceshop" deleted # kubectl get pod ; kubectl get services No resources found in default namespace. NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE kubernetes ClusterIP 10.43.0.1 <none> 443/TCP 41h # kubectl delete -f juiceshop.yaml pod "juiceshop" deleted