Home > other >  Kubectl container error is established
Kubectl container error is established

Time:09-20

Version:
/root @ server ~ # docker version
Client:
Version: 1.12.6
API version: 1.24
Package version: docker - 1.12.6-61. Git85d7426. El7. Centos. X86_64
Go version: go1.8.3
Git commit: 85 d7426/1.12.6
Built: Tue Oct 24 15:40:21 2017
OS/Arch: Linux/amd64

Server:
Version: 1.12.6
API version: 1.24
Package version: docker - 1.12.6-61. Git85d7426. El7. Centos. X86_64
Go version: go1.8.3
Git commit: 85 d7426/1.12.6
Built: Tue Oct 24 15:40:21 2017
OS/Arch: Linux/amd64

/root @ server ~ # kubectl version
Client Version: Version Info {Major: "1", Minor: "5", GitVersion: "v1.5.2 GitCommit:" 269 f928217957e7126dc87e6adfa82242bfe5b1e GitTreeState: "clean", BuildDate: "the 2017-07-03 T15: for Z," GoVersion: "go1.7.4", the Compiler: "gc", Platform: "Linux/amd64"}

Test the yaml file
The cat a.y aml
ApiVersion: v1
Kind: Pod
The metadata:
Name: hw
Spec: # current pod content statement
# restartPolicy: Never
Containers:
- name: hello!
Image: "registry.cn-beijing.aliyuncs.com/opendcp/nginx
"Command: ["/bin/echo ", "hello", "world"]

Using the command:
/root @ server ~ # kubectl create - f/root/a.y aml
Pod "hw" created
/root @ server ~ # kubectl get Po hw
The NAME READY STATUS RESTARTS AGE
Hw 0/1 CrashLoopBackOff 4 2 m
/root @ server ~ # kubectl describe Po


/root @ server ~ # vim/var/log/messages
  • Related