fix(blocky/grafana): minor fixes (#7752)

* fix(blocky): fix k8s-gateway not deploying when enabled

* also fix grafana

* more grafana fixes

* caps

* try something else

* stupid selector mistake
This commit is contained in:
Kjeld Schouten-Lebbing
2023-03-06 22:50:19 +01:00
committed by GitHub
parent d64280c823
commit b5f09feffc
5 changed files with 62 additions and 68 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ sources:
- https://0xerr0r.github.io/blocky/ - https://0xerr0r.github.io/blocky/
- https://github.com/0xERR0R/blocky - https://github.com/0xERR0R/blocky
- https://github.com/Mozart409/blocky-frontend - https://github.com/Mozart409/blocky-frontend
version: 5.0.5 version: 5.0.6
annotations: annotations:
truecharts.org/catagories: | truecharts.org/catagories: |
- network - network
@@ -1,28 +1,24 @@
{{- define "k8sgateway.container" -}} {{- define "k8sgateway.container" -}}
image: {{ .Values.k8sgatewayImage.repository }}:{{ .Values.k8sgatewayImage.tag }} enabled: true
imagePullPolicy: {{ .Values.k8sgatewayImage.pullPolicy }} imageSelector: k8sgatewayImage
securityContext: securityContext:
runAsUser: 0 runAsUser: 0
runAsGroup: 0 runAsGroup: 0
readOnlyRootFilesystem: true readOnlyRootFilesystem: true
runAsNonRoot: false
args: ["-conf", "/etc/coredns/Corefile"] args: ["-conf", "/etc/coredns/Corefile"]
volumeMounts: probes:
- name: config-volume
mountPath: /etc/coredns
probe:
readiness: readiness:
httpGet: enabled: true
path: /ready path: /ready
port: 8181 port: 8181
liveness: liveness:
httpGet: enabled: true
path: /health path: /health
port: 8080 port: 8080
startup: startup:
httpGet: enabled: true
path: /ready path: /ready
port: 8181 port: 8181
{{- end -}} {{- end -}}
{{/* {{/*
@@ -27,12 +27,16 @@ subPath: config.yml
{{- define "k8sgateway.configvolume" -}} {{- define "k8sgateway.configvolume" -}}
enabled: true enabled: true
type: configmap type: configmap
mountPath: "/etc/coredns"
objectName: corefile objectName: corefile
readOnly: true
items: items:
- key: Corefile - key: Corefile
path: Corefile path: Corefile
targetSelector:
main:
k8sgateway:
mountPath: "/etc/coredns"
readOnly: true
{{- end -}} {{- end -}}
{{- $_ := set .Values.persistence "tc-config" (include "blocky.configmap.mount" . | fromYaml) -}} {{- $_ := set .Values.persistence "tc-config" (include "blocky.configmap.mount" . | fromYaml) -}}
+1 -1
View File
@@ -25,7 +25,7 @@ sources:
- https://github.com/bitnami/bitnami-docker-grafana - https://github.com/bitnami/bitnami-docker-grafana
- https://grafana.com/ - https://grafana.com/
type: application type: application
version: 7.0.4 version: 7.0.5
annotations: annotations:
truecharts.org/catagories: | truecharts.org/catagories: |
- metrics - metrics
+42 -48
View File
@@ -10,57 +10,51 @@ questions:
# Include{replicas1} # Include{replicas1}
# Include{podSpec} # Include{podSpec}
# Include{containerMain} # Include{containerMain}
- variable: env
group: "App Configuration"
label: "Image Environment"
schema:
additional_attrs: true
type: dict
attrs:
- variable: GF_SECURITY_ADMIN_USER
label: "Admin User"
schema:
type: string
required: true
default: "admin"
- variable: GF_SECURITY_ADMIN_PASSWORD
label: "Admin Password"
schema:
type: string
required: true
private: true
default: "REPLACETHIS"
- variable: GF_INSTALL_PLUGINS
label: "Extra Plugins to Install"
description: "comma seperated"
schema:
type: string
default: ""
- variable: GF_AUTH_LDAP_ENABLED
label: "enable LDAP"
schema:
type: boolean
default: false
- variable: GF_AUTH_LDAP_ALLOW_SIGN_UP
label: "Allow LDAP Signup"
schema:
type: boolean
default: false
- variable: GF_AUTH_LDAP_CONFIG_FILE
label: "LDAP Config Path"
schema:
type: string
default: "/opt/bitnami/grafana/conf/ldap.toml"
# Include{containerBasic} # Include{containerBasic}
# Include{containerAdvanced} # Include{containerAdvanced}
- variable: secretEnv
group: "App Configuration"
label: "Secret Image Environment"
schema:
additional_attrs: true
type: dict
attrs:
- variable: GF_SECURITY_ADMIN_USER
label: "Admin User"
schema:
type: string
required: true
default: "admin"
- variable: GF_SECURITY_ADMIN_PASSWORD
label: "Admin Password"
schema:
type: string
required: true
private: true
default: "REPLACETHIS"
- variable: env
group: "App Configuration"
label: "Image Environment"
schema:
additional_attrs: true
type: dict
attrs:
- variable: GF_INSTALL_PLUGINS
label: "Extra Plugins to Install"
description: "comma seperated"
schema:
type: string
default: ""
- variable: GF_AUTH_LDAP_ENABLED
label: "enable LDAP"
schema:
type: boolean
default: false
- variable: GF_AUTH_LDAP_ALLOW_SIGN_UP
label: "Allow LDAP Signup"
schema:
type: boolean
default: false
- variable: GF_AUTH_LDAP_CONFIG_FILE
label: "LDAP Config Path"
schema:
type: string
default: "/opt/bitnami/grafana/conf/ldap.toml"
# Include{containerConfig} # Include{containerConfig}
# Include{serviceRoot} # Include{serviceRoot}
- variable: main - variable: main