上一页 1 2 3 4 5 6 7 8 9 ··· 16 下一页
摘要: nginx的upstream模块有3种方式: 1, round-robin 2, IP hash 3, Least Connection 阅读全文
posted @ 2019-05-01 14:38 零下三度-3°C 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 由于我现在的集群是把虚拟机的master文件直接拷贝过来的,所以之前的node节点是不存在的,只有k8s-ubuntu-1是新加入的,所以我要把上面之前创建的资源删除 删除deployment--> cka , kubectl delete 类型/资源名 同时删除多个 阅读全文
posted @ 2019-04-29 14:44 零下三度-3°C 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 在用docker,kubernetes时registry是重要的一环,下面就来搭建一个镜像仓库。之前在公司时有资源域名,有做ssl证书,今天没条件就不做ssl证书和域名了。 1,下载 harbor 安装文件。 2, 解压到当前文件夹 修改端口, 也可以修改image的存储目录,在docker-com 阅读全文
posted @ 2019-04-26 21:36 零下三度-3°C 阅读(166) 评论(0) 推荐(0) 编辑
摘要: Pod作为kubernetes的最基本单元,它的控制器有以下这些 Pod的控制器: 1, RC ( ReplicationController): 2, RS(ReplicaSet) : 3, Deployment: 4, DaemonSet: 5, Job 6,Cronjob: 与linux中的c 阅读全文
posted @ 2019-04-18 12:16 零下三度-3°C 阅读(109) 评论(0) 推荐(0) 编辑
摘要: pod中定义需要的存储卷,类型为pvc pvc 与 pv 建立绑定关系 kubectl explain pv 定义pv时不要加namspce 阅读全文
posted @ 2019-04-17 15:49 零下三度-3°C 阅读(113) 评论(0) 推荐(0) 编辑
摘要: restartPolicy: Always: 默认 , 总是重启 OnFailure : 错误事重启 Never: 从来不重启 Default to Always: 阅读全文
posted @ 2019-04-16 14:57 零下三度-3°C 阅读(596) 评论(0) 推荐(0) 编辑
摘要: imagePullPolicy <String> Always : 总是从仓库下载 , 如果是image的tag是latest ,如果需要一直保持最新,则应设为Always ,从仓库下载最新的 Never : 从不去仓库下载,只用本地 IfNotPresent : 如果本地没有,则去下载 阅读全文
posted @ 2019-04-16 11:48 零下三度-3°C 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 网络配置文件 在 /etc/network/interface auto eth0 iface eth0 inet static address x.x.x.x netmask 255.255.255.0 gateway x.x.x.x 设置DNS /etc/systemd/resolve.conf 阅读全文
posted @ 2019-04-14 21:50 零下三度-3°C 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 使用pip命令安装 pip -h 查看pip使用帮助 pip install <第3方库名> pip install -U <第3方库名> 对已安装的第三方库更新 pip uninstall <第三方库名> 卸载第三方库 pip download <第3方库名> 只下载不安装 pip show <第 阅读全文
posted @ 2019-04-14 16:55 零下三度-3°C 阅读(184) 评论(0) 推荐(0) 编辑
摘要: command args entryPoint 阅读全文
posted @ 2019-04-12 11:38 零下三度-3°C 阅读(380) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 16 下一页