摘要: apiVersion: v1 kind: ReplicationController metadata: name: nginxrc spec: replicas: 3 selector: app: nginx1 template: metadata: labels: app: nginx1 spe 阅读全文
posted @ 2020-04-07 20:21 Le1543 阅读(280) 评论(0) 推荐(0) 编辑
摘要: vim image.sh #!/bin/bash url=registry.cn-hangzhou.aliyuncs.com/google_containers version=v1.14.2 images=(`kubeadm config images list --kubernetes-vers 阅读全文
posted @ 2020-04-07 12:00 Le1543 阅读(153) 评论(0) 推荐(0) 编辑
摘要: kubectl create -f k8s_pod.yml kubectl get pods kubectl get pods -o wide kubectl get pods [NAME] -o wide kubectl get pods -o wide -l app=[NAME] kubectl 阅读全文
posted @ 2020-04-07 11:25 Le1543 阅读(234) 评论(0) 推荐(0) 编辑