随笔分类 -  k8s

应用无法启动多容器解决
摘要:1.配置亲和性策略为反亲和性,并设置单节点仅运行一个该应用的容器; 2.创建服务,设置其访问类型为节点访问(NodePort),服务亲和为节点级别,容器端口为应用监听端口,访问端口可自动生成; 3.添加ingress,其负载均衡选择私网,监听器协议选择http,并配置转发策略——域名置空,url匹配 阅读全文
posted @ 2020-10-29 09:39 51core 阅读(118) 评论(0) 推荐(0)
ubuntu--snap install microk8s
摘要:Welcome to Ubuntu 20.04.1 LTS (GNU/Linux 5.4.0-45-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.c 阅读全文
posted @ 2020-09-03 18:36 51core 阅读(643) 评论(0) 推荐(0)
k8s集群搭建
摘要:高速镜像源:清华源、华为源、阿里源 0. centos wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.huaweicloud.com/repository/conf/CentOS-7-anon.repo 1. docker-ce 阅读全文
posted @ 2020-08-31 17:55 51core 阅读(184) 评论(0) 推荐(0)