2021-07-19 为prometheus添加k8s集群外部监控

@[TOC] prometheus添加k8s集群外部监控

使用场景

生产环境中Harbor部署在k8s集群外,开启Harbor-export 使用k8s集群中的prometheus做监控。

补充一下harbor的安装

说一下坑点:

  1. 设置中无法切换LDAP ,How to change auth mode when the auth_mode is not editable?;
docker exec -it harbor-db bash
psql -U postgres
\c registry
select * from harbor_user;
delete from harbor_user where user_id > 2;

  1. 忘记admin密码,How to reset admin password?;
docker exec -it harbor-db
psql -U postgres
\c registry
update harbor_user set salt='', password='' where user_id = 1; 
##
docker-compose down -v
docker-compose up -d

  1. LDAP UID 修改后无法登陆,When LDAP UID setting is changed, some LDAP user can not login
docker exec -it harbor-db bash
psql -U postgres
\c registry
select * from harbor_user;
delete from harbor_user where user_id > 2;

  1. How to add a certificate for the LDAP server?
[A] After installed the Harbor, there is a directory under common/config/shared/trust-certificates Copy the LDAP certificate, for example, ldap_ca.crt to this directory and restart the Harbor, The certificate is added to the trust store of the core container, and then you could enable “Verify Cert” in the LDAP configuration.

k8s集群里的prometheus监控集群外面Harbor


                
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值