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
b81c0d86
Commit
b81c0d86
authored
7 years ago
by
Brad Beam
Browse files
Options
Downloads
Patches
Plain Diff
Adding calico/node env vars for prometheus configuration
parent
f14f04c5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/network_plugin/calico/defaults/main.yml
+6
-0
6 additions, 0 deletions
roles/network_plugin/calico/defaults/main.yml
roles/network_plugin/calico/templates/calico-node.yml.j2
+8
-0
8 additions, 0 deletions
roles/network_plugin/calico/templates/calico-node.yml.j2
with
14 additions
and
0 deletions
roles/network_plugin/calico/defaults/main.yml
+
6
−
0
View file @
b81c0d86
...
...
@@ -31,6 +31,12 @@ calicoctl_cpu_limit: 100m
calicoctl_memory_requests
:
32M
calicoctl_cpu_requests
:
50m
# Enable Prometheus Metrics endpoint for felix
calico_felix_prometheusmetricsenabled
:
"
false"
calico_felix_prometheusmetricsport
:
9091
calico_felix_prometheusgometricsenabled
:
"
true"
calico_felix_prometheusprocessmetricsenabled
:
"
true"
# Should calico ignore kernel's RPF check setting,
# see https://github.com/projectcalico/felix/blob/ab8799eaea66627e5db7717e62fca61fd9c08646/python/calico/felix/config.py#L198
calico_node_ignorelooserpf
:
false
...
...
This diff is collapsed.
Click to expand it.
roles/network_plugin/calico/templates/calico-node.yml.j2
+
8
−
0
View file @
b81c0d86
...
...
@@ -82,6 +82,14 @@ spec:
- name: FELIX_IPINIPMTU
value: "{{ calico_mtu }}"
{% endif %}
- name: FELIX_PROMETHEUSMETRICSENABLED
value: "{{ calico_felix_prometheusmetricsenabled }}"
- name: FELIX_PROMETHEUSMETRICSPORT
value: "{{ calico_felix_prometheusmetricsport }}"
- name: FELIX_PROMETHEUSGOMETRICSENABLED
value: "{{ calico_felix_prometheusgometricsenabled }}"
- name: FELIX_PROMETHEUSPROCESSMETRICSENABLED
value: "{{ calico_felix_prometheusprocessmetricsenabled }}"
# Location of the CA certificate for etcd.
- name: ETCD_CA_CERT_FILE
valueFrom:
...
...
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