首页 > 其他 > 详细

k8s创建pod

时间:2018-08-02 18:17:10      阅读:154      评论:0      收藏:0      [点我收藏+]
第1章 nginx配置文件yaml

1.1 nginx _rc文件 rc资源类型

cat nginx_rc.yaml
apiVersion: v1
kind: ReplicationController
metadata:
  name: nginx4
spec:
   replicas: 1
   selector:
     app: nginx4
   template:
     metadata:
       labels:
         app: nginx4
     spec:
       containers:
       - name: nginx4
         image: 10.0.0.10:5000/nginx:v2
         ports:
         - containerPort: 80
         volumeMounts:
          - mountPath: /usr/local/nginx/html
            name: web
       volumes:
        - hostPath:
           path: /root/test
          name: web


k8s创建pod

原文:http://blog.51cto.com/fenyuer/2153733

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!