admin管理员组文章数量:1025270
I try to do a gitlab cluster with the official gitlab's helm repository for a school project.
I use the official documentation to create my gitlab cluster. .html
Here are my CLI commands I do to reproduce my problem:
sudo k3d cluster create gitlab
sudo kubectl create namespace gitlab
sudo helm repo add gitlab /
sudo helm repo update
sudo helm upgrade --install gitlab gitlab/gitlab --timeout 600s --set global.hosts.domain=example --set global.hosts.externalIP=10.10.10.10 --set [email protected] -n gitlab
When all is deployed:
With k9s (k9s is a terminal tool to easily manage the cluster) I port forward the service "gitlab-webservice-default".
Following the official documentation I write this to recover the initial root password :
sudo kubectl get secret gitlab-gitlab-initial-root-password -n gitlab -ojsonpath='{.data.password}' | base64 --decode ; echo
On the website localhost:8181 (working thanks of the port forwarding)
I enter as username : root
as password : the password I recovered previously
Then I got a 422 error page : "422: The change you requested was rejected Make sure you have access to the thing you tried to change.
Please contact your GitLab administrator if you think this is a mistake."
I don't know what I did wrong, any help would be appreciated :)
I try to do a gitlab cluster with the official gitlab's helm repository for a school project.
I use the official documentation to create my gitlab cluster. https://docs.gitlab/charts/installation/deployment.html
Here are my CLI commands I do to reproduce my problem:
sudo k3d cluster create gitlab
sudo kubectl create namespace gitlab
sudo helm repo add gitlab https://charts.gitlab.io/
sudo helm repo update
sudo helm upgrade --install gitlab gitlab/gitlab --timeout 600s --set global.hosts.domain=example --set global.hosts.externalIP=10.10.10.10 --set [email protected] -n gitlab
When all is deployed:
With k9s (k9s is a terminal tool to easily manage the cluster) I port forward the service "gitlab-webservice-default".
Following the official documentation I write this to recover the initial root password :
sudo kubectl get secret gitlab-gitlab-initial-root-password -n gitlab -ojsonpath='{.data.password}' | base64 --decode ; echo
On the website localhost:8181 (working thanks of the port forwarding)
I enter as username : root
as password : the password I recovered previously
Then I got a 422 error page : "422: The change you requested was rejected Make sure you have access to the thing you tried to change.
Please contact your GitLab administrator if you think this is a mistake."
I don't know what I did wrong, any help would be appreciated :)
Share Improve this question edited Nov 19, 2024 at 8:11 Rob 15.2k30 gold badges48 silver badges73 bronze badges asked Nov 18, 2024 at 13:24 JajaJaja 636 bronze badges1 Answer
Reset to default 0My guess is that port-forwarding the webservice allows me to connect to gitlab without using TLS, and gitlab may refuse my connection for this reason.
I retried to install gitlab with this updated values in the helm chart:
global:
hosts:
domain: localhost
https: false
ingress:
configureCertmanager: false
class: nginx
certmanager:
install: false
gitlab-runner:
install: false
Then it worked.
As I am studying, this configuration is ok for me.
I try to do a gitlab cluster with the official gitlab's helm repository for a school project.
I use the official documentation to create my gitlab cluster. .html
Here are my CLI commands I do to reproduce my problem:
sudo k3d cluster create gitlab
sudo kubectl create namespace gitlab
sudo helm repo add gitlab /
sudo helm repo update
sudo helm upgrade --install gitlab gitlab/gitlab --timeout 600s --set global.hosts.domain=example --set global.hosts.externalIP=10.10.10.10 --set [email protected] -n gitlab
When all is deployed:
With k9s (k9s is a terminal tool to easily manage the cluster) I port forward the service "gitlab-webservice-default".
Following the official documentation I write this to recover the initial root password :
sudo kubectl get secret gitlab-gitlab-initial-root-password -n gitlab -ojsonpath='{.data.password}' | base64 --decode ; echo
On the website localhost:8181 (working thanks of the port forwarding)
I enter as username : root
as password : the password I recovered previously
Then I got a 422 error page : "422: The change you requested was rejected Make sure you have access to the thing you tried to change.
Please contact your GitLab administrator if you think this is a mistake."
I don't know what I did wrong, any help would be appreciated :)
I try to do a gitlab cluster with the official gitlab's helm repository for a school project.
I use the official documentation to create my gitlab cluster. https://docs.gitlab/charts/installation/deployment.html
Here are my CLI commands I do to reproduce my problem:
sudo k3d cluster create gitlab
sudo kubectl create namespace gitlab
sudo helm repo add gitlab https://charts.gitlab.io/
sudo helm repo update
sudo helm upgrade --install gitlab gitlab/gitlab --timeout 600s --set global.hosts.domain=example --set global.hosts.externalIP=10.10.10.10 --set [email protected] -n gitlab
When all is deployed:
With k9s (k9s is a terminal tool to easily manage the cluster) I port forward the service "gitlab-webservice-default".
Following the official documentation I write this to recover the initial root password :
sudo kubectl get secret gitlab-gitlab-initial-root-password -n gitlab -ojsonpath='{.data.password}' | base64 --decode ; echo
On the website localhost:8181 (working thanks of the port forwarding)
I enter as username : root
as password : the password I recovered previously
Then I got a 422 error page : "422: The change you requested was rejected Make sure you have access to the thing you tried to change.
Please contact your GitLab administrator if you think this is a mistake."
I don't know what I did wrong, any help would be appreciated :)
Share Improve this question edited Nov 19, 2024 at 8:11 Rob 15.2k30 gold badges48 silver badges73 bronze badges asked Nov 18, 2024 at 13:24 JajaJaja 636 bronze badges1 Answer
Reset to default 0My guess is that port-forwarding the webservice allows me to connect to gitlab without using TLS, and gitlab may refuse my connection for this reason.
I retried to install gitlab with this updated values in the helm chart:
global:
hosts:
domain: localhost
https: false
ingress:
configureCertmanager: false
class: nginx
certmanager:
install: false
gitlab-runner:
install: false
Then it worked.
As I am studying, this configuration is ok for me.
本文标签: kubernetes helminitial root password doesn39t work for gitlabStack Overflow
版权声明:本文标题:kubernetes helm - initial root password doesn't work for gitlab - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745614588a2159210.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论