Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created base for prometheus helm chart with local storage as storagec…
…lass.
- Loading branch information
0 parents
commit ee7ba75
Showing
11 changed files
with
179 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
charts/*.tgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: v1 | ||
appVersion: "9.1.0" | ||
description: Prometheus helm chart for On-Prem / K3S or wherever cloud storage is not available. | ||
name: pixelpiloten_prometheus | ||
version: 1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
dependencies: | ||
- name: prometheus | ||
repository: https://kubernetes-charts.storage.googleapis.com | ||
version: 9.1.0 | ||
digest: sha256:1ae823611368c531c061bf933492924b74e45988443901ac3d26a53f7745480f | ||
generated: "2019-09-06T13:49:26.180559982+02:00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
dependencies: | ||
- name: prometheus | ||
version: "9.1.0" | ||
repository: https://kubernetes-charts.storage.googleapis.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
kind: Namespace | ||
apiVersion: v1 | ||
metadata: | ||
name: "{{ .Values.pixelpiloten.namespace }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolume | ||
metadata: | ||
name: pv-alertmanager | ||
namespace: "{{ .Values.pixelpiloten.namespace }}" | ||
spec: | ||
capacity: | ||
storage: "{{ .Values.pixelpiloten.alertmanager.storageCapacity }}" | ||
accessModes: | ||
- ReadWriteOnce | ||
persistentVolumeReclaimPolicy: Retain | ||
storageClassName: "{{ .Values.pixelpiloten.storageClassName }}" | ||
local: | ||
path: "{{ .Values.pixelpiloten.alertmanager.localPath }}" | ||
nodeAffinity: | ||
required: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: kubernetes.io/hostname | ||
operator: In | ||
values: | ||
- "{{ .Values.pixelpiloten.nodeName }}" | ||
--- | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: pvc-alertmanager | ||
namespace: "{{ .Values.pixelpiloten.namespace }}" | ||
spec: | ||
storageClassName: "{{ .Values.pixelpiloten.storageClassName }}" | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: "{{ .Values.pixelpiloten.alertmanager.storageCapacity }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolume | ||
metadata: | ||
name: pv-pushgateway | ||
namespace: "{{ .Values.pixelpiloten.namespace }}" | ||
spec: | ||
capacity: | ||
storage: "{{ .Values.pixelpiloten.pushgateway.storageCapacity }}" | ||
accessModes: | ||
- ReadWriteOnce | ||
persistentVolumeReclaimPolicy: Retain | ||
storageClassName: "{{ .Values.pixelpiloten.storageClassName }}" | ||
local: | ||
path: "{{ .Values.pixelpiloten.pushgateway.localPath }}" | ||
nodeAffinity: | ||
required: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: kubernetes.io/hostname | ||
operator: In | ||
values: | ||
- "{{ .Values.pixelpiloten.nodeName }}" | ||
--- | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: pvc-pushgateway | ||
namespace: "{{ .Values.pixelpiloten.namespace }}" | ||
spec: | ||
storageClassName: "{{ .Values.pixelpiloten.storageClassName }}" | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: "{{ .Values.pixelpiloten.pushgateway.storageCapacity }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolume | ||
metadata: | ||
name: pv-server | ||
namespace: "{{ .Values.pixelpiloten.namespace }}" | ||
spec: | ||
capacity: | ||
storage: "{{ .Values.pixelpiloten.server.storageCapacity }}" | ||
accessModes: | ||
- ReadWriteOnce | ||
persistentVolumeReclaimPolicy: Retain | ||
storageClassName: "{{ .Values.pixelpiloten.storageClassName }}" | ||
local: | ||
path: "{{ .Values.pixelpiloten.server.localPath }}" | ||
nodeAffinity: | ||
required: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: kubernetes.io/hostname | ||
operator: In | ||
values: | ||
- "{{ .Values.pixelpiloten.nodeName }}" | ||
--- | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: pvc-server | ||
namespace: "{{ .Values.pixelpiloten.namespace }}" | ||
spec: | ||
storageClassName: "{{ .Values.pixelpiloten.storageClassName }}" | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: "{{ .Values.pixelpiloten.server.storageCapacity }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: storage.k8s.io/v1 | ||
kind: StorageClass | ||
metadata: | ||
name: "{{ .Values.pixelpiloten.storageClassName }}" | ||
provisioner: kubernetes.io/no-provisioner | ||
volumeBindingMode: WaitForFirstConsumer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# This helm charts values. | ||
pixelpiloten: | ||
namespace: monitoring | ||
storageClassName: local-storage | ||
nodeName: mynode | ||
alertmanager: | ||
storageCapacity: 2Gi | ||
localPath: /myvolumes/prometheus/alertmanager | ||
pushgateway: | ||
storageCapacity: 2Gi | ||
localPath: /myvolumes/prometheus/pushgateway | ||
server: | ||
storageCapacity: 2Gi | ||
localPath: /myvolumes/prometheus/server | ||
|
||
# Prometheus helm chart values. | ||
prometheus: | ||
alertmanager: | ||
persistentVolume: | ||
existingClaim: pvc-alertmanager | ||
pushgateway: | ||
persistentVolume: | ||
existingClaim: pvc-pushgateway | ||
server: | ||
persistentVolume: | ||
existingClaim: pvc-server |