k8s1.22部署gitlab对接keycloak

添加 gitlab repo, 下载 chart 包

helm repo add gitlab https://charts.gitlab.io/
helm repo update
helm pull gitlab/gitlab

查看 values.yaml 及依赖的 requirements.yaml相关参数

values.yaml

requirements.yaml

keycloak 添加 giltab client

添加gitab 对接keycloak 使用 secret

创建 provider文件

name: openid_connect
label: keycloak
args:
  name: "openid_connect"
  scope: ["openid","profile",]
  response_type:  "code"
  issuer: "https://sso.example.com/auth/realms/oc"
  client_auth_method: "query"
  uid_field: "preferred_username"
  send_scope_to_token_endpoint: false
  discovery: true
  client_options:
    identifier: "gitlab-92250"
    secret: "<凭证>"
    redirect_uri: "https://gitlab-apps92250.example.com/users/auth/openid_connect/callback"

创建gitlab-keycloak-oauth2-secret secret

创建外部redis secret

创建 values.yaml

执行安装gitlab

参考

https://github.com/paradeum-team/operator-env/blob/main/gitlab-cicd/k8s1.20%E4%BD%BF%E7%94%A8helm%E9%83%A8%E7%BD%B2gitlab.md

https://docs.gitlab.com/ee/

https://docs.gitlab.com/ee/ci/ci_cd_for_external_repos/

https://docs.gitlab.com/charts/charts/globals.html#configure-oauth-settings

https://docs.gitlab.com/ee/administration/auth/oidc.html

https://github.com/DvcLAB/DvcLAB/issues/33

https://fswb-documentation.knowis.net/1.0/Installation/content/post_install_configuration.html

Last updated