摘要: 创建svc配置文件 cat >k8s_nginx_svc.yml<<EOF apiVersion: v1 kind: Service metadata: name: nginxsvc spec: type: NodePort ports: - port: 80 nodePort: 30001 sel 阅读全文
posted @ 2020-05-15 16:22 zhuguoqing 阅读(120) 评论(0) 推荐(0) 编辑
摘要: vim k8s_nginx_dev.yml apiVersion: extensions/v1beta1 kind: Deployment metadata: name: nginx spec: replicas: 2 template: metadata: labels: app: nginx s 阅读全文
posted @ 2020-05-15 16:21 zhuguoqing 阅读(157) 评论(0) 推荐(0) 编辑
摘要: master: 配置yml文件 vim k8s_nginx_rc.yml [root@master yml]# cat k8s_nginx_rc.yml apiVersion: v1 kind: ReplicationController metadata: name: nginx spec: re 阅读全文
posted @ 2020-05-15 16:09 zhuguoqing 阅读(143) 评论(0) 推荐(0) 编辑
摘要: docker network ls docker run network=xxx none : 无网络模式 bridge : 默认模式,相当于NAT host : 公用宿主机Network NameSapce container:与其他容器公用Network Namespace Docker跨主机访 阅读全文
posted @ 2020-05-15 10:21 zhuguoqing 阅读(1079) 评论(0) 推荐(0) 编辑