kubernetes(k8s)第五部分之K8s部署nginx
【1】创建nginx-rc.yaml文件[root@k8s-master ~]# cat nginx-rc.yaml apiVersion: v1kind: ReplicationControllermetadata: name: nginx-controllerspec: replicas: 2 selector: name: nginx template: ...