记录-gitlab-安装在k8s中的一些注意点

一、已有cert-manager的时候如何配置?

1、首先需要创建一个ClusterIssuer

复制代码
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
  name: letsencrypt-staging
spec:
  acme:
    # You must replace this email address with your own.
    # Let's Encrypt will use this to contact you about expiring
    # certificates, and issues related to your account.
    email: user@example.com
    server: https://acme-staging-v02.api.letsencrypt.org/directory
    privateKeySecretRef:
      # Secret resource that will be used to store the account's private key.
      name: example-issuer-account-key
    # Add a single challenge solver, HTTP01 using nginx

#注意:

email:对应gitlab文档中提到的。

复制代码
--set certmanager-issuer.email=you@example.com

privateKeySecretRef: <secret-name>

只需要输入一个名称,他会自动创建一个这个名称的tls证书的secret.

二、在通过helm安装gitlab的时候的values.yaml

1.values.yaml中的几点需要注意

1.如果你自己的集群有cert-manager或者Prometheus,则需要将instll改为false.

不然安装会报错。

2.安装执行的cli命令需要注意

1.需要加--namespace,不然他会默认安装在default 的命名空间下,后期管理非常麻烦。

2.如果你是通过ingress发布你的gitlab-web,那么不需要安装官方的命令安装。

复制代码
helm upgrade --install gitlab gitlab-jh/gitlab --namespace gitlab  --set global.hosts.domain=gitlab.my.com    --set certmanager-issuer.email=ca@gitlab.com -f ./values.yaml

只需要

--set global.hosts.domain=gitlab.my.com \

--set certmanager-issuer.email=ca@gitlab.com

即可。

3.还有一点你如果你在修改values.yaml的domain时,要注意。

他默认会添加一个gitlab的前缀,非常烦。我以为我的ingress的域名为gitlab.my.com,结果自动的为gitlab.gitlab.my.com.

相关推荐
没有bug.的程序员21 小时前
微服务基础设施清单:必须、应该、可以、无需的四级分类指南
java·jvm·微服务·云原生·容器·架构
weixin_462446231 天前
【实战原创】Docker 清理指南:以 Coze Studio 为例的资源保留与清理实践(非万能方案)
docker·容器·eureka
hkNaruto1 天前
【docker】docker exec -it 报错 open /dev/pts/0: operation not permitted
运维·docker·容器
一个想打拳的程序员1 天前
无需复杂配置!用%20docker-webtop%20打造跨设备通用%20Linux%20桌面,加载cpolar远程访问就这么简单
java·人工智能·docker·容器
Wang's Blog1 天前
RabbitMQ: 解析Kubernetes原理与高可用集群部署实践
分布式·kubernetes·rabbitmq
山沐与山1 天前
【K8S】Kubernetes架构与原理详解
容器·架构·kubernetes
小陈运维1 天前
升级二进制kubernetes集群(小版本升级)
kubernetes
小陈运维1 天前
二进制安装Kubernetes(k8s)v1.35.0
kubernetes
山沐与山1 天前
【Docker】Docker容器技术详解
运维·docker·容器
互联网哪些事情1 天前
Docker 容器化部署宝塔 Linux 面板
linux·docker·容器·宝塔云服务器