fix
This commit is contained in:
@@ -5,10 +5,10 @@ metadata:
|
|||||||
name: grafana
|
name: grafana
|
||||||
namespace: vynil-monitor
|
namespace: vynil-monitor
|
||||||
labels:
|
labels:
|
||||||
helm.sh/chart: grafana-7.3.2
|
helm.sh/chart: grafana-7.3.11
|
||||||
app.kubernetes.io/name: grafana
|
app.kubernetes.io/name: grafana
|
||||||
app.kubernetes.io/instance: grafana
|
app.kubernetes.io/instance: grafana
|
||||||
app.kubernetes.io/version: "10.3.3"
|
app.kubernetes.io/version: "10.4.1"
|
||||||
app.kubernetes.io/managed-by: Helm
|
app.kubernetes.io/managed-by: Helm
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
@@ -31,7 +31,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
|
|
||||||
serviceAccountName: grafana
|
serviceAccountName: grafana
|
||||||
automountServiceAccountToken: false
|
automountServiceAccountToken: true
|
||||||
securityContext:
|
securityContext:
|
||||||
fsGroup: 472
|
fsGroup: 472
|
||||||
runAsGroup: 472
|
runAsGroup: 472
|
||||||
@@ -60,7 +60,7 @@ spec:
|
|||||||
enableServiceLinks: true
|
enableServiceLinks: true
|
||||||
containers:
|
containers:
|
||||||
- name: grafana-sc-dashboard
|
- name: grafana-sc-dashboard
|
||||||
image: "quay.io/kiwigrid/k8s-sidecar:1.25.2"
|
image: "quay.io/kiwigrid/k8s-sidecar:1.26.1"
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
env:
|
env:
|
||||||
- name: METHOD
|
- name: METHOD
|
||||||
@@ -96,7 +96,7 @@ spec:
|
|||||||
- name: sc-dashboard-volume
|
- name: sc-dashboard-volume
|
||||||
mountPath: "/tmp/dashboards"
|
mountPath: "/tmp/dashboards"
|
||||||
- name: grafana-sc-datasources
|
- name: grafana-sc-datasources
|
||||||
image: "quay.io/kiwigrid/k8s-sidecar:1.25.2"
|
image: "quay.io/kiwigrid/k8s-sidecar:1.26.1"
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
env:
|
env:
|
||||||
- name: METHOD
|
- name: METHOD
|
||||||
@@ -132,7 +132,7 @@ spec:
|
|||||||
- name: sc-datasources-volume
|
- name: sc-datasources-volume
|
||||||
mountPath: "/etc/grafana/provisioning/datasources"
|
mountPath: "/etc/grafana/provisioning/datasources"
|
||||||
- name: grafana-sc-notifiers
|
- name: grafana-sc-notifiers
|
||||||
image: "quay.io/kiwigrid/k8s-sidecar:1.25.2"
|
image: "quay.io/kiwigrid/k8s-sidecar:1.26.1"
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
env:
|
env:
|
||||||
- name: METHOD
|
- name: METHOD
|
||||||
@@ -168,7 +168,7 @@ spec:
|
|||||||
- name: sc-notifiers-volume
|
- name: sc-notifiers-volume
|
||||||
mountPath: "/etc/grafana/provisioning/notifiers"
|
mountPath: "/etc/grafana/provisioning/notifiers"
|
||||||
- name: grafana-sc-plugins
|
- name: grafana-sc-plugins
|
||||||
image: "quay.io/kiwigrid/k8s-sidecar:1.25.2"
|
image: "quay.io/kiwigrid/k8s-sidecar:1.26.1"
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
env:
|
env:
|
||||||
- name: METHOD
|
- name: METHOD
|
||||||
@@ -204,7 +204,7 @@ spec:
|
|||||||
- name: sc-plugins-volume
|
- name: sc-plugins-volume
|
||||||
mountPath: "/etc/grafana/provisioning/plugins"
|
mountPath: "/etc/grafana/provisioning/plugins"
|
||||||
- name: grafana
|
- name: grafana
|
||||||
image: "docker.io/grafana/grafana:10.3.3"
|
image: "docker.io/grafana/grafana:10.4.1"
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
securityContext:
|
securityContext:
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
|
|||||||
15
monitor/grafana/index.rhai
Normal file
15
monitor/grafana/index.rhai
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
const NS=config.namespace;
|
||||||
|
const SRC=src;
|
||||||
|
const DEST=dest;
|
||||||
|
fn pre_pack() {
|
||||||
|
shell("helm repo add grafana https://grafana.github.io/helm-charts");
|
||||||
|
shell(`helm template grafana grafana/grafana --namespace=vynil-monitor -a "monitoring.coreos.com/v1/ServiceMonitor" -a "monitoring.coreos.com/v1/PrometheusRule" --values values.yml >${global::SRC}/chart.yaml`);
|
||||||
|
}
|
||||||
|
fn post_pack() {
|
||||||
|
for file in [
|
||||||
|
"*test*",
|
||||||
|
"v1_ConfigMap_grafana.yaml"
|
||||||
|
] {
|
||||||
|
shell(`rm -f ${global::DEST}/${file}`);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -11,69 +11,21 @@ options:
|
|||||||
examples:
|
examples:
|
||||||
- grafana_admin
|
- grafana_admin
|
||||||
type: string
|
type: string
|
||||||
storage:
|
|
||||||
default:
|
|
||||||
volume:
|
|
||||||
accessMode: ReadWriteOnce
|
|
||||||
class: ''
|
|
||||||
size: 10Gi
|
|
||||||
type: Filesystem
|
|
||||||
description: Configure this app storage
|
|
||||||
examples:
|
|
||||||
- volume:
|
|
||||||
accessMode: ReadWriteOnce
|
|
||||||
class: ''
|
|
||||||
size: 10Gi
|
|
||||||
type: Filesystem
|
|
||||||
properties:
|
|
||||||
volume:
|
|
||||||
default:
|
|
||||||
accessMode: ReadWriteOnce
|
|
||||||
class: ''
|
|
||||||
size: 10Gi
|
|
||||||
type: Filesystem
|
|
||||||
properties:
|
|
||||||
accessMode:
|
|
||||||
default: ReadWriteOnce
|
|
||||||
enum:
|
|
||||||
- ReadWriteOnce
|
|
||||||
- ReadOnlyMany
|
|
||||||
- ReadWriteMany
|
|
||||||
type: string
|
|
||||||
class:
|
|
||||||
default: ''
|
|
||||||
type: string
|
|
||||||
size:
|
|
||||||
default: 10Gi
|
|
||||||
type: string
|
|
||||||
type:
|
|
||||||
default: Filesystem
|
|
||||||
enum:
|
|
||||||
- Filesystem
|
|
||||||
- Block
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
type: object
|
|
||||||
app_group:
|
app_group:
|
||||||
default: monitor
|
default: monitor
|
||||||
examples:
|
examples:
|
||||||
- monitor
|
- monitor
|
||||||
type: string
|
type: string
|
||||||
domain_name:
|
|
||||||
default: your_company.com
|
|
||||||
examples:
|
|
||||||
- your_company.com
|
|
||||||
type: string
|
|
||||||
issuer:
|
|
||||||
default: letsencrypt-prod
|
|
||||||
examples:
|
|
||||||
- letsencrypt-prod
|
|
||||||
type: string
|
|
||||||
domain:
|
domain:
|
||||||
default: your-company
|
default: your-company
|
||||||
examples:
|
examples:
|
||||||
- your-company
|
- your-company
|
||||||
type: string
|
type: string
|
||||||
|
domain_name:
|
||||||
|
default: your_company.com
|
||||||
|
examples:
|
||||||
|
- your_company.com
|
||||||
|
type: string
|
||||||
images:
|
images:
|
||||||
default:
|
default:
|
||||||
busybox:
|
busybox:
|
||||||
@@ -171,16 +123,64 @@ options:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
sub_domain:
|
|
||||||
default: grafana
|
|
||||||
examples:
|
|
||||||
- grafana
|
|
||||||
type: string
|
|
||||||
ingress_class:
|
ingress_class:
|
||||||
default: traefik
|
default: traefik
|
||||||
examples:
|
examples:
|
||||||
- traefik
|
- traefik
|
||||||
type: string
|
type: string
|
||||||
|
issuer:
|
||||||
|
default: letsencrypt-prod
|
||||||
|
examples:
|
||||||
|
- letsencrypt-prod
|
||||||
|
type: string
|
||||||
|
storage:
|
||||||
|
default:
|
||||||
|
volume:
|
||||||
|
accessMode: ReadWriteOnce
|
||||||
|
class: ''
|
||||||
|
size: 10Gi
|
||||||
|
type: Filesystem
|
||||||
|
description: Configure this app storage
|
||||||
|
examples:
|
||||||
|
- volume:
|
||||||
|
accessMode: ReadWriteOnce
|
||||||
|
class: ''
|
||||||
|
size: 10Gi
|
||||||
|
type: Filesystem
|
||||||
|
properties:
|
||||||
|
volume:
|
||||||
|
default:
|
||||||
|
accessMode: ReadWriteOnce
|
||||||
|
class: ''
|
||||||
|
size: 10Gi
|
||||||
|
type: Filesystem
|
||||||
|
properties:
|
||||||
|
accessMode:
|
||||||
|
default: ReadWriteOnce
|
||||||
|
enum:
|
||||||
|
- ReadWriteOnce
|
||||||
|
- ReadOnlyMany
|
||||||
|
- ReadWriteMany
|
||||||
|
type: string
|
||||||
|
class:
|
||||||
|
default: ''
|
||||||
|
type: string
|
||||||
|
size:
|
||||||
|
default: 10Gi
|
||||||
|
type: string
|
||||||
|
type:
|
||||||
|
default: Filesystem
|
||||||
|
enum:
|
||||||
|
- Filesystem
|
||||||
|
- Block
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
sub_domain:
|
||||||
|
default: grafana
|
||||||
|
examples:
|
||||||
|
- grafana
|
||||||
|
type: string
|
||||||
dependencies: []
|
dependencies: []
|
||||||
providers:
|
providers:
|
||||||
kubernetes: true
|
kubernetes: true
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ metadata:
|
|||||||
name: grafana
|
name: grafana
|
||||||
namespace: vynil-monitor
|
namespace: vynil-monitor
|
||||||
labels:
|
labels:
|
||||||
helm.sh/chart: grafana-7.3.2
|
helm.sh/chart: grafana-7.3.11
|
||||||
app.kubernetes.io/name: grafana
|
app.kubernetes.io/name: grafana
|
||||||
app.kubernetes.io/instance: grafana
|
app.kubernetes.io/instance: grafana
|
||||||
app.kubernetes.io/version: "10.3.3"
|
app.kubernetes.io/version: "10.4.1"
|
||||||
app.kubernetes.io/managed-by: Helm
|
app.kubernetes.io/managed-by: Helm
|
||||||
spec:
|
spec:
|
||||||
endpoints:
|
endpoints:
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ metadata:
|
|||||||
name: grafana
|
name: grafana
|
||||||
namespace: vynil-monitor
|
namespace: vynil-monitor
|
||||||
labels:
|
labels:
|
||||||
helm.sh/chart: grafana-7.3.2
|
helm.sh/chart: grafana-7.3.11
|
||||||
app.kubernetes.io/name: grafana
|
app.kubernetes.io/name: grafana
|
||||||
app.kubernetes.io/instance: grafana
|
app.kubernetes.io/instance: grafana
|
||||||
app.kubernetes.io/version: "10.3.3"
|
app.kubernetes.io/version: "10.4.1"
|
||||||
app.kubernetes.io/managed-by: Helm
|
app.kubernetes.io/managed-by: Helm
|
||||||
roleRef:
|
roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ metadata:
|
|||||||
name: grafana
|
name: grafana
|
||||||
namespace: vynil-monitor
|
namespace: vynil-monitor
|
||||||
labels:
|
labels:
|
||||||
helm.sh/chart: grafana-7.3.2
|
helm.sh/chart: grafana-7.3.11
|
||||||
app.kubernetes.io/name: grafana
|
app.kubernetes.io/name: grafana
|
||||||
app.kubernetes.io/instance: grafana
|
app.kubernetes.io/instance: grafana
|
||||||
app.kubernetes.io/version: "10.3.3"
|
app.kubernetes.io/version: "10.4.1"
|
||||||
app.kubernetes.io/managed-by: Helm
|
app.kubernetes.io/managed-by: Helm
|
||||||
rules:
|
rules:
|
||||||
- apiGroups: [""] # "" indicates the core API group
|
- apiGroups: [""] # "" indicates the core API group
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ apiVersion: v1
|
|||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
helm.sh/chart: grafana-7.3.2
|
helm.sh/chart: grafana-7.3.11
|
||||||
app.kubernetes.io/name: grafana
|
app.kubernetes.io/name: grafana
|
||||||
app.kubernetes.io/instance: grafana
|
app.kubernetes.io/instance: grafana
|
||||||
app.kubernetes.io/version: "10.3.3"
|
app.kubernetes.io/version: "10.4.1"
|
||||||
app.kubernetes.io/managed-by: Helm
|
app.kubernetes.io/managed-by: Helm
|
||||||
name: grafana-config-dashboards
|
name: grafana-config-dashboards
|
||||||
namespace: vynil-monitor
|
namespace: vynil-monitor
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ metadata:
|
|||||||
name: grafana
|
name: grafana
|
||||||
namespace: vynil-monitor
|
namespace: vynil-monitor
|
||||||
labels:
|
labels:
|
||||||
helm.sh/chart: grafana-7.3.2
|
helm.sh/chart: grafana-7.3.11
|
||||||
app.kubernetes.io/name: grafana
|
app.kubernetes.io/name: grafana
|
||||||
app.kubernetes.io/instance: grafana
|
app.kubernetes.io/instance: grafana
|
||||||
app.kubernetes.io/version: "10.3.3"
|
app.kubernetes.io/version: "10.4.1"
|
||||||
app.kubernetes.io/managed-by: Helm
|
app.kubernetes.io/managed-by: Helm
|
||||||
finalizers:
|
finalizers:
|
||||||
- kubernetes.io/pvc-protection
|
- kubernetes.io/pvc-protection
|
||||||
|
|||||||
@@ -2,12 +2,13 @@
|
|||||||
# Source: grafana/templates/serviceaccount.yaml
|
# Source: grafana/templates/serviceaccount.yaml
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
|
automountServiceAccountToken: true
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
helm.sh/chart: grafana-7.3.2
|
helm.sh/chart: grafana-7.3.11
|
||||||
app.kubernetes.io/name: grafana
|
app.kubernetes.io/name: grafana
|
||||||
app.kubernetes.io/instance: grafana
|
app.kubernetes.io/instance: grafana
|
||||||
app.kubernetes.io/version: "10.3.3"
|
app.kubernetes.io/version: "10.4.1"
|
||||||
app.kubernetes.io/managed-by: Helm
|
app.kubernetes.io/managed-by: Helm
|
||||||
name: grafana
|
name: grafana
|
||||||
namespace: vynil-monitor
|
namespace: vynil-monitor
|
||||||
@@ -5,10 +5,10 @@ metadata:
|
|||||||
name: grafana
|
name: grafana
|
||||||
namespace: vynil-monitor
|
namespace: vynil-monitor
|
||||||
labels:
|
labels:
|
||||||
helm.sh/chart: grafana-7.3.2
|
helm.sh/chart: grafana-7.3.11
|
||||||
app.kubernetes.io/name: grafana
|
app.kubernetes.io/name: grafana
|
||||||
app.kubernetes.io/instance: grafana
|
app.kubernetes.io/instance: grafana
|
||||||
app.kubernetes.io/version: "10.3.3"
|
app.kubernetes.io/version: "10.4.1"
|
||||||
app.kubernetes.io/managed-by: Helm
|
app.kubernetes.io/managed-by: Helm
|
||||||
spec:
|
spec:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
|
|||||||
Reference in New Issue
Block a user