Pod 类似于共享名字空间和文件系统卷的一组Docker容器<1>
作者:互联网
Pod 类似于共享名字空间和文件系统卷的一组Docker容器:
pod 内容器共享namespace:
[root@master Chapter5]# cat nginx.yaml
apiVersion: v1
kind: Pod
metadata:
name: my-nginx
labels:
name: my-nginx
spec:
containers:
- name: my-nginx-1
image: registry.cn-beijing.aliyuncs.com/qingfeng666/nginx:latest
- name: my-nginx-2
image: registry.cn-beijing.aliyuncs.com/qingfeng666/nginx:latest
[root@master Chapter5]# kubectl get pod
NAME READY STATUS RESTARTS AGE
busybox-1 1/1 Running 58 47d
my-nginx 1/2 CrashLoopBackOff 4 2m36s
[root@master Chapter5]# kubectl logs my-nginx my-nginx-1
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/do
标签:name,Chapter5,文件系统,nginx,master,Pod,my,Docker 来源: https://blog.csdn.net/zhaoyangjian724/article/details/118423380