Skip to content
GitLab
Next
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
K
kubernetes-gitlab-demo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
GitLab.org
kubernetes-gitlab-demo
Commits
e7b0bcf3
There was an error fetching the commit references. Please try again later.
Commit
e7b0bcf3
authored
7 years ago
by
Joshua Lambert
Committed by
Mark Pundsack
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Clean up prometheus default flags, enable Prometheus integration by default.
parent
c70700f2
No related branches found
No related tags found
1 merge request
!30
Updates for 9.0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gitlab/gitlab-deployment.yml
+1
-6
1 addition, 6 deletions
gitlab/gitlab-deployment.yml
with
1 addition
and
6 deletions
gitlab/gitlab-deployment.yml
+
1
−
6
View file @
e7b0bcf3
...
...
@@ -129,23 +129,18 @@ spec:
gitlab_rails['registry_path'] = '/gitlab-registry'
gitlab_rails['trusted_proxies'] = ["10.0.0.0/8","172.16.0.0/12","192.168.0.0/16"]
prometheus['enable'] = true
prometheus['listen_address'] = '0.0.0.0:9090'
prometheus['monitor_kubernetes'] = true
node_exporter['enable'] = true
gitlab_monitor['enable'] = true
postgres_exporter['enable'] = true
postgres_exporter['env'] = {
'DATA_SOURCE_NAME' => "user=#{ENV['POSTGRES_USER']} host=gitlab-postgresql port=5432 dbname=#{ENV['POSTGRES_DB']} password=#{ENV['POSTGRES_PASSWORD']} sslmode=disable"
}
redis_exporter['enable'] = true
redis_exporter['flags'] = {
'redis.addr' => "gitlab-redis:6379",
}
-
name
:
GITLAB_POST_RECONFIGURE_SCRIPT
value
:
|
/opt/gitlab/bin/gitlab-rails runner -e production 'Doorkeeper::Application.where(uid: ENV["MATTERMOST_APP_UID"], secret: ENV["MATTERMOST_APP_SECRET"], redirect_uri: "#{ENV["GITLAB_MATTERMOST_EXTERNAL_SCHEME"]}://#{ENV["GITLAB_MATTERMOST_EXTERNAL_HOSTNAME"]}/signup/gitlab/complete\r\n#{ENV["GITLAB_MATTERMOST_EXTERNAL_SCHEME"]}://#{ENV["GITLAB_MATTERMOST_EXTERNAL_HOSTNAME"]}/login/gitlab/complete", name: "GitLab Mattermost").first_or_create;'
/opt/gitlab/bin/gitlab-rails runner -e production 'Doorkeeper::Application.where(uid: ENV["MATTERMOST_APP_UID"], secret: ENV["MATTERMOST_APP_SECRET"], redirect_uri: "#{ENV["GITLAB_MATTERMOST_EXTERNAL_SCHEME"]}://#{ENV["GITLAB_MATTERMOST_EXTERNAL_HOSTNAME"]}/signup/gitlab/complete\r\n#{ENV["GITLAB_MATTERMOST_EXTERNAL_SCHEME"]}://#{ENV["GITLAB_MATTERMOST_EXTERNAL_HOSTNAME"]}/login/gitlab/complete", name: "GitLab Mattermost").first_or_create;'
&& /opt/gitlab/bin/gitlab-rails runner -e production 'PrometheusService.where(template: true).first_or_create.update(active: true, properties: {"api_url"=>"http://localhost:9090"})'
ports
:
-
name
:
registry
containerPort
:
8105
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment