-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
nolte
committed
Nov 7, 2021
1 parent
4af2c7e
commit 642b4c3
Showing
6 changed files
with
139 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ | ||
# OWNERS file for Kubernetes | ||
OWNERS | ||
# helm-docs templates | ||
*.gotmpl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
apiVersion: v2 | ||
appVersion: v2.0.0 | ||
description: FritzBox Exporter | ||
name: fritz-exporter | ||
version: 0.0.1 | ||
kubeVersion: ">=1.16.0-0" | ||
keywords: | ||
- fritz-exporter | ||
- fritzbox | ||
home: https://github.com/k8s-at-home/charts/tree/master/charts/incubator/fritzbox-exporter | ||
sources: | ||
- https://github.com/pdreker/fritz_exporter | ||
maintainers: [] | ||
dependencies: | ||
- name: common | ||
repository: https://library-charts.k8s-at-home.com | ||
version: 4.0.1 | ||
- name: external-secrets-manifests | ||
version: 0.1.1 | ||
repository: https://nolte.github.io/helm-charts-repo/ | ||
alias: externalsecrets | ||
condition: externalsecrets.enabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{{- include "common.notes.defaultNotes" . -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{{ include "common.all" . }} |
24 changes: 24 additions & 0 deletions
24
charts/stable/fritz-exporter/templates/servicemonitor.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{{- if .Values.metrics.enabled }} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: {{ include "common.names.fullname" . }} | ||
labels: | ||
{{- include "common.labels" . | nindent 4 }} | ||
{{- with .Values.metrics.serviceMonitor.labels }} | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
{{- include "common.labels.selectorLabels" . | nindent 6 }} | ||
endpoints: | ||
- port: metrics | ||
{{- with .Values.metrics.serviceMonitor.interval }} | ||
interval: {{ . }} | ||
{{- end }} | ||
{{- with .Values.metrics.serviceMonitor.scrapeTimeout }} | ||
scrapeTimeout: {{ . }} | ||
{{- end }} | ||
path: /metrics | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# | ||
# IMPORTANT NOTE | ||
# | ||
# This chart inherits from our common library chart. You can check the default values/options here: | ||
# https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common/values.yaml | ||
# | ||
|
||
image: | ||
# -- image repository | ||
repository: pdreker/fritz_exporter | ||
# -- image tag | ||
tag: v2.0.0 | ||
# -- image pull policy | ||
pullPolicy: IfNotPresent | ||
|
||
controller: | ||
strategy: RollingUpdate | ||
|
||
|
||
# -- environment variables. See [application docs](https://docs.miguelndecarvalho.pt/projects/speedtest-exporter/) for more details. | ||
# @default -- See below | ||
env: | ||
# -- Set the container timezone | ||
TZ: UTC | ||
|
||
# -- Configures service settings for the chart. | ||
# @default -- See values.yaml | ||
service: | ||
main: | ||
ports: | ||
http: | ||
enabled: false | ||
metrics: | ||
enabled: true | ||
protocol: TCP | ||
port: 9787 | ||
|
||
metrics: | ||
# -- Enable and configure a Prometheus serviceMonitor for the chart under this key. | ||
# @default -- See values.yaml | ||
enabled: false | ||
serviceMonitor: | ||
labels: {} | ||
|
||
|
||
envFrom: | ||
- secretRef: | ||
name: fritz-creds | ||
|
||
externalsecrets: | ||
enabled: true | ||
secrets: | ||
fritz-creds: | ||
data: | ||
- key: secrets-tf/data/services/router-fritz-box/users/admin | ||
name: FRITZ_HOSTNAME | ||
property: endpoint | ||
|
||
- key: secrets-tf/data/services/router-fritz-box/users/admin | ||
name: FRITZ_USERNAME | ||
property: username | ||
|
||
- key: secrets-tf/data/services/router-fritz-box/users/admin | ||
name: FRITZ_PASSWORD | ||
property: password |