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