gitlab单独可以正常启动运行,当猪齿鱼服务全部搭建好后,进行gitlab与猪齿鱼框架整合的时候,报错500,请提供下解决方案。
执行kubectl get cm gitlab-cm -n c7n-system -o yaml后:
[root@hzero_dev3 ~]# kubectl get cm gitlab-cm -n c7n-system -o yaml
apiVersion: v1
data:
gitlab.rb: |
external_url ‘http://gitlab.master.org’
gitlab_rails[‘gitlab_shell_ssh_port’] = 32222
nginx[‘enable’] = true
gitlab_rails[‘time_zone’] = ‘Asia/Shanghai’
gitlab_rails[‘gitlab_default_can_create_group’] = true
gitlab_rails[‘gitlab_username_changing_enabled’] = false
gitlab_rails[‘gitlab_default_theme’] = 1
gitlab_rails[‘omniauth_enabled’] = true
# gitlab_rails[‘omniauth_allow_single_sign_on’] = [‘oauth2_generic’]
gitlab_rails[‘omniauth_auto_sign_in_with_provider’] = ‘oauth2_generic’
gitlab_rails[‘omniauth_block_auto_created_users’] = false
gitlab_rails[‘omniauth_providers’] = [
{
‘name’ => ‘oauth2_generic’,
‘app_id’ => ‘gitlab’,
‘app_secret’ => ‘secret’,
‘args’ => {
client_options: {
‘site’ => ‘http://gateway.master.org’,
‘user_info_url’ => ‘/oauth/api/user’,
‘authorize_url’=> ‘/oauth/oauth/authorize’,
‘token_url’=> ‘/oauth/oauth/token’
},
user_response_structure: {
root_path: [‘userAuthentication’,‘principal’],
id_path: [‘userAuthentication’,‘principal’,‘userId’],
attributes: {
nickname: ‘username’,
name: ‘username’,
email: ‘email’
}
},
name: ‘oauth2_generic’,
strategy_class: “OmniAuth::Strategies::OAuth2Generic”,
redirect_url: “http://gitlab.master.org/users/auth/oauth2_generic/callback”
}
}
]
postgresql[‘enable’] = false
postgres_exporter[‘enable’] = false
gitlab_rails[‘db_adapter’] = “postgresql”
gitlab_rails[‘db_encoding’] = “utf8”
gitlab_rails[‘db_host’] = “gitlab-postgresql-postgresql.c7n-system.svc”
gitlab_rails[‘db_port’] = 5432
gitlab_rails[‘db_database’] = “gitlabhq_production”
gitlab_rails[‘db_username’] = “postgres”
gitlab_rails[‘db_password’] = “password”
redis[‘enable’] = false
redis_exporter[‘enable’] = false
gitlab_rails[‘redis_host’] = “gitlab-redis.c7n-system.svc”
gitlab_rails[‘redis_port’] = 6379
gitlab_rails[‘smtp_enable’] = false
prometheus[‘enable’] = false
node_exporter[‘enable’] = false
gitlab_monitor[‘listen_address’] = ‘0.0.0.0’
gitlab_monitor[‘listen_port’] = “9168”
gitaly[‘prometheus_listen_addr’] = “0.0.0.0:9236”
unicorn[‘worker_processes’] = 3
unicorn[‘worker_timeout’] = 60
gitlab_shell[‘secret_token’] = ‘fbfb19c355066a9afb030992231c4a363357f77345edd0f2e772359e5be59b02538e1fa6cae8f93f7d23355341cea2b93600dab6d6c3edcdced558fc6d739860’
gitlab_rails[‘otp_key_base’] = ‘b719fe119132c7810908bba18315259ed12888d4f5ee5430c42a776d840a396799b0a5ef0a801348c8a357f07aa72bbd58e25a84b8f247a25c72f539c7a6c5fa’
gitlab_rails[‘secret_key_base’] = ‘6e657410d57c71b4fc3ed0d694e7842b1895a8b401d812c17fe61caf95b48a6d703cb53c112bc01ebd197a85da81b18e29682040e99b4f26594772a4a2c98c6d’
gitlab_rails[‘db_key_base’] = ‘bf2e47b68d6cafaef1d767e628b619365becf27571e10f196f98dc85e7771042b9203199d39aff91fcb6837c8ed83f2a912b278da50999bb11a2fbc0fba52964’
kind: ConfigMap
metadata:
creationTimestamp: “2020-01-20T10:58:57Z”
name: gitlab-cm
namespace: c7n-system
resourceVersion: “2992865”
selfLink: /api/v1/namespaces/c7n-system/configmaps/gitlab-cm
uid: 8c9e9727-3182-4c63-bf76-e14542568557