Rancher

Nginx.ingress.kubernetes.io/proxy-body-size not working

╄→尐↘猪︶ㄣ 提交于 2020-02-02 04:16:25
问题 I want to increase size of post body of each request in Ingress. So I add the nginx.ingress.kubernetes.io/proxy-body-size: 8m in yaml file ingress(in view/edit yaml file of rancher) but it doesn’t work. When I get the describe of ingress with kubectl I dont see the added annotation but i see the new added mapping. Hereis the configs: YAML file: apiVersion: extensions/v1beta1 kind: Ingress metadata: annotations: ingress.kubernetes.io/configuration-snippet: |- set $test_host "testdms.test.com"

Nginx.ingress.kubernetes.io/proxy-body-size not working

丶灬走出姿态 提交于 2020-02-02 04:16:22
问题 I want to increase size of post body of each request in Ingress. So I add the nginx.ingress.kubernetes.io/proxy-body-size: 8m in yaml file ingress(in view/edit yaml file of rancher) but it doesn’t work. When I get the describe of ingress with kubectl I dont see the added annotation but i see the new added mapping. Hereis the configs: YAML file: apiVersion: extensions/v1beta1 kind: Ingress metadata: annotations: ingress.kubernetes.io/configuration-snippet: |- set $test_host "testdms.test.com"

162. SQL 审核查询平台 Archery

倾然丶 夕夏残阳落幕 提交于 2020-02-01 04:02:39
Archery 定位于 SQL 审核查询平台,旨在提升 DBA 的工作效率,支持主流数据库的 SQL 上线和查询,同时支持丰富的 MySQL 运维功能 SQL 审核平台使用说明: 1. 安装【docker】 1. 安装docker docker - compose yum install docker - ce docker - compose - y 2. 在线克隆 Archery文件,解压后进入docker - compose文件夹 git clone https: //gitee.com/rtttte/Archery.git 3. 导入所需镜像 [ root @rancher sql ] # docker load -i hanchuanchuan.tar.gz 6 b27de954cca: Loading layer [ = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = > ] 5.857 MB / 5.857 MB 87 af49f9d15b: Loading layer [ = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

Kubernetes: kube-scheduler is not correctly scoring nodes for pod assignment

半世苍凉 提交于 2020-01-24 21:30:17
问题 I am running Kubernetes with Rancher, and I am seeing weird behavior with the kube-scheduler. After adding a third node, I expect to see pods start to get scheduled & assigned to it. However, the kube-scheduler scores this new third node node3 with the lowest score, even though it has almost no pods running in it, and I expect it to receive the highest score. Here are the logs from the Kube-scheduler: scheduling_queue.go:815] About to try and schedule pod namespace1/pod1 scheduler.go:456]

k3s 部署, 使用注意事项

删除回忆录丶 提交于 2020-01-22 21:38:01
课程简介: 第一章 熟悉Linux环境 1、Win10安装Ubuntu18.04双系统 2、熟悉Linux常用工具和命令 第二章 熟悉Docker 3、安装配置Docker 4、Docker命令实践 5、Dockerfile文件编写 6、常用镜像部署 ​​​​​​​ 第三章 熟悉Kubernetes ​​​​​​​ 7、kubernetes架构和部署 ​​​​​​​ 8、熟悉kubectl命令使用 ​​​​​​​ 9、k8s应用部署实践(上) ​​​​​​​ 10、k8s应用部署实践(下) ​​​​​​​ 第四章 熟悉Helm ​​​​​​​ 11、Helm安装配置 ​​​​​​​ 12、熟悉Helm应用书写规则 ​​​​​​​ 13、编写自己的Helm应用 全栈工程师开发手册 (作者:栾鹏) 架构系列文章 官方地址:https://rancher.com/docs/k3s/latest/en/ 环境配置 官方给出的k3s配置要求如下: 系统内核版本:Linux 3.10+ (CentOS 7, Debian 8/9, Ubuntu 14.04+) K3S Server端最低内存要求:512 MB K3S Agent端内存最低要求:75MB 磁盘空间最低要求:200 MB 支持的硬件架构:x86_64, ARMv7, ARM64 部署 浏览器打开网址 https://get.k3s

centos下安装rancher cli(kubectl kubeadmin)

巧了我就是萌 提交于 2020-01-21 19:48:45
使用rancher网页版的控制台健壮性不强,想安装rancher cli本地化输入命令方式。在rancher右下角下载cli,下载好后使用 tar -zxvf *.gz解压,解压后mv /path/rancher to /usr/bin/rancher。这样好处可以在其它地方都可以执行rancher命令行。如果没有安装kubectl,会提示你安装。安装方式使用yum方式,命令如下 cat <<EOF > /etc/yum.repos.d/kubernetes.repo [kubernetes] name=Kubernetes baseurl=https://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64 enabled=1 gpgcheck=1 repo_gpgcheck=1 gpgkey=https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg https://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg EOF 软件安装源输入后就可以使用yum install kubectl安装了。 来源: CSDN 作者: 互联网行者 链接: https://blog.csdn.net

how do I enable mount propagation in Rancher - Kubernetes feature gates?

感情迁移 提交于 2020-01-16 06:31:48
问题 How can I enable feature gates for my cluster in Rancher 2.0? I am in need of enabling the --feature-gates MountPropagation=true . This will enable me to use storage solutions like StorageOS, CephFS, etc There are 2 use cases here : If the Rancher is setup already and running? If I am setting up the cluster from scratch? 回答1: Hello and hope this helps someone, After much googling and help from awesome people at Rancher I got the solution for this. Here is what you can do to set the feature

how do I enable mount propagation in Rancher - Kubernetes feature gates?

左心房为你撑大大i 提交于 2020-01-16 06:31:09
问题 How can I enable feature gates for my cluster in Rancher 2.0? I am in need of enabling the --feature-gates MountPropagation=true . This will enable me to use storage solutions like StorageOS, CephFS, etc There are 2 use cases here : If the Rancher is setup already and running? If I am setting up the cluster from scratch? 回答1: Hello and hope this helps someone, After much googling and help from awesome people at Rancher I got the solution for this. Here is what you can do to set the feature

k8s

烂漫一生 提交于 2020-01-16 02:31:11
安装rancher以及使用rancher倒入kubernetes集群和添加及管理集群 https://www.cnblogs.com/linyouyi/p/11056053.html rancher流水线配置 https://blog.51cto.com/14268033/2458642?source=dra 通过Rancher从Harbor私有仓库拉取镜像 https://www.jianshu.com/p/5d41d3895360 来源: CSDN 作者: zhangersong 链接: https://blog.csdn.net/zhangersong/article/details/103983347

VM中Ubuntu18上Docker+Rancher的集群化部署管理

对着背影说爱祢 提交于 2020-01-15 04:05:48
1.vm 安装 ubuntu-18.04.3-live-server-amd64.isccker ( 安装参考 ) 注意更换源: http://mirrors.163.com/ubuntu/ date -R ---- 查看时间 sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime ----------- 网上同步时间 1. 安装ntpdate工具 # sudo apt-get install ntpdate 2. 设置系统时间与网络时间同步 # ntpdate cn.pool.ntp.org 3. 将系统时间写入硬件时间 # hwclock --systohc 2.安装 docker 注意:重启 ubuntu 更改 ip: ---- vm 网络改成桥接模式 sudo apt-get install docker.io -y sudo systemctl enable docker 常用命令: docker --version /etc/init.d/docker status 重启: systemctl daemon-reload sudo service docker start 3.安装Putty后,配置 docker 的镜像为阿里云镜像 cd /etc/docker vim daemon.json {