Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
Moved to statefulset
Browse files Browse the repository at this point in the history
  • Loading branch information
jeluard committed Feb 22, 2021
1 parent 981f412 commit b529687
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 30 deletions.
15 changes: 11 additions & 4 deletions conf/k8s/base/prometheus/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
apiVersion: apps/v1
kind: Deployment
kind: StatefulSet
metadata:
name: prometheus
spec:
serviceName: "prometheus"
replicas: 1
template:
metadata:
Expand Down Expand Up @@ -31,6 +32,12 @@ spec:
- name: prometheus-config-volume
configMap:
name: prometheus-configuration
- name: prometheus-storage-volume
persistentVolumeClaim:
claimName: prometheus-volume-claim
volumeClaimTemplates:
- metadata:
name: prometheus-storage-volume
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: "16Gi"
3 changes: 1 addition & 2 deletions conf/k8s/base/prometheus/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ resources:
- deployment.yaml
- rbac.yaml
- service.yaml
- volume.yaml
images:
- name: prom/prometheus
newTag: v2.22.1
configMapGenerator:
- name: prometheus-configuration
files:
- prometheus.yaml
- prometheus.yaml
24 changes: 0 additions & 24 deletions conf/k8s/base/prometheus/volume.yaml

This file was deleted.

0 comments on commit b529687

Please sign in to comment.