mirror of
https://github.com/truenas/charts.git
synced 2026-04-05 03:39:20 +08:00
NAS-122388 / 23.10 / Adds grafana to community apps (#1252)
* Adds `grafana` to `community` apps * test different user too * md format * update rtags * update readmes * use rooturl for portal only if defined
This commit is contained in:
6
library/ix-dev/community/grafana/Chart.lock
Normal file
6
library/ix-dev/community/grafana/Chart.lock
Normal file
@@ -0,0 +1,6 @@
|
||||
dependencies:
|
||||
- name: common
|
||||
repository: file://../../../common
|
||||
version: 1.0.8
|
||||
digest: sha256:254efaa1285f634b7a80b7baadeadbd20a680f7fee49d1d9d3c4618aa0d657ad
|
||||
generated: "2023-06-08T20:43:17.286126829+03:00"
|
||||
28
library/ix-dev/community/grafana/Chart.yaml
Normal file
28
library/ix-dev/community/grafana/Chart.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
name: grafana
|
||||
description: Grafana is the open source analytics & monitoring solution for every database.
|
||||
annotations:
|
||||
title: Grafana
|
||||
type: application
|
||||
version: 1.0.0
|
||||
apiVersion: v2
|
||||
appVersion: '9.5.3'
|
||||
kubeVersion: '>=1.16.0-0'
|
||||
maintainers:
|
||||
- name: truenas
|
||||
url: https://www.truenas.com/
|
||||
email: dev@ixsystems.com
|
||||
dependencies:
|
||||
- name: common
|
||||
repository: file://../../../common
|
||||
version: 1.0.8
|
||||
home: https://grafana.com
|
||||
icon: https://www.gravatar.com/avatar/31cea69afa424609b2d83621b4d47f1d?s=120&r=g&d=404
|
||||
sources:
|
||||
- https://hub.docker.com/r/grafana/grafana
|
||||
- https://github.com/truenas/charts/tree/master/community/grafana
|
||||
- https://github.com/grafana
|
||||
keywords:
|
||||
- dashboard
|
||||
- monitoring
|
||||
- analytics
|
||||
- metrics
|
||||
17
library/ix-dev/community/grafana/README.md
Normal file
17
library/ix-dev/community/grafana/README.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# Grafana
|
||||
|
||||
[Grafana](https://grafana.com/) is the open source analytics & monitoring solution for every database.
|
||||
|
||||
> When application is installed, a container will be launched with **root** privileges.
|
||||
> This is required in order to apply the correct permissions to the `Grafana` directories.
|
||||
> Afterward, the `Grafana` container will run as a **non**-root user (Default: `568`).
|
||||
> All mounted storage(s) will be `chown`ed only if the parent directory does not match the configured user.
|
||||
|
||||
Additional configuration can be made by adding additional environment variables
|
||||
Here is the available [configuration documentation](https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/)
|
||||
|
||||
Use the following syntax:
|
||||
`GF_<SECTION-NAME>_<KEY-NAME>`
|
||||
|
||||
Example:
|
||||
`GF_SMTP_ENABLED`
|
||||
17
library/ix-dev/community/grafana/app-readme.md
Normal file
17
library/ix-dev/community/grafana/app-readme.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# Grafana
|
||||
|
||||
[Grafana](https://grafana.com/) is the open source analytics & monitoring solution for every database.
|
||||
|
||||
> When application is installed, a container will be launched with **root** privileges.
|
||||
> This is required in order to apply the correct permissions to the `Grafana` directories.
|
||||
> Afterward, the `Grafana` container will run as a **non**-root user (Default: `568`).
|
||||
> All mounted storage(s) will be `chown`ed only if the parent directory does not match the configured user.
|
||||
|
||||
Additional configuration can be made by adding additional environment variables
|
||||
Here is the available [configuration documentation](https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/)
|
||||
|
||||
Use the following syntax:
|
||||
`GF_<SECTION-NAME>_<KEY-NAME>`
|
||||
|
||||
Example:
|
||||
`GF_SMTP_ENABLED`
|
||||
BIN
library/ix-dev/community/grafana/charts/common-1.0.8.tgz
Normal file
BIN
library/ix-dev/community/grafana/charts/common-1.0.8.tgz
Normal file
Binary file not shown.
16
library/ix-dev/community/grafana/ci/basic-plugin-values.yaml
Normal file
16
library/ix-dev/community/grafana/ci/basic-plugin-values.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
grafanaStorage:
|
||||
data:
|
||||
type: hostPath
|
||||
hostPath: /mnt/{{ .Release.Name }}/data
|
||||
additionalStorages:
|
||||
- type: hostPath
|
||||
hostPath: /mnt/{{ .Release.Namespace }}/logs
|
||||
mountPath: /logs
|
||||
|
||||
grafanaConfig:
|
||||
plugins:
|
||||
- grafana-piechart-panel
|
||||
- grafana-clock-panel 1.0.0
|
||||
additionalEnvs:
|
||||
- name: GF_PATHS_LOGS
|
||||
value: /logs
|
||||
8
library/ix-dev/community/grafana/ci/basic-values.yaml
Normal file
8
library/ix-dev/community/grafana/ci/basic-values.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
grafanaStorage:
|
||||
data:
|
||||
type: hostPath
|
||||
hostPath: /mnt/{{ .Release.Name }}/data
|
||||
|
||||
grafanaRunAs:
|
||||
user: 1000
|
||||
group: 1000
|
||||
106
library/ix-dev/community/grafana/ci/https-plugins-values.yaml
Normal file
106
library/ix-dev/community/grafana/ci/https-plugins-values.yaml
Normal file
@@ -0,0 +1,106 @@
|
||||
grafanaStorage:
|
||||
data:
|
||||
type: hostPath
|
||||
hostPath: /mnt/{{ .Release.Name }}/data
|
||||
additionalStorages:
|
||||
- type: hostPath
|
||||
hostPath: /mnt/{{ .Release.Namespace }}/logs
|
||||
mountPath: /logs
|
||||
|
||||
grafanaNetwork:
|
||||
certificateID: 1
|
||||
rootURL: https://grafana.example.com:30000
|
||||
|
||||
grafanaConfig:
|
||||
plugins:
|
||||
- grafana-piechart-panel
|
||||
- grafana-clock-panel 1.0.0
|
||||
additionalEnvs:
|
||||
- name: GF_PATHS_LOGS
|
||||
value: /logs
|
||||
|
||||
ixCertificates:
|
||||
"1":
|
||||
certificate: |
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIEdjCCA16gAwIBAgIDYFMYMA0GCSqGSIb3DQEBCwUAMGwxDDAKBgNVBAMMA2Fz
|
||||
ZDELMAkGA1UEBhMCVVMxDTALBgNVBAgMBGFzZGYxCzAJBgNVBAcMAmFmMQ0wCwYD
|
||||
VQQKDARhc2RmMQwwCgYDVQQLDANhc2QxFjAUBgkqhkiG9w0BCQEWB2FAYS5jb20w
|
||||
HhcNMjEwODMwMjMyMzU0WhcNMjMxMjAzMjMyMz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bhjz8DYL
|
||||
d+qhVJjef7L/aJxViU0hX9Ba2O8CLK3FZeREFE3hJPiJ4TZSlN4evxs5p+bbNDcA
|
||||
0mhRI/o3X4ac6IxdRebyYnCOB/Cu94/MzppcZcotlCekKNike7eorCcX4Qavm7Pu
|
||||
MUuQ+ifmSwKBgEnchoqZzlbBzMqXb4rRuIO7SL9GU/MWp3TQg7vQmJerTZlgvsQ2
|
||||
wYsOC3SECmhCq4117iCj2luvOdihCboTFsQDnn0mpQe6BIF6Ns3J38wAuqv0CcFd
|
||||
DKsrge1uyD3rQilgSoAhKzkUc24o0PpXQurZ8YZPgbuXpbj5vPaOnCdBAoGACYc7
|
||||
wb3XS4wos3FxhUfcwJbM4b4VKeeHqzfu7pI6cU/3ydiHVitKcVe2bdw3qMPqI9Wc
|
||||
nvi6e17Tbdq4OCsEJx1OiVwFD9YdO3cOTc6lw/3+hjypvZBRYo+/4jUthbu96E+S
|
||||
dtOzehGZMmDvN0uSzupSi3ZOgkAAUFpyuIKickMCgYAId0PCRjonO2thn/R0rZ7P
|
||||
//L852uyzYhXKw5/fjFGhQ6LbaLgIRFaCZ0L2809u0HFnNvJjHv4AKP6j+vFQYYY
|
||||
qQ+66XnfsA9G/bu4MDS9AX83iahD9IdLXQAy8I19prAbpVumKegPbMnNYNB/TYEc
|
||||
3G15AKCXo7jjOUtHY01DCQ==
|
||||
-----END PRIVATE KEY-----
|
||||
94
library/ix-dev/community/grafana/ci/https-values.yaml
Normal file
94
library/ix-dev/community/grafana/ci/https-values.yaml
Normal file
@@ -0,0 +1,94 @@
|
||||
grafanaStorage:
|
||||
data:
|
||||
type: hostPath
|
||||
hostPath: /mnt/{{ .Release.Name }}/data
|
||||
|
||||
grafanaNetwork:
|
||||
certificateID: 1
|
||||
rootURL: https://grafana.example.com:30000
|
||||
|
||||
ixCertificates:
|
||||
"1":
|
||||
certificate: |
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIEdjCCA16gAwIBAgIDYFMYMA0GCSqGSI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GDuU8BGCMqr/qd564MKNf9XYL+Fb2rlkA0O2d
|
||||
2No34DQLgqSmST/LAvPM7Cbp6knYgnKmGr1nETCXasg1cueHLnWWTvps2HiPp2D/
|
||||
+Fq0uqcZLu4Mdo0CPs4e5sHRyldEnRSKh0DVLprq9zr/GMipmPLJUsT5Jed3sj0w
|
||||
M7Y3vwxshpo=
|
||||
-----END CERTIFICATE-----
|
||||
privatekey: |
|
||||
-----BEGIN PRIVATE KEY-----
|
||||
MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQC7+1xOHRQyOnQT
|
||||
HFcrdasXZl0gzutVlA890a1wiQpdD5dOtCLo7+eqVYjqVKo9W8RUIArXWmBu/Abk
|
||||
H7oVFWC1P973W1+ArF5sA70f7BZgqRKJTIisuIFIlRETgfnP2pfQmHRZtGaIJRZI
|
||||
4vQCdYgW2g0KOvvNcZJCVq1OrhKiNiY1bWCp66DGg0ic6OEkZFHTm745zUNQaf2d
|
||||
NgsxKU0HPGjVLJI//yrRFAOSBUqgD4c50krnMF7fU/Fqh+UyOu8t6Y/HsySh3urB
|
||||
+Zie331tAzV6QV39KKxRflNx/yuWrtIEslGTm+xHKoCYJEk/nZ3mX8Y5hG6wWAb7
|
||||
A/FuDVg3AgMBAAECggEAapt30rj9DitGTtxAt13pJMEhyYxvvD3WkvmJwguF/Bbu
|
||||
eW0Ba1c668fMeRCA54FWi1sMqusPS4HUqqUvk+tmyAOsAF4qgD/A4MMSC7uJSVI5
|
||||
N/JWhJWyhCY94/FPakiO1nbPbVw41bcqtzU2qvparpME2CtxSCbDiqm7aaag3Kqe
|
||||
EF0fGSUdZ+TYl9JM05+eIyiX+UY19Fg0OjTHMn8nGpxcNTfDBdQ68TKvdo/dtIKL
|
||||
PLKzJUNNdM8odC4CvQtfGMqaslwZwXkiOl5VJcW21ncj/Y0ngEMKeD/i65ZoqGdR
|
||||
0FKCQYEAGtM2FvJcZQ92Wsw7yj2bK2MSegVUyLK32QKBgQDe8syVCepPzRsfjfxA
|
||||
6TZlWcGuTZLhwIx97Ktw3VcQ1f4rLoEYlv0xC2VWBORpzIsJo4I/OLmgp8a+Ga8z
|
||||
FkVRnq90dV3t4NP9uJlHgcODHnOardC2UUka4olBSCG6zmK4Jxi34lOxhGRkshOo
|
||||
L4IBeOIB5g+ZrEEXkzfYJHESRQKBgQDX2YhFhGIrT8BAnC5BbXbhm8h6Bhjz8DYL
|
||||
d+qhVJjef7L/aJxViU0hX9Ba2O8CLK3FZeREFE3hJPiJ4TZSlN4evxs5p+bbNDcA
|
||||
0mhRI/o3X4ac6IxdRebyYnCOB/Cu94/MzppcZcotlCekKNike7eorCcX4Qavm7Pu
|
||||
MUuQ+ifmSwKBgEnchoqZzlbBzMqXb4rRuIO7SL9GU/MWp3TQg7vQmJerTZlgvsQ2
|
||||
wYsOC3SECmhCq4117iCj2luvOdihCboTFsQDnn0mpQe6BIF6Ns3J38wAuqv0CcFd
|
||||
DKsrge1uyD3rQilgSoAhKzkUc24o0PpXQurZ8YZPgbuXpbj5vPaOnCdBAoGACYc7
|
||||
wb3XS4wos3FxhUfcwJbM4b4VKeeHqzfu7pI6cU/3ydiHVitKcVe2bdw3qMPqI9Wc
|
||||
nvi6e17Tbdq4OCsEJx1OiVwFD9YdO3cOTc6lw/3+hjypvZBRYo+/4jUthbu96E+S
|
||||
dtOzehGZMmDvN0uSzupSi3ZOgkAAUFpyuIKickMCgYAId0PCRjonO2thn/R0rZ7P
|
||||
//L852uyzYhXKw5/fjFGhQ6LbaLgIRFaCZ0L2809u0HFnNvJjHv4AKP6j+vFQYYY
|
||||
qQ+66XnfsA9G/bu4MDS9AX83iahD9IdLXQAy8I19prAbpVumKegPbMnNYNB/TYEc
|
||||
3G15AKCXo7jjOUtHY01DCQ==
|
||||
-----END PRIVATE KEY-----
|
||||
11
library/ix-dev/community/grafana/item.yaml
Normal file
11
library/ix-dev/community/grafana/item.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
icon_url: https://www.gravatar.com/avatar/31cea69afa424609b2d83621b4d47f1d?s=120&r=g&d=404
|
||||
categories:
|
||||
- productivity
|
||||
screenshots:
|
||||
- https://grafana.com/static/img/grafana/showcase_visualize.jpg
|
||||
- https://grafana.com/static/img/screenshots/Modal_dashboards.png
|
||||
tags:
|
||||
- analytics
|
||||
- monitoring
|
||||
- metrics
|
||||
- dashboards
|
||||
8
library/ix-dev/community/grafana/metadata.yaml
Normal file
8
library/ix-dev/community/grafana/metadata.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
runAsContext:
|
||||
- userName: grafana
|
||||
groupName: grafana
|
||||
gid: 568
|
||||
uid: 568
|
||||
description: Grafana can run as any non-root user.
|
||||
capabilities: []
|
||||
hostMounts: []
|
||||
254
library/ix-dev/community/grafana/questions.yaml
Normal file
254
library/ix-dev/community/grafana/questions.yaml
Normal file
@@ -0,0 +1,254 @@
|
||||
groups:
|
||||
- name: Grafana Configuration
|
||||
description: Configure Grafana
|
||||
- name: User and Group Configuration
|
||||
description: Configure User and Group for Grafana
|
||||
- name: Network Configuration
|
||||
description: Configure Network for Grafana
|
||||
- name: Storage Configuration
|
||||
description: Configure Storage for Grafana
|
||||
- name: Resources Configuration
|
||||
description: Configure Resources for Grafana
|
||||
|
||||
portals:
|
||||
web_portal:
|
||||
protocols:
|
||||
- "$kubernetes-resource_configmap_portal_protocol"
|
||||
host:
|
||||
- "$kubernetes-resource_configmap_portal_host"
|
||||
ports:
|
||||
- "$kubernetes-resource_configmap_portal_port"
|
||||
path: "$kubernetes-resource_configmap_portal_path"
|
||||
|
||||
questions:
|
||||
- variable: grafanaConfig
|
||||
label: ""
|
||||
group: Grafana Configuration
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: plugins
|
||||
label: Grafana Plugins
|
||||
description: Configure Grafana plugins to install.
|
||||
schema:
|
||||
type: list
|
||||
default: []
|
||||
items:
|
||||
- variable: plugin
|
||||
label: Plugin
|
||||
description: |
|
||||
The plugin name to install.</br>
|
||||
Example: grafana-piechart-panel </br>
|
||||
Example: grafana-clock-panel 1.0.0
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
- variable: additionalEnvs
|
||||
label: Additional Environment Variables
|
||||
description: Configure additional environment variables for Grafana.
|
||||
schema:
|
||||
type: list
|
||||
default: []
|
||||
items:
|
||||
- variable: env
|
||||
label: Environment Variable
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: name
|
||||
label: Name
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
- variable: value
|
||||
label: Value
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
- variable: grafanaRunAs
|
||||
label: ""
|
||||
group: User and Group Configuration
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: user
|
||||
label: User ID
|
||||
description: The user id that Grafana will run as.
|
||||
schema:
|
||||
type: int
|
||||
min: 2
|
||||
default: 568
|
||||
required: true
|
||||
- variable: group
|
||||
label: Group ID
|
||||
description: The group id that Grafana will run as.
|
||||
schema:
|
||||
type: int
|
||||
min: 2
|
||||
default: 568
|
||||
required: true
|
||||
|
||||
- variable: grafanaNetwork
|
||||
label: ""
|
||||
group: Network Configuration
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: hostNetwork
|
||||
label: Host Network
|
||||
description: |
|
||||
Bind to the host network. It's recommended to keep this disabled.</br>
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
- variable: webPort
|
||||
label: Web Port
|
||||
description: The port for the Grafana Web UI.
|
||||
schema:
|
||||
type: int
|
||||
default: 30037
|
||||
min: 9000
|
||||
max: 65535
|
||||
required: true
|
||||
- variable: certificateID
|
||||
label: Certificate
|
||||
description: |
|
||||
The certificate to use for Grafana
|
||||
schema:
|
||||
type: int
|
||||
"null": true
|
||||
$ref:
|
||||
- "definitions/certificate"
|
||||
- variable: rootURL
|
||||
label: Root URL
|
||||
description: |
|
||||
The root URL for Grafana </br>
|
||||
The URL you use to access Grafana </br>
|
||||
Example: https://grafana.example.com:30037</br>
|
||||
Example: https://192.168.1.100:30037</br>
|
||||
schema:
|
||||
type: string
|
||||
show_if: [["certificateID", "!=", null]]
|
||||
default: ""
|
||||
|
||||
- variable: grafanaStorage
|
||||
label: ""
|
||||
group: Storage Configuration
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: data
|
||||
label: Grafana Data Storage
|
||||
description: The path to store Grafana Data.
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: type
|
||||
label: Type
|
||||
description: |
|
||||
ixVolume: Is dataset created automatically by the system.</br>
|
||||
Host Path: Is a path that already exists on the system.
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
default: "ixVolume"
|
||||
enum:
|
||||
- value: "hostPath"
|
||||
description: Host Path (Path that already exists on the system)
|
||||
- value: "ixVolume"
|
||||
description: ixVolume (Dataset created automatically by the system)
|
||||
- variable: datasetName
|
||||
label: Dataset Name
|
||||
schema:
|
||||
type: string
|
||||
show_if: [["type", "=", "ixVolume"]]
|
||||
required: true
|
||||
hidden: true
|
||||
immutable: true
|
||||
default: "data"
|
||||
$ref:
|
||||
- "normalize/ixVolume"
|
||||
- variable: hostPath
|
||||
label: Host Path
|
||||
schema:
|
||||
type: hostpath
|
||||
show_if: [["type", "=", "hostPath"]]
|
||||
immutable: true
|
||||
required: true
|
||||
- variable: additionalStorages
|
||||
label: Additional Storage
|
||||
description: Additional storage for Grafana.
|
||||
schema:
|
||||
type: list
|
||||
default: []
|
||||
items:
|
||||
- variable: storageEntry
|
||||
label: Storage Entry
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: type
|
||||
label: Type
|
||||
description: |
|
||||
ixVolume: Is dataset created automatically by the system.</br>
|
||||
Host Path: Is a path that already exists on the system.
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
default: "ixVolume"
|
||||
enum:
|
||||
- value: "hostPath"
|
||||
description: Host Path (Path that already exists on the system)
|
||||
- value: "ixVolume"
|
||||
description: ixVolume (Dataset created automatically by the system)
|
||||
- variable: mountPath
|
||||
label: Mount Path
|
||||
description: The path inside the container to mount the storage.
|
||||
schema:
|
||||
type: path
|
||||
required: true
|
||||
- variable: hostPath
|
||||
label: Host Path
|
||||
description: The host path to use for storage.
|
||||
schema:
|
||||
type: hostpath
|
||||
show_if: [["type", "=", "hostPath"]]
|
||||
required: true
|
||||
- variable: datasetName
|
||||
label: Dataset Name
|
||||
description: The name of the dataset to use for storage.
|
||||
schema:
|
||||
type: string
|
||||
show_if: [["type", "=", "ixVolume"]]
|
||||
required: true
|
||||
immutable: true
|
||||
default: "storage_entry"
|
||||
$ref:
|
||||
- "normalize/ixVolume"
|
||||
|
||||
- variable: resources
|
||||
group: Resources Configuration
|
||||
label: ""
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: limits
|
||||
label: Limits
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: cpu
|
||||
label: CPU
|
||||
description: CPU limit for Grafana.
|
||||
schema:
|
||||
type: string
|
||||
default: "4000m"
|
||||
required: true
|
||||
- variable: memory
|
||||
label: Memory
|
||||
description: Memory limit for Grafana.
|
||||
schema:
|
||||
type: string
|
||||
default: "8Gi"
|
||||
required: true
|
||||
1
library/ix-dev/community/grafana/templates/NOTES.txt
Normal file
1
library/ix-dev/community/grafana/templates/NOTES.txt
Normal file
@@ -0,0 +1 @@
|
||||
{{ include "ix.v1.common.lib.chart.notes" $ }}
|
||||
@@ -0,0 +1,20 @@
|
||||
{{- define "grafana.configuration" -}}
|
||||
configmap:
|
||||
grafana-config:
|
||||
enabled: true
|
||||
data:
|
||||
GF_SERVER_HTTP_PORT: {{ .Values.grafanaNetwork.webPort | quote }}
|
||||
GF_PATHS_DATA: /var/lib/grafana
|
||||
GF_PATHS_PLUGINS: /var/lib/grafana/plugins
|
||||
{{- with .Values.grafanaConfig.plugins }}
|
||||
GF_INSTALL_PLUGINS: {{ join "," . }}
|
||||
{{- end -}}
|
||||
{{- if .Values.grafanaNetwork.certificateID }}
|
||||
GF_SERVER_PROTOCOL: https
|
||||
GF_SERVER_CERT_FILE: /grafana/certs/tls.crt
|
||||
GF_SERVER_CERT_KEY: /grafana/certs/tls.key
|
||||
{{- with .Values.grafanaNetwork.rootURL }}
|
||||
GF_SERVER_ROOT_URL: {{ . | quote }}
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
124
library/ix-dev/community/grafana/templates/_grafana.tpl
Normal file
124
library/ix-dev/community/grafana/templates/_grafana.tpl
Normal file
@@ -0,0 +1,124 @@
|
||||
{{- define "grafana.workload" -}}
|
||||
workload:
|
||||
grafana:
|
||||
enabled: true
|
||||
primary: true
|
||||
type: Deployment
|
||||
podSpec:
|
||||
hostNetwork: {{ .Values.grafanaNetwork.hostNetwork }}
|
||||
containers:
|
||||
grafana:
|
||||
enabled: true
|
||||
primary: true
|
||||
imageSelector: image
|
||||
securityContext:
|
||||
runAsUser: {{ .Values.grafanaRunAs.user }}
|
||||
runAsGroup: {{ .Values.grafanaRunAs.group }}
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: grafana-config
|
||||
{{ with .Values.grafanaConfig.additionalEnvs }}
|
||||
envList:
|
||||
{{ range $env := . }}
|
||||
- name: {{ $env.name }}
|
||||
value: {{ $env.value }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
probes:
|
||||
{{ $scheme := "http" }}
|
||||
{{ if .Values.grafanaNetwork.certificateID }}
|
||||
{{ $scheme = "https" }}
|
||||
{{ end }}
|
||||
liveness:
|
||||
enabled: true
|
||||
type: {{ $scheme }}
|
||||
port: {{ .Values.grafanaNetwork.webPort }}
|
||||
path: /api/health
|
||||
readiness:
|
||||
enabled: true
|
||||
type: {{ $scheme }}
|
||||
port: {{ .Values.grafanaNetwork.webPort }}
|
||||
path: /api/health
|
||||
startup:
|
||||
enabled: true
|
||||
type: {{ $scheme }}
|
||||
port: {{ .Values.grafanaNetwork.webPort }}
|
||||
path: /api/health
|
||||
initContainers:
|
||||
{{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions"
|
||||
"UID" .Values.grafanaRunAs.user
|
||||
"GID" .Values.grafanaRunAs.group
|
||||
"mode" "check"
|
||||
"type" "init") | nindent 8 }}
|
||||
|
||||
{{/* Service */}}
|
||||
service:
|
||||
grafana:
|
||||
enabled: true
|
||||
primary: true
|
||||
type: NodePort
|
||||
targetSelector: grafana
|
||||
ports:
|
||||
webui:
|
||||
enabled: true
|
||||
primary: true
|
||||
port: {{ .Values.grafanaNetwork.webPort }}
|
||||
nodePort: {{ .Values.grafanaNetwork.webPort }}
|
||||
targetSelector: grafana
|
||||
|
||||
{{/* Persistence */}}
|
||||
persistence:
|
||||
data:
|
||||
enabled: true
|
||||
type: {{ .Values.grafanaStorage.data.type }}
|
||||
datasetName: {{ .Values.grafanaStorage.data.datasetName | default "" }}
|
||||
hostPath: {{ .Values.grafanaStorage.data.hostPath | default "" }}
|
||||
targetSelector:
|
||||
grafana:
|
||||
grafana:
|
||||
mountPath: /var/lib/grafana
|
||||
01-permissions:
|
||||
mountPath: /mnt/directories/data
|
||||
tmp:
|
||||
enabled: true
|
||||
type: emptyDir
|
||||
targetSelector:
|
||||
grafana:
|
||||
grafana:
|
||||
mountPath: /tmp
|
||||
{{- range $idx, $storage := .Values.grafanaStorage.additionalStorages }}
|
||||
{{ printf "grafana-%v" (int $idx) }}:
|
||||
enabled: true
|
||||
type: {{ $storage.type }}
|
||||
datasetName: {{ $storage.datasetName | default "" }}
|
||||
hostPath: {{ $storage.hostPath | default "" }}
|
||||
targetSelector:
|
||||
grafana:
|
||||
grafana:
|
||||
mountPath: {{ $storage.mountPath }}
|
||||
01-permissions:
|
||||
mountPath: /mnt/directories{{ $storage.mountPath }}
|
||||
{{- end }}
|
||||
{{- if .Values.grafanaNetwork.certificateID }}
|
||||
cert:
|
||||
enabled: true
|
||||
type: secret
|
||||
objectName: grafana-cert
|
||||
defaultMode: "0600"
|
||||
items:
|
||||
- key: tls.key
|
||||
path: tls.key
|
||||
- key: tls.crt
|
||||
path: tls.crt
|
||||
targetSelector:
|
||||
grafana:
|
||||
grafana:
|
||||
mountPath: /grafana/certs
|
||||
readOnly: true
|
||||
|
||||
scaleCertificate:
|
||||
grafana-cert:
|
||||
enabled: true
|
||||
id: {{ .Values.grafanaNetwork.certificateID }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
22
library/ix-dev/community/grafana/templates/_portal.tpl
Normal file
22
library/ix-dev/community/grafana/templates/_portal.tpl
Normal file
@@ -0,0 +1,22 @@
|
||||
{{- define "grafana.portal" -}}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: portal
|
||||
data:
|
||||
{{- $host := "$node_ip" -}}
|
||||
{{- $protocol := "http" -}}
|
||||
{{- if .Values.grafanaNetwork.certificateID -}}
|
||||
{{- $protocol = "https" -}}
|
||||
{{- if .Values.grafanaNetwork.rootURL -}}
|
||||
{{- $host = .Values.grafanaNetwork.rootURL -}}
|
||||
{{- $host = ($host | trimPrefix "https://" | trimPrefix "http://" | trimSuffix "/") -}}
|
||||
{{- $host = (mustRegexReplaceAll "(.*):[0-9]+" $host "${1}") -}}
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
path: "/"
|
||||
port: {{ .Values.grafanaNetwork.webPort | quote }}
|
||||
protocol: {{ $protocol }}
|
||||
host: {{ $host }}
|
||||
{{- end -}}
|
||||
10
library/ix-dev/community/grafana/templates/common.yaml
Normal file
10
library/ix-dev/community/grafana/templates/common.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
{{- include "ix.v1.common.loader.init" . -}}
|
||||
|
||||
{{/* Merge the templates with Values */}}
|
||||
{{- $_ := mustMergeOverwrite .Values (include "grafana.configuration" $ | fromYaml) -}}
|
||||
{{- $_ := mustMergeOverwrite .Values (include "grafana.workload" $ | fromYaml) -}}
|
||||
|
||||
{{/* Create the configmap for portal manually*/}}
|
||||
{{- include "grafana.portal" $ -}}
|
||||
|
||||
{{- include "ix.v1.common.loader.apply" . -}}
|
||||
1
library/ix-dev/community/grafana/upgrade_info.json
Normal file
1
library/ix-dev/community/grafana/upgrade_info.json
Normal file
@@ -0,0 +1 @@
|
||||
{"filename": "values.yaml", "keys": ["image"]}
|
||||
31
library/ix-dev/community/grafana/upgrade_strategy
Executable file
31
library/ix-dev/community/grafana/upgrade_strategy
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/python3
|
||||
import json
|
||||
import re
|
||||
import sys
|
||||
|
||||
from catalog_update.upgrade_strategy import semantic_versioning
|
||||
|
||||
|
||||
RE_STABLE_VERSION = re.compile(r'[0-9]+\.[0-9]+\.[0-9]+')
|
||||
|
||||
|
||||
def newer_mapping(image_tags):
|
||||
key = list(image_tags.keys())[0]
|
||||
tags = {t: t for t in image_tags[key] if RE_STABLE_VERSION.fullmatch(t)}
|
||||
version = semantic_versioning(list(tags))
|
||||
if not version:
|
||||
return {}
|
||||
|
||||
return {
|
||||
'tags': {key: tags[version]},
|
||||
'app_version': version,
|
||||
}
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
try:
|
||||
versions_json = json.loads(sys.stdin.read())
|
||||
except ValueError:
|
||||
raise ValueError('Invalid json specified')
|
||||
|
||||
print(json.dumps(newer_mapping(versions_json)))
|
||||
35
library/ix-dev/community/grafana/values.yaml
Normal file
35
library/ix-dev/community/grafana/values.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
image:
|
||||
repository: grafana/grafana
|
||||
pullPolicy: IfNotPresent
|
||||
tag: '9.5.3'
|
||||
|
||||
resources:
|
||||
limits:
|
||||
cpu: 4000m
|
||||
memory: 8Gi
|
||||
|
||||
grafanaConfig:
|
||||
plugins: []
|
||||
additionalEnvs: []
|
||||
|
||||
grafanaNetwork:
|
||||
hostNetwork: false
|
||||
webPort: 30037
|
||||
certificateID: 0
|
||||
rootURL: ""
|
||||
|
||||
grafanaRunAs:
|
||||
user: 568
|
||||
group: 568
|
||||
|
||||
grafanaStorage:
|
||||
data:
|
||||
type: ixVolume
|
||||
datasetName: data
|
||||
additionalStorages: []
|
||||
|
||||
notes:
|
||||
custom: |
|
||||
Default credentials:
|
||||
- Username: admin
|
||||
- Password: admin
|
||||
Reference in New Issue
Block a user