上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: spec: minReadySeconds: 600 progressDeadlineSeconds: 601 strategy: rollingUpdate: maxSurge: 1 maxUnavailable: 1 type: RollingUpdate 在deployment中添加以上信息, 阅读全文
posted @ 2021-03-17 19:58 Normanlin 阅读(324) 评论(0) 推荐(0) 编辑
摘要: location ~ ^/h5/search_v7/ { if ( $http_user_agent ~* "abc" ){ rewrite ^(.*) http://abcdef/h5/search_mi permanent; } } 我们需要将path为 h5/search_v7/替换为h5/s 阅读全文
posted @ 2021-03-15 17:54 Normanlin 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 我们知道k8s访问内部域名可以使用 pod名.namespace.svc.cluster.local。但有时需要往pod增加自定义的host解析。有一个参数可以支持,在deployment.spec.spec中添加: hostAliases: - hostnames: - xxxx.xunlei.c 阅读全文
posted @ 2021-03-10 11:47 Normanlin 阅读(1244) 评论(0) 推荐(0) 编辑
摘要: Blackbox黑盒程序是prometheus用于tcp,http,icmp等协议监控站点存活的工具。下面提供部署方法: configmap: apiVersion: v1 kind: ConfigMap metadata: labels: app: blackbox-exporter name: 阅读全文
posted @ 2021-03-09 15:37 Normanlin 阅读(1895) 评论(0) 推荐(0) 编辑
摘要: 前提:Elasticsearch与kibana版本必须保持一致,logstach不要求。 版本:elasticsearch-6.4.3 kibana-6.4.3-linux-x86_64 logstash-7.10.0-linux-x86_64 部署elasticsearch: wget https 阅读全文
posted @ 2021-02-04 18:03 Normanlin 阅读(147) 评论(0) 推荐(0) 编辑
摘要: https://help.aliyun.com/document_detail/86552.html?spm=a2c4g.11186623.6.869.31792610fklXGC 阅读全文
posted @ 2021-02-04 17:02 Normanlin 阅读(92) 评论(0) 推荐(0) 编辑
摘要: kustomize 摘抄:kustomize能解决以下的痛点: 有一个统一的模板可以管理一个项目的 Kubernetes 部署结构。 有某种方式可以管理不同环境之间微小的差异。 每次更新基本就是修改镜像的标签然后部署,那么有没有什么简单的办法实现之,而不是让我每次都去修改 YAML 文件。 一般应用 阅读全文
posted @ 2021-01-27 22:08 Normanlin 阅读(5466) 评论(1) 推荐(0) 编辑
摘要: argocd与gitlab结合在一起,通过检测gitlab仓库状态判断服务是否有更新。 配置服务步骤: 1.创建仓库,以busybox为例,创建仓库后创建一个文件夹release,release中放入发布所需的yaml文件,点击clone,复制仓库链接。 2.点击argocd--Repositori 阅读全文
posted @ 2021-01-27 14:22 Normanlin 阅读(457) 评论(0) 推荐(0) 编辑
摘要: 在argocd中添加k8s集群无法在web控制台操作。默认情况下只能添加argocd所在的K8S集群。 如果要多集群管理支持,需要借助命令行处理。 首先登录 argocd-cli login argocd控制台ip。 1.首先拿到要添加就集群的kubeconfig文件,目标集群需要添加argocd所 阅读全文
posted @ 2021-01-27 11:43 Normanlin 阅读(2811) 评论(3) 推荐(0) 编辑
摘要: 加用户步骤:修改argocd-cm,添加datadata: accounts.linyanzhi: login /添加linyanzhi登录账号 # disables user. User is enabled by default accounts.linyanzhi.enabled: "enab 阅读全文
posted @ 2021-01-26 15:27 Normanlin 阅读(3519) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 9 下一页