码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • 记录-gitlab-安装在k8s中的一些注意点


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

            1、首先需要创建一个ClusterIssuer

    1. apiVersion: cert-manager.io/v1
    2. kind: ClusterIssuer
    3. metadata:
    4. name: letsencrypt-staging
    5. spec:
    6. acme:
    7. # You must replace this email address with your own.
    8. # Let's Encrypt will use this to contact you about expiring
    9. # certificates, and issues related to your account.
    10. email: user@example.com
    11. server: https://acme-staging-v02.api.letsencrypt.org/directory
    12. privateKeySecretRef:
    13. # Secret resource that will be used to store the account's private key.
    14. name: example-issuer-account-key
    15. # Add a single challenge solver, HTTP01 using nginx

            #注意:

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

    --set certmanager-issuer.email=you@example.com

            privateKeySecretRef:

            只需要输入一个名称,他会自动创建一个这个名称的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.

                         

  • 相关阅读:
    C#爬虫项目实战:如何解决Instagram网站的封禁问题
    刷题学习记录(攻防世界)
    Ubuntu 系统安装 VS Code 并配置 C++ 环境
    【shell】交互式自动化执行命令
    【无标题】
    【通信】基于时间重新分配的多同步压缩变换附matlab代码
    封装react upload上传组件,允许Form与upload联动(组件独立已解耦)
    SpringCloud的新闻资讯项目02--- app端文章查看,静态化freemarker,分布式文件系统minIO
    SQL语法之DML、DQL和DCL语句
    在字节跳动和拼多多干了5年测试,熬夜总结出来的划水经验....
  • 原文地址:https://blog.csdn.net/weixin_46510209/article/details/136783273
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号