UNCLASSIFIED - NO CUI
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bigbang
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Big Bang
bigbang
Commits
78f9fa69
Commit
78f9fa69
authored
2 years ago
by
Micah Nagel
Committed by
Ryan Garcia
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Monitoring mTLS / Prometheus mTLS Scraping
parent
43d35393
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1900
Monitoring mTLS / Prometheus mTLS Scraping
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
chart/templates/monitoring/values.yaml
+56
-14
56 additions, 14 deletions
chart/templates/monitoring/values.yaml
chart/values.yaml
+1
-1
1 addition, 1 deletion
chart/values.yaml
with
57 additions
and
15 deletions
chart/templates/monitoring/values.yaml
+
56
−
14
View file @
78f9fa69
...
...
@@ -81,6 +81,7 @@ alertmanager:
{{
include "istioAnnotation" .
}}
{{
- end
}}
{{
- end
}}
prometheus
:
prometheusSpec
:
# The operator performs a strategic merge to add our imagePullPolicy definition to the default containers
...
...
@@ -107,15 +108,31 @@ prometheus:
annotations
:
{{
- if $istioInjection
}}
{{
include "istioAnnotation" .
}}
traffic.sidecar.istio.io/includeOutboundIPRanges
:
"
"
proxy.istio.io/config
:
|
proxyMetadata:
OUTPUT_CERTS: /etc/istio-output-certs
sidecar.istio.io/userVolumeMount
:
'
[{"name":
"istio-certs",
"mountPath":
"/etc/istio-output-certs"}]'
{{
- end
}}
{{
- if .Values.addons.vault.enabled
}}
vault.hashicorp.com/agent-inject
:
"
true"
vault.hashicorp.com/agent-init-first
:
"
true"
vault.hashicorp.com/agent-inject-token
:
"
true"
vault.hashicorp.com/agent-inject-token
:
"
true"
vault.hashicorp.com/role
:
"
prometheus"
{{
- end
}}
{{
- end
}}
{{
- end
}}
{{
- end
}}
{{
- if $istioInjection
}}
# Add volume/mount for Istio certs for mTLS scraping
volumes
:
-
emptyDir
:
medium
:
Memory
name
:
istio-certs
volumeMounts
:
-
mountPath
:
/etc/prom-certs/
name
:
istio-certs
{{
- end
}}
anchore
:
enabled
:
{{
.Values.addons.anchore.enabled
}}
...
...
@@ -129,7 +146,7 @@ loki:
{{
- if or $gitlabRedis $authserviceRedisEnabled $redisDatasource
}}
redis
:
enabled
:
true
{{
- end
}}
{{
- end
}}
vault
:
enabled
:
{{
.Values.addons.vault.enabled
}}
...
...
@@ -146,7 +163,7 @@ grafana:
{{
- if $gitlabRedis
}}
envFromSecret
:
grafana-env-secret
{{
- end
}}
{{
- end
}}
image
:
pullPolicy
:
{{
.Values.imagePullPolicy
}}
...
...
@@ -160,7 +177,7 @@ grafana:
{{
include "istioAnnotation" .
}}
{{
- if $gitlabRedis
}}
checksum/gitlabRedisPassword
:
{{
sha256sum .Values.addons.gitlab.redis.password
}}
{{
- end
}}
{{
- end
}}
{{
- end
}}
{{
- if or .Values.loki.enabled .Values.tempo.enabled $gitlabRedis $authserviceRedisEnabled .Values.addons.argocd.enabled
}}
...
...
@@ -171,19 +188,19 @@ grafana:
access
:
proxy
url
:
argocd-argocd-redis-bb-master.argocd.svc.cluster.local:6379
jsonData
:
client
:
standalone
client
:
standalone
-
name
:
Argo Headless
type
:
redis-datasource
access
:
proxy
url
:
argocd-argocd-redis-bb-headless.argocd.svc.cluster.local:6379
jsonData
:
client
:
standalone
client
:
standalone
-
name
:
Argo Replicas
type
:
redis-datasource
access
:
proxy
url
:
argocd-argocd-redis-bb-replicas.argocd.svc.cluster.local:6379
jsonData
:
client
:
standalone
client
:
standalone
{{
- end
}}
{{
- if $authserviceRedisEnabled
}}
-
name
:
AuthService Master
...
...
@@ -191,19 +208,19 @@ grafana:
access
:
proxy
url
:
authservice-authservice-redis-bb-master.authservice.svc.cluster.local:6379
jsonData
:
client
:
standalone
client
:
standalone
-
name
:
AuthService Headless
type
:
redis-datasource
access
:
proxy
url
:
authservice-authservice-redis-bb-headless.authservice.svc.cluster.local:6379
jsonData
:
client
:
standalone
client
:
standalone
-
name
:
AuthService Replicas
type
:
redis-datasource
access
:
proxy
url
:
authservice-authservice-redis-bb-replicas.authservice.svc.cluster.local:6379
jsonData
:
client
:
standalone
client
:
standalone
{{
- end
}}
{{
- if $gitlabRedis
}}
-
name
:
GitLab
...
...
@@ -211,7 +228,7 @@ grafana:
access
:
proxy
url
:
gitlab-redis-master.gitlab.svc.cluster.local:6379
jsonData
:
client
:
standalone
client
:
standalone
secureJsonData
:
password
:
$GITLAB_REDIS_PASSWORD
{{
- end
}}
...
...
@@ -292,6 +309,16 @@ grafana:
{{
- list "tls_client_key" .tls_client_key | include "bigbang.addValueIfSet" | indent 6
}}
{{
- end
}}
{{
- if $istioInjection
}}
serviceMonitor
:
scheme
:
https
tlsConfig
:
caFile
:
/etc/prom-certs/root-cert.pem
certFile
:
/etc/prom-certs/cert-chain.pem
keyFile
:
/etc/prom-certs/key.pem
insecureSkipVerify
:
true
# Prometheus does not support Istio security naming, thus skip verifying target pod certificate
{{
- end
}}
prometheus-node-exporter
:
image
:
pullPolicy
:
{{
.Values.imagePullPolicy
}}
...
...
@@ -302,6 +329,14 @@ prometheus-node-exporter:
{{
- if $istioInjection
}}
podAnnotations
:
{{
include "istioAnnotation" .
}}
prometheus
:
monitor
:
scheme
:
https
tlsConfig
:
caFile
:
/etc/prom-certs/root-cert.pem
certFile
:
/etc/prom-certs/cert-chain.pem
keyFile
:
/etc/prom-certs/key.pem
insecureSkipVerify
:
true
# Prometheus does not support Istio security naming, thus skip verifying target pod certificate
{{
- end
}}
{{
- if .Values.openshift
}}
...
...
@@ -319,6 +354,14 @@ kube-state-metrics:
{{
- if $istioInjection
}}
podAnnotations
:
{{
include "istioAnnotation" .
}}
prometheus
:
monitor
:
scheme
:
https
tlsConfig
:
caFile
:
/etc/prom-certs/root-cert.pem
certFile
:
/etc/prom-certs/cert-chain.pem
keyFile
:
/etc/prom-certs/key.pem
insecureSkipVerify
:
true
# Prometheus does not support Istio security naming, thus skip verifying target pod certificate
{{
- end
}}
prometheusOperator
:
...
...
@@ -331,9 +374,8 @@ prometheusOperator:
patch
:
image
:
pullPolicy
:
{{
.Values.imagePullPolicy
}}
{{
- if $istioInjection
}}
podAnnotations
:
{{
include "istioAnnotation" .
}}
{{
- end
}}
{{
- end
-
}}
{{
- end
}}
This diff is collapsed.
Click to expand it.
chart/values.yaml
+
1
−
1
View file @
78f9fa69
...
...
@@ -612,7 +612,7 @@ monitoring:
git
:
repo
:
https://repo1.dso.mil/platform-one/big-bang/apps/core/monitoring.git
path
:
"
./chart"
tag
:
"
39.2.1-bb.
2
"
tag
:
"
39.2.1-bb.
5
"
# -- Flux reconciliation overrides specifically for the Monitoring Package
flux
:
...
...
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