Soufiane Aqajjef:
question pod: create the pod named app1 that runs a container named app1cont using image ifccncf/arg-output with these comand line argument -R 7 --vindoloo. when pod is running display data about the pod in json format using kubectl?
ramu:
Looks like the image is incorrect
ramu:
root@controlplane:~# k run app1cont --image=ifccncf/arg-output -- -R 7 --vindoloo
pod/app1cont created
root@controlplane:~# k get pods
NAME READY STATUS RESTARTS AGE
app1cont 0/1 ErrImagePull 0 9s
ramu:
it should be lfccncf/arg-output
ramu:
root@controlplane:~# k run app1cont --image=lfccncf/arg-output -- -R 7 --vindoloo
pod/app1cont created
ramu:
root@controlplane:~# k get pods
NAME READY STATUS RESTARTS AGE
app1cont 1/1 Running 0 2m11s
root@controlplane:~# k get pod app1cont -o json > app1cont.json