Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
system-charts
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rancher商店
system-charts
Commits
d0eb9bfe
Commit
d0eb9bfe
authored
Dec 12, 2019
by
Erik Kristensen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
thanos support
parent
b95f71c8
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
71 additions
and
5 deletions
+71
-5
prometheus.yaml
...toring/v0.0.7/charts/prometheus/templates/prometheus.yaml
+9
-1
secrets.yaml
...onitoring/v0.0.7/charts/prometheus/templates/secrets.yaml
+17
-2
service.yaml
...onitoring/v0.0.7/charts/prometheus/templates/service.yaml
+30
-2
values.yaml
...s/rancher-monitoring/v0.0.7/charts/prometheus/values.yaml
+6
-0
_helpers.tpl
charts/rancher-monitoring/v0.0.7/templates/_helpers.tpl
+4
-0
values.yaml
charts/rancher-monitoring/v0.0.7/values.yaml
+5
-0
No files found.
charts/rancher-monitoring/v0.0.7/charts/prometheus/templates/prometheus.yaml
View file @
d0eb9bfe
...
...
@@ -26,7 +26,7 @@ spec:
image
:
{{
template "system_default_registry" .
}}{{
.Values.image.proxy.repository
}}
:{{ .Values.image.proxy.tag }}
ports
:
-
containerPort
:
8080
name
:
http
name
:
nginx-
http
protocol
:
TCP
{{
- if and .Values.resources .Values.resources.proxy
}}
resources
:
...
...
@@ -108,6 +108,14 @@ spec:
{{
$key
}}:
{{
$value | quote
}}
{{
- end
}}
{{
- end
}}
{{
- if .Values.thanos.enabled
}}
thanos
:
baseImage
:
{{
template "system_default_registry" .
}}{{
.Values.image.thanos.repository
}}
version
:
{{
.Values.image.thanos.tag
}}
objectStorageConfig
:
key
:
thanos.yaml
name
:
{{
template "app.thanos.fullname" .
}}
{{
- end
}}
nodeSelector
:
{{
- include "linux-node-selector" . | nindent 4
}}
{{
- range .Values.nodeSelectors
}}
...
...
charts/rancher-monitoring/v0.0.7/charts/prometheus/templates/secrets.yaml
View file @
d0eb9bfe
...
...
@@ -25,4 +25,20 @@ metadata:
name
:
{{
template "app.fullname" .
}}
-additional-alertmanager-configs
stringData
:
additional-alertmanager-configs.yaml
:
{{
template "additional-alertmanager-configs.yaml" .
}}
{{
- end
}}
\ No newline at end of file
{{
- end
}}
{{
- if .Values.thanos.enabled
}}
---
apiVersion
:
v1
kind
:
Secret
metadata
:
name
:
{{
template "app.thanos.fullname" .
}}
labels
:
app
:
{{
template "app.name" .
}}
chart
:
{{
template "app.version" .
}}
heritage
:
{{
.Release.Service
}}
release
:
{{
.Release.Name
}}
stringData
:
thanos.yaml
:
|-
{{
toYaml .Values.thanos.objectConfig | indent 6
}}
{{
-end
}}
charts/rancher-monitoring/v0.0.7/charts/prometheus/templates/service.yaml
View file @
d0eb9bfe
...
...
@@ -16,6 +16,34 @@ spec:
chart
:
{{
template "app.version" .
}}
release
:
{{
.Release.Name
}}
ports
:
-
name
:
http
-
name
:
nginx-
http
port
:
80
targetPort
:
http
targetPort
:
nginx-http
{{
- if .Values.thanos.enabled
}}
---
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
access-thanos
labels
:
app
:
{{
template "app.name" .
}}
chart
:
{{
template "app.version" .
}}
heritage
:
{{
.Release.Service
}}
release
:
{{
.Release.Name
}}
kubernetes.io/cluster-service
:
"
true"
spec
:
type
:
ClusterIP
sessionAffinity
:
ClientIP
selector
:
app
:
{{
template "app.name" .
}}
chart
:
{{
template "app.version" .
}}
release
:
{{
.Release.Name
}}
ports
:
-
name
:
thanos-grpc
port
:
10901
targetPort
:
10901
-
name
:
thanos-http
port
:
10902
targetPort
:
10902
{{
- end
}}
charts/rancher-monitoring/v0.0.7/charts/prometheus/values.yaml
View file @
d0eb9bfe
...
...
@@ -75,3 +75,9 @@ additionalAlertManagerConfigs: []
istioMonitoring
:
enabled
:
true
namespace
:
istio-system
thanos
:
enabled
:
false
## ObjectStoreConfig
## Ref: https://github.com/thanos-io/thanos/blob/master/docs/storage.md
objectConfig
:
{}
charts/rancher-monitoring/v0.0.7/templates/_helpers.tpl
View file @
d0eb9bfe
...
...
@@ -56,6 +56,10 @@
{{- printf "%s-%s-cleanup" $name .Release.Name -}}
{{- end -}}
{{- define "app.thanos.fullname" -}}
{{- $name := include "app.name" . -}}
{{- printf "%s-%s-thanos" $name .Release.Name -}}
{{- end -}}
{{- define "kube_version" -}}
{{- printf "%s.%s" .Capabilities.KubeVersion.Major .Capabilities.KubeVersion.Minor -}}
...
...
charts/rancher-monitoring/v0.0.7/values.yaml
View file @
d0eb9bfe
...
...
@@ -317,6 +317,9 @@ prometheus:
proxy
:
repository
:
rancher/nginx
tag
:
1.17.4-alpine
thanos
:
repository
:
thanosio/thanos
tag
:
v0.9.0
nodeSelectors
:
[]
resources
:
core
:
...
...
@@ -371,6 +374,8 @@ prometheus:
clusterDisplayName
:
"
"
cluster
:
alertManagerNamespace
:
"
"
thanos
:
enabled
:
false
global
:
systemDefaultRegistry
:
"
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment