gitlab
大约 1 分钟
gitlab
helm repo add gitlab https://charts.gitlab.io/
helm repo update
安装
helm pull gitlab/gitlab --version 7.6.1
tar -zxvf gitlab-7.6.1.tgz
values修改
cat << EOF > gitlab-values.yaml
global:
common:
labels: {}
hosts:
domain: zili.work
https: false
externalIP: 192.168.2.149
ingress:
configureCertmanager: false
provider: nginx
annotations:
ingressClassName: nginx
enabled: true
path: /
pathType: Prefix
gitaly:
enabled: true
gitlab-runner:
install: false
nginx-ingress:
enabled: false
prometheus:
install: false
EOF
部署
helm upgrade --install gitlab . -f gitlab-values.yaml -n gitlab --create-namespace
Release "gitlab" does not exist. Installing it now.
NAME: gitlab
LAST DEPLOYED: Thu Dec 7 11:37:35 2023
NAMESPACE: gitlab
STATUS: deployed
REVISION: 1
NOTES:
=== CRITICAL
The following charts are included for evaluation purposes only. They will not be supported by GitLab Support
for production workloads. Use Cloud Native Hybrid deployments for production. For more information visit
https://docs.gitlab.com/charts/installation/index.html#use-the-reference-architectures.
- PostgreSQL
- Redis
- Gitaly
- MinIO
=== NOTICE
The minimum required version of PostgreSQL is now 13. See https://gitlab.com/gitlab-org/charts/gitlab/-/blob/master/doc/installation/upgrade.md for more details.
=== WARNING
Automatic TLS certificate generation with cert-manager is disabled.
One or more of the components does not have a TLS certificate Secret configured.
As a result, Self-signed certificates were generated for these components.
You may retrieve the CA root for these certificates from the `gitlab-wildcard-tls-ca` secret, via the following command. It can then be imported to a web browser or system store.
kubectl get secret gitlab-wildcard-tls-ca -ojsonpath='{.data.cfssl_ca}' | base64 --decode > gitlab.zili.work.ca.pem
If you do not wish to use self-signed certificates, please set the following properties:
- global.ingress.tls.secretName
OR all of:
- global.ingress.tls.enabled (set to `true`)
- gitlab.webservice.ingress.tls.secretName
- registry.ingress.tls.secretName
- minio.ingress.tls.secretName
- gitlab.kas.ingress.tls.secretName
Help us improve the installation experience, let us know how we did with a 1 minute survey:https://gitlab.fra1.qualtrics.com/jfe/form/SV_6kVqZANThUQ1bZb?installation=helm&release=16-6
获取root密码
kubectl get secret gitlab-gitlab-initial-root-password -ojsonpath='{.data.password}' -n gitlab | base64 --decode ; echo