Skip to content

Commit

Permalink
kube/prometheus2: missing config map in prometheus
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaguiar authored Jan 9, 2024
1 parent b70ae90 commit 4e444e9
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions kube/prometheus2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,21 @@ init:
ports:
- name: http
containerPort: 9090
{{#if usePVC}}volumeMounts:
volumeMounts:
- name: prometheus-config
mountPath: /etc/prometheus/
{{#if usePVC}}
- name: prometheus
mountPath: /prometheus{{/if}}
restartPolicy: Always
securityContext:
fsGroup: 2000
{{#if usePVC}}volumes:
volumes:
- name: prometheus-config
configMap:
defaultMode: 420
name : prometheus
{{#if usePVC}}
- name: prometheus
persistentVolumeClaim:
claimName: prometheus{{/if}}
Expand Down

0 comments on commit 4e444e9

Please sign in to comment.