Skip to content
Snippets Groups Projects
Commit 889a729f authored by Xiang Dai's avatar Xiang Dai Committed by Tom Wilkie
Browse files

Fix helm install error (#305)


* update helm values yaml

- set persistence.enabled as 'false' as default since there is no pv as
default

- set persistence.storageClassName as 'default' since even if pv exists, pvc
still need storageClassName:

```
  Normal  FailedBinding  8s (x4 over 35s)  persistentvolume-controller  no persistent volumes available for this claim and no storage class is set
```

Signed-off-by: default avatarXiang Dai <764524258@qq.com>

* helm: delete duplicate empty blank

Signed-off-by: default avatarXiang Dai <764524258@qq.com>
parent 95c407ec
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ $ helm install . -n loki --namespace <YOUR-NAMESPACE>
To install Grafana on your cluster with helm, use the following command:
```bash
$ helm install stable/grafana -n loki-grafana -f grafana.yaml --namespace <YOUR-NAMESPACE>
$ helm install stable/grafana -n loki-grafana -f grafana.yaml --namespace <YOUR-NAMESPACE>
```
To get the admin password for the Grafana pod, run the following command:
......
......@@ -40,7 +40,7 @@ spec:
- name: {{ .Chart.Name }}
image: "{{ .Values.loki.image.repository }}:{{ .Values.loki.image.tag }}"
imagePullPolicy: {{ .Values.loki.image.pullPolicy }}
args:
args:
- "-config.file=/etc/loki/loki.yaml"
volumeMounts:
- name: config
......
......@@ -19,6 +19,6 @@ rules:
- nodes/proxy
- services
- endpoints
- pods
- pods
verbs: ["get", "watch", "list"]
{{- end}}
\ No newline at end of file
......@@ -40,7 +40,7 @@ spec:
- name: {{ .Chart.Name }}
image: "{{ .Values.promtail.image.repository }}:{{ .Values.promtail.image.tag }}"
imagePullPolicy: {{ .Values.promtail.image.pullPolicy }}
args:
args:
- "-config.file=/etc/promtail/promtail.yaml"
- "-client.url=http://{{ template "loki.fullname" . }}:{{ .Values.loki.service.port }}/api/prom/push"
volumeMounts:
......
......@@ -4,9 +4,9 @@ rbac:
serviceAccount:
create: true
name:
name:
loki:
loki:
replicas: 1
deploymentStrategy: RollingUpdate
......@@ -58,13 +58,15 @@ loki:
## Enable persistence using Persistent Volume Claims
## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
##
## If you set enabled as "True", you need :
## - create a pv which above 10Gi and has same namespace with loki
## - keep storageClassName same with below setting
persistence:
enabled: true
enabled: false
accessModes:
- ReadWriteOnce
size: 10Gi
# storageClassName: default
storageClassName: default
# annotations: {}
# subPath: ""
# existingClaim:
......@@ -97,7 +99,7 @@ promtail:
image:
repository: grafana/promtail
tag: master
tag: master
pullPolicy: IfNotPresent
service:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment