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
029be1e8
Unverified
Commit
029be1e8
authored
Dec 18, 2019
by
Denise
Committed by
GitHub
Dec 18, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #95 from ekristen/feature/thanos-support
Feature: thanos support
parents
39571689
474375ed
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 @
029be1e8
...
@@ -26,7 +26,7 @@ spec:
...
@@ -26,7 +26,7 @@ spec:
image
:
{{
template "system_default_registry" .
}}{{
.Values.image.proxy.repository
}}
:{{ .Values.image.proxy.tag }}
image
:
{{
template "system_default_registry" .
}}{{
.Values.image.proxy.repository
}}
:{{ .Values.image.proxy.tag }}
ports
:
ports
:
-
containerPort
:
8080
-
containerPort
:
8080
name
:
http
name
:
nginx-
http
protocol
:
TCP
protocol
:
TCP
{{
- if and .Values.resources .Values.resources.proxy
}}
{{
- if and .Values.resources .Values.resources.proxy
}}
resources
:
resources
:
...
@@ -108,6 +108,14 @@ spec:
...
@@ -108,6 +108,14 @@ spec:
{{
$key
}}:
{{
$value | quote
}}
{{
$key
}}:
{{
$value | quote
}}
{{
- end
}}
{{
- end
}}
{{
- 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
:
nodeSelector
:
{{
- include "linux-node-selector" . | nindent 4
}}
{{
- include "linux-node-selector" . | nindent 4
}}
{{
- range .Values.nodeSelectors
}}
{{
- range .Values.nodeSelectors
}}
...
...
charts/rancher-monitoring/v0.0.7/charts/prometheus/templates/secrets.yaml
View file @
029be1e8
...
@@ -25,4 +25,20 @@ metadata:
...
@@ -25,4 +25,20 @@ metadata:
name
:
{{
template "app.fullname" .
}}
-additional-alertmanager-configs
name
:
{{
template "app.fullname" .
}}
-additional-alertmanager-configs
stringData
:
stringData
:
additional-alertmanager-configs.yaml
:
{{
template "additional-alertmanager-configs.yaml" .
}}
additional-alertmanager-configs.yaml
:
{{
template "additional-alertmanager-configs.yaml" .
}}
{{
- end
}}
{{
- end
}}
\ No newline at end of file
{{
- 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 @
029be1e8
...
@@ -16,6 +16,34 @@ spec:
...
@@ -16,6 +16,34 @@ spec:
chart
:
{{
template "app.version" .
}}
chart
:
{{
template "app.version" .
}}
release
:
{{
.Release.Name
}}
release
:
{{
.Release.Name
}}
ports
:
ports
:
-
name
:
http
-
name
:
nginx-
http
port
:
80
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 @
029be1e8
...
@@ -75,3 +75,9 @@ additionalAlertManagerConfigs: []
...
@@ -75,3 +75,9 @@ additionalAlertManagerConfigs: []
istioMonitoring
:
istioMonitoring
:
enabled
:
true
enabled
:
true
namespace
:
istio-system
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 @
029be1e8
...
@@ -56,6 +56,10 @@
...
@@ -56,6 +56,10 @@
{{- printf "%s-%s-cleanup" $name .Release.Name -}}
{{- printf "%s-%s-cleanup" $name .Release.Name -}}
{{- end -}}
{{- end -}}
{{- define "app.thanos.fullname" -}}
{{- $name := include "app.name" . -}}
{{- printf "%s-%s-thanos" $name .Release.Name -}}
{{- end -}}
{{- define "kube_version" -}}
{{- define "kube_version" -}}
{{- printf "%s.%s" .Capabilities.KubeVersion.Major .Capabilities.KubeVersion.Minor -}}
{{- printf "%s.%s" .Capabilities.KubeVersion.Major .Capabilities.KubeVersion.Minor -}}
...
...
charts/rancher-monitoring/v0.0.7/values.yaml
View file @
029be1e8
...
@@ -317,6 +317,9 @@ prometheus:
...
@@ -317,6 +317,9 @@ prometheus:
proxy
:
proxy
:
repository
:
rancher/nginx
repository
:
rancher/nginx
tag
:
1.17.4-alpine
tag
:
1.17.4-alpine
thanos
:
repository
:
rancher/thanos
tag
:
v0.9.0
nodeSelectors
:
[]
nodeSelectors
:
[]
resources
:
resources
:
core
:
core
:
...
@@ -371,6 +374,8 @@ prometheus:
...
@@ -371,6 +374,8 @@ prometheus:
clusterDisplayName
:
"
"
clusterDisplayName
:
"
"
cluster
:
cluster
:
alertManagerNamespace
:
"
"
alertManagerNamespace
:
"
"
thanos
:
enabled
:
false
global
:
global
:
systemDefaultRegistry
:
"
"
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