Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
23b38338
Commit
23b38338
authored
7 years ago
by
Vladimir Vasilkin
Browse files
Options
Downloads
Patches
Plain Diff
running on the first master only.
parent
19e1b11d
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/kubernetes-apps/metrics/tasks/main.yml
+10
-2
10 additions, 2 deletions
roles/kubernetes-apps/metrics/tasks/main.yml
with
10 additions
and
2 deletions
roles/kubernetes-apps/metrics/tasks/main.yml
+
10
−
2
View file @
23b38338
---
-
name
:
Metrics | Make sure Helm is installed
command
:
"
{{
bin_dir
}}/helm
version"
when
:
-
inventory_hostname == groups['kube-master'][0]
-
name
:
Metrics | Add coreos repo
command
:
"
{{
bin_dir
}}/helm
repo
add
coreos
https://s3-eu-west-1.amazonaws.com/coreos-charts/stable/"
when
:
-
inventory_hostname == groups['kube-master'][0]
run_once
:
true
-
name
:
Metrics | Install Prometheus Operator
command
:
"
{{
bin_dir
}}/helm
upgrade
--install
prometheus-operator
coreos/prometheus-operator
--namespace
{{
monitoring_namespace
}}"
when
:
prometheus_operator_enabled
when
:
-
prometheus_operator_enabled
-
inventory_hostname == groups['kube-master'][0]
run_once
:
true
-
name
:
Metrics | Install K8s cluster metrics
command
:
"
{{
bin_dir
}}/helm
upgrade
--install
kube-prometheus
coreos/kube-prometheus
--namespace
{{
monitoring_namespace
}}"
when
:
k8s_metrics_enabled
when
:
-
k8s_metrics_enabled
-
inventory_hostname == groups['kube-master'][0]
run_once
:
true
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