update grafana module (https://git.kvazaric.ru/gstykalin/kube-forge/-/issues/7)
This commit is contained in:
@@ -26,7 +26,7 @@ docker run -v $(pwd)/config.yaml:/application/config.yaml \
|
|||||||
А также установить Python-библиотеки из списка "requirements.txt"
|
А также установить Python-библиотеки из списка "requirements.txt"
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
./kube-forge -c config.yaml -d . apply
|
kube-forge -c config.yaml -d . apply
|
||||||
```
|
```
|
||||||
|
|
||||||
## Параметры:
|
## Параметры:
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ func main() {
|
|||||||
flag.StringVar(&configPath, "c", "/etc/kube-forge/config.yaml", "Path to config file")
|
flag.StringVar(&configPath, "c", "/etc/kube-forge/config.yaml", "Path to config file")
|
||||||
flag.StringVar(&workDir, "d", "/var/lib/kube-forge", "Path to kube-forge work dir")
|
flag.StringVar(&workDir, "d", "/var/lib/kube-forge", "Path to kube-forge work dir")
|
||||||
flag.BoolVar(&verbose, "v", false, "Enable verbose logging")
|
flag.BoolVar(&verbose, "v", false, "Enable verbose logging")
|
||||||
fmt.Println(verbose)
|
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
config := config.CreateConfig(configPath, workDir, password)
|
config := config.CreateConfig(configPath, workDir, password)
|
||||||
config.Verbose = verbose
|
config.Verbose = verbose
|
||||||
|
|||||||
@@ -149,8 +149,8 @@ type Visualization struct {
|
|||||||
Enabled bool `yaml:"enabled"`
|
Enabled bool `yaml:"enabled"`
|
||||||
Grafana struct {
|
Grafana struct {
|
||||||
Enabled bool `yaml:"enabled"`
|
Enabled bool `yaml:"enabled"`
|
||||||
Image string `yaml:"image" env-default:"grafana/grafana"`
|
Image string `yaml:"image" env-default:"harbor.kvazaric.ru/kube-forge/grafana"`
|
||||||
Tag string `yaml:"tag" env-default:"10.4.1"`
|
Tag string `yaml:"tag" env-default:"10.4.1-v2"`
|
||||||
Expose struct {
|
Expose struct {
|
||||||
Type string `yaml:"type" env-default:"ingress"`
|
Type string `yaml:"type" env-default:"ingress"`
|
||||||
Domain string `yaml:"domain" env-default:""`
|
Domain string `yaml:"domain" env-default:""`
|
||||||
|
|||||||
@@ -245,6 +245,7 @@
|
|||||||
{{- if and .Modules.Observability.Enabled .Modules.Observability.Logging.Enabled }}
|
{{- if and .Modules.Observability.Enabled .Modules.Observability.Logging.Enabled }}
|
||||||
- name: Kube-loki
|
- name: Kube-loki
|
||||||
type: loki
|
type: loki
|
||||||
|
uid: P2895588539814C92
|
||||||
access: proxy
|
access: proxy
|
||||||
url: http://loki:3100
|
url: http://loki:3100
|
||||||
editable: false
|
editable: false
|
||||||
@@ -288,7 +289,7 @@
|
|||||||
exporters: [otlphttp]
|
exporters: [otlphttp]
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
{{- if eq .Modules.Observability.Visualization.Grafana.Expose.Type "ingress" }}
|
{{- if and .Modules.Observability.Visualization.Grafana.Enabled (eq .Modules.Observability.Visualization.Grafana.Expose.Type "ingress") }}
|
||||||
enabled: true
|
enabled: true
|
||||||
{{- else }}
|
{{- else }}
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|||||||
@@ -4039,8 +4039,8 @@ releases:
|
|||||||
domain: &grafanaDomain grafana.disk.lt.t1.cloud
|
domain: &grafanaDomain grafana.disk.lt.t1.cloud
|
||||||
path: /
|
path: /
|
||||||
image:
|
image:
|
||||||
repository: grafana/grafana
|
repository: harbor.kvazaric.ru/kube-forge/grafana
|
||||||
tag: 10.4.1
|
tag: 10.4.1-v2
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
storageClassName: "local-path"
|
storageClassName: "local-path"
|
||||||
@@ -4066,6 +4066,7 @@ releases:
|
|||||||
additionalDatasources:
|
additionalDatasources:
|
||||||
- name: Kube-loki
|
- name: Kube-loki
|
||||||
type: loki
|
type: loki
|
||||||
|
uid: P2895588539814C92
|
||||||
access: proxy
|
access: proxy
|
||||||
url: http://loki:3100
|
url: http://loki:3100
|
||||||
editable: false
|
editable: false
|
||||||
@@ -4658,7 +4659,7 @@ releases:
|
|||||||
server.insecure: true
|
server.insecure: true
|
||||||
|
|
||||||
secret:
|
secret:
|
||||||
argocdServerAdminPassword: $2a$10$eb0YB2bJ/B9XvAOACyvWGOUMDfyOO.Jfej8DyA.7MhzzwhopgkVFq
|
argocdServerAdminPassword: $2a$10$eNxOwjtN3LQI43LN955F5uaOw3/i1pIp7xes.krK0GDZiDv1SMfNi
|
||||||
|
|
||||||
repositories:
|
repositories:
|
||||||
# add default helm-repository from harbor
|
# add default helm-repository from harbor
|
||||||
@@ -4666,7 +4667,7 @@ releases:
|
|||||||
|
|
||||||
cm:
|
cm:
|
||||||
create: true
|
create: true
|
||||||
url: "https://cicd.disk.lt.t1.cloud"
|
url: "https://argocd.disk.lt.t1.cloud"
|
||||||
|
|
||||||
accounts.developer: login
|
accounts.developer: login
|
||||||
accounts.guest: login
|
accounts.guest: login
|
||||||
@@ -5384,7 +5385,7 @@ releases:
|
|||||||
release_state: "present"
|
release_state: "present"
|
||||||
values:
|
values:
|
||||||
services:
|
services:
|
||||||
- domain: cicd.disk.lt.t1.cloud
|
- domain: argocd.disk.lt.t1.cloud
|
||||||
path: /
|
path: /
|
||||||
address: argo-cd-argocd-server
|
address: argo-cd-argocd-server
|
||||||
port: 80
|
port: 80
|
||||||
|
|||||||
Reference in New Issue
Block a user