随笔分类 -  k8s集群

摘要:kubectl create -f deployment.yml kubectl autoscale deployment dnginx --min=2 --max=6 --cpu-percent=80 动态伸缩 [root@220 ~]# kubectl get horizontalpodauto 阅读全文
posted @ 2020-04-09 12:20 Le1543 阅读(201) 评论(0) 推荐(0)
摘要:服务端 yum install -y nfs-utils rpcbind mkdir -p /wp/{data,code} echo "/wp/data 192.168.3.0/24(rw,async,no_root_squash,no_all_squash) ">>/etc/exports \ & 阅读全文
posted @ 2020-04-09 11:51 Le1543 阅读(873) 评论(0) 推荐(0)
摘要: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 阅读(294) 评论(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 阅读(164) 评论(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 阅读(241) 评论(0) 推荐(0)
摘要:[root@master ~]# docker imagesREPOSITORY TAG IMAGE ID CREATED SIZE192.168.3.228:5000/test/s v1 fdcfe04e9ea4 3 days ago 398MBsshd v1 fdcfe04e9ea4 3 day 阅读全文
posted @ 2020-04-06 02:47 Le1543 阅读(369) 评论(0) 推荐(0)
摘要:处理好selinux iptables firewalld ( iptables -P FORWARD ACCEPT) master 228 node 229 230 所有节点安装docker-ce master中 sed -i 's#http://127.0.0.1:2379#http://192 阅读全文
posted @ 2020-04-06 00:36 Le1543 阅读(178) 评论(0) 推荐(0)