prometheus: Update chart

This commit is contained in:
Rob Watson 2022-12-20 09:02:41 +01:00
parent 9eb4d87fcb
commit 6ace4a6415
39 changed files with 496 additions and 513 deletions

View File

@ -0,0 +1,24 @@
---
# Source: prometheus/charts/alertmanager/templates/configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: prometheus-alertmanager
labels:
helm.sh/chart: alertmanager-0.22.2
app.kubernetes.io/name: alertmanager
app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "v0.24.0"
app.kubernetes.io/managed-by: Helm
data:
alertmanager.yml: |
global: {}
receivers:
- name: default-receiver
route:
group_interval: 5m
group_wait: 10s
receiver: default-receiver
repeat_interval: 3h
templates:
- /etc/alertmanager/*.tmpl

View File

@ -0,0 +1,12 @@
---
# Source: prometheus/charts/alertmanager/templates/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: prometheus-alertmanager
labels:
helm.sh/chart: alertmanager-0.22.2
app.kubernetes.io/name: alertmanager
app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "v0.24.0"
app.kubernetes.io/managed-by: Helm

View File

@ -0,0 +1,44 @@
---
# Source: prometheus/charts/alertmanager/templates/services.yaml
apiVersion: v1
kind: Service
metadata:
name: prometheus-alertmanager
labels:
helm.sh/chart: alertmanager-0.22.2
app.kubernetes.io/name: alertmanager
app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "v0.24.0"
app.kubernetes.io/managed-by: Helm
spec:
type: ClusterIP
ports:
- port: 9093
targetPort: http
protocol: TCP
name: http
selector:
app.kubernetes.io/name: alertmanager
app.kubernetes.io/instance: prometheus
---
# Source: prometheus/charts/alertmanager/templates/services.yaml
apiVersion: v1
kind: Service
metadata:
name: prometheus-alertmanager-headless
labels:
helm.sh/chart: alertmanager-0.22.2
app.kubernetes.io/name: alertmanager
app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "v0.24.0"
app.kubernetes.io/managed-by: Helm
spec:
clusterIP: None
ports:
- port: 9093
targetPort: http
protocol: TCP
name: http
selector:
app.kubernetes.io/name: alertmanager
app.kubernetes.io/instance: prometheus

View File

@ -0,0 +1,82 @@
---
# Source: prometheus/charts/alertmanager/templates/statefulset.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: prometheus-alertmanager
labels:
helm.sh/chart: alertmanager-0.22.2
app.kubernetes.io/name: alertmanager
app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "v0.24.0"
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: alertmanager
app.kubernetes.io/instance: prometheus
serviceName: prometheus-alertmanager-headless
template:
metadata:
labels:
app.kubernetes.io/name: alertmanager
app.kubernetes.io/instance: prometheus
annotations:
checksum/config: d22f3c67cff89938da2f783e00040109619b87e969186bf3b190d32dc540202c
spec:
serviceAccountName: prometheus-alertmanager
securityContext:
fsGroup: 65534
runAsGroup: 65534
runAsNonRoot: true
runAsUser: 65534
containers:
- name: alertmanager
securityContext:
runAsGroup: 65534
runAsNonRoot: true
runAsUser: 65534
image: "quay.io/prometheus/alertmanager:v0.24.0"
imagePullPolicy: IfNotPresent
env:
- name: POD_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
args:
- --storage.path=/alertmanager
- --config.file=/etc/alertmanager/alertmanager.yml
ports:
- name: http
containerPort: 9093
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
resources:
{}
volumeMounts:
- name: config
mountPath: /etc/alertmanager
- name: storage
mountPath: /alertmanager
volumes:
- name: config
configMap:
name: prometheus-alertmanager
volumeClaimTemplates:
- metadata:
name: storage
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi

View File

@ -0,0 +1,21 @@
---
# Source: prometheus/charts/alertmanager/templates/tests/test-connection.yaml
apiVersion: v1
kind: Pod
metadata:
name: "prometheus-alertmanager-test-connection"
labels:
helm.sh/chart: alertmanager-0.22.2
app.kubernetes.io/name: alertmanager
app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "v0.24.0"
app.kubernetes.io/managed-by: Helm
annotations:
"helm.sh/hook": test-success
spec:
containers:
- name: wget
image: busybox
command: ['wget']
args: ['prometheus-alertmanager:9093']
restartPolicy: Never

View File

@ -4,13 +4,13 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding kind: ClusterRoleBinding
metadata: metadata:
labels: labels:
helm.sh/chart: kube-state-metrics-4.7.0 helm.sh/chart: kube-state-metrics-4.24.0
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: kube-state-metrics app.kubernetes.io/part-of: kube-state-metrics
app.kubernetes.io/name: kube-state-metrics app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/instance: prometheus app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "2.4.1" app.kubernetes.io/version: "2.7.0"
name: prometheus-kube-state-metrics name: prometheus-kube-state-metrics
roleRef: roleRef:
apiGroup: rbac.authorization.k8s.io apiGroup: rbac.authorization.k8s.io

View File

@ -6,13 +6,13 @@ metadata:
name: prometheus-kube-state-metrics name: prometheus-kube-state-metrics
namespace: default namespace: default
labels: labels:
helm.sh/chart: kube-state-metrics-4.7.0 helm.sh/chart: kube-state-metrics-4.24.0
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: kube-state-metrics app.kubernetes.io/part-of: kube-state-metrics
app.kubernetes.io/name: kube-state-metrics app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/instance: prometheus app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "2.4.1" app.kubernetes.io/version: "2.7.0"
spec: spec:
selector: selector:
matchLabels: matchLabels:
@ -22,13 +22,13 @@ spec:
template: template:
metadata: metadata:
labels: labels:
helm.sh/chart: kube-state-metrics-4.7.0 helm.sh/chart: kube-state-metrics-4.24.0
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: kube-state-metrics app.kubernetes.io/part-of: kube-state-metrics
app.kubernetes.io/name: kube-state-metrics app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/instance: prometheus app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "2.4.1" app.kubernetes.io/version: "2.7.0"
spec: spec:
hostNetwork: false hostNetwork: false
serviceAccountName: prometheus-kube-state-metrics serviceAccountName: prometheus-kube-state-metrics
@ -40,10 +40,9 @@ spec:
- name: kube-state-metrics - name: kube-state-metrics
args: args:
- --port=8080 - --port=8080
- --resources=certificatesigningrequests,configmaps,cronjobs,daemonsets,deployments,endpoints,horizontalpodautoscalers,ingresses,jobs,limitranges,mutatingwebhookconfigurations,namespaces,networkpolicies,nodes,persistentvolumeclaims,persistentvolumes,poddisruptionbudgets,pods,replicasets,replicationcontrollers,resourcequotas,secrets,services,statefulsets,storageclasses,validatingwebhookconfigurations,volumeattachments - --resources=certificatesigningrequests,configmaps,cronjobs,daemonsets,deployments,endpoints,horizontalpodautoscalers,ingresses,jobs,leases,limitranges,mutatingwebhookconfigurations,namespaces,networkpolicies,nodes,persistentvolumeclaims,persistentvolumes,poddisruptionbudgets,pods,replicasets,replicationcontrollers,resourcequotas,secrets,services,statefulsets,storageclasses,validatingwebhookconfigurations,volumeattachments
- --telemetry-port=8081
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
image: "k8s.gcr.io/kube-state-metrics/kube-state-metrics:v2.4.1" image: "registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.7.0"
ports: ports:
- containerPort: 8080 - containerPort: 8080
name: "http" name: "http"

View File

@ -4,13 +4,13 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole kind: ClusterRole
metadata: metadata:
labels: labels:
helm.sh/chart: kube-state-metrics-4.7.0 helm.sh/chart: kube-state-metrics-4.24.0
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: kube-state-metrics app.kubernetes.io/part-of: kube-state-metrics
app.kubernetes.io/name: kube-state-metrics app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/instance: prometheus app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "2.4.1" app.kubernetes.io/version: "2.7.0"
name: prometheus-kube-state-metrics name: prometheus-kube-state-metrics
rules: rules:
@ -59,6 +59,11 @@ rules:
- jobs - jobs
verbs: ["list", "watch"] verbs: ["list", "watch"]
- apiGroups: ["coordination.k8s.io"]
resources:
- leases
verbs: ["list", "watch"]
- apiGroups: [""] - apiGroups: [""]
resources: resources:
- limitranges - limitranges

View File

@ -6,13 +6,13 @@ metadata:
name: prometheus-kube-state-metrics name: prometheus-kube-state-metrics
namespace: default namespace: default
labels: labels:
helm.sh/chart: kube-state-metrics-4.7.0 helm.sh/chart: kube-state-metrics-4.24.0
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: kube-state-metrics app.kubernetes.io/part-of: kube-state-metrics
app.kubernetes.io/name: kube-state-metrics app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/instance: prometheus app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "2.4.1" app.kubernetes.io/version: "2.7.0"
annotations: annotations:
prometheus.io/scrape: 'true' prometheus.io/scrape: 'true'
spec: spec:

View File

@ -4,13 +4,13 @@ apiVersion: v1
kind: ServiceAccount kind: ServiceAccount
metadata: metadata:
labels: labels:
helm.sh/chart: kube-state-metrics-4.7.0 helm.sh/chart: kube-state-metrics-4.24.0
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: kube-state-metrics app.kubernetes.io/part-of: kube-state-metrics
app.kubernetes.io/name: kube-state-metrics app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/instance: prometheus app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "2.4.1" app.kubernetes.io/version: "2.7.0"
name: prometheus-kube-state-metrics name: prometheus-kube-state-metrics
namespace: default namespace: default
imagePullSecrets: imagePullSecrets:

View File

@ -0,0 +1,110 @@
---
# Source: prometheus/charts/prometheus-node-exporter/templates/daemonset.yaml
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: prometheus-prometheus-node-exporter
namespace: default
labels:
helm.sh/chart: prometheus-node-exporter-4.8.0
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: prometheus-node-exporter
app.kubernetes.io/name: prometheus-node-exporter
app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "1.5.0"
spec:
selector:
matchLabels:
app.kubernetes.io/name: prometheus-node-exporter
app.kubernetes.io/instance: prometheus
updateStrategy:
rollingUpdate:
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
annotations:
cluster-autoscaler.kubernetes.io/safe-to-evict: "true"
labels:
helm.sh/chart: prometheus-node-exporter-4.8.0
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: prometheus-node-exporter
app.kubernetes.io/name: prometheus-node-exporter
app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "1.5.0"
spec:
automountServiceAccountToken: false
securityContext:
fsGroup: 65534
runAsGroup: 65534
runAsNonRoot: true
runAsUser: 65534
serviceAccountName: prometheus-prometheus-node-exporter
containers:
- name: node-exporter
image: quay.io/prometheus/node-exporter:v1.5.0
imagePullPolicy: IfNotPresent
args:
- --path.procfs=/host/proc
- --path.sysfs=/host/sys
- --path.rootfs=/host/root
- --web.listen-address=[$(HOST_IP)]:9100
securityContext:
allowPrivilegeEscalation: false
env:
- name: HOST_IP
value: 0.0.0.0
ports:
- name: metrics
containerPort: 9100
protocol: TCP
livenessProbe:
failureThreshold: 3
httpGet:
httpHeaders:
path: /
port: 9100
scheme: HTTP
initialDelaySeconds: 0
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
readinessProbe:
failureThreshold: 3
httpGet:
httpHeaders:
path: /
port: 9100
scheme: HTTP
initialDelaySeconds: 0
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
volumeMounts:
- name: proc
mountPath: /host/proc
readOnly: true
- name: sys
mountPath: /host/sys
readOnly: true
- name: root
mountPath: /host/root
mountPropagation: HostToContainer
readOnly: true
hostNetwork: true
hostPID: true
tolerations:
- effect: NoSchedule
operator: Exists
volumes:
- name: proc
hostPath:
path: /proc
- name: sys
hostPath:
path: /sys
- name: root
hostPath:
path: /

View File

@ -0,0 +1,27 @@
---
# Source: prometheus/charts/prometheus-node-exporter/templates/service.yaml
apiVersion: v1
kind: Service
metadata:
name: prometheus-prometheus-node-exporter
namespace: default
labels:
helm.sh/chart: prometheus-node-exporter-4.8.0
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: prometheus-node-exporter
app.kubernetes.io/name: prometheus-node-exporter
app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "1.5.0"
annotations:
prometheus.io/scrape: "true"
spec:
type: ClusterIP
ports:
- port: 9100
targetPort: 9100
protocol: TCP
name: metrics
selector:
app.kubernetes.io/name: prometheus-node-exporter
app.kubernetes.io/instance: prometheus

View File

@ -0,0 +1,15 @@
---
# Source: prometheus/charts/prometheus-node-exporter/templates/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: prometheus-prometheus-node-exporter
namespace: default
labels:
helm.sh/chart: prometheus-node-exporter-4.8.0
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: metrics
app.kubernetes.io/part-of: prometheus-node-exporter
app.kubernetes.io/name: prometheus-node-exporter
app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "1.5.0"

View File

@ -0,0 +1,61 @@
---
# Source: prometheus/charts/prometheus-pushgateway/templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
helm.sh/chart: prometheus-pushgateway-2.0.2
app.kubernetes.io/name: prometheus-pushgateway
app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "v1.5.1"
app.kubernetes.io/managed-by: Helm
name: prometheus-prometheus-pushgateway
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app.kubernetes.io/name: prometheus-pushgateway
app.kubernetes.io/instance: prometheus
template:
metadata:
labels:
helm.sh/chart: prometheus-pushgateway-2.0.2
app.kubernetes.io/name: prometheus-pushgateway
app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "v1.5.1"
app.kubernetes.io/managed-by: Helm
spec:
serviceAccountName: prometheus-prometheus-pushgateway
containers:
- name: pushgateway
image: "prom/pushgateway:v1.5.1"
imagePullPolicy: IfNotPresent
ports:
- name: metrics
containerPort: 9091
protocol: TCP
livenessProbe:
httpGet:
path: /-/ready
port: 9091
initialDelaySeconds: 10
timeoutSeconds: 10
readinessProbe:
httpGet:
path: /-/ready
port: 9091
initialDelaySeconds: 10
timeoutSeconds: 10
volumeMounts:
- name: storage-volume
mountPath: "/data"
subPath: ""
securityContext:
fsGroup: 65534
runAsNonRoot: true
runAsUser: 65534
volumes:
- name: storage-volume
emptyDir: {}

View File

@ -0,0 +1,24 @@
---
# Source: prometheus/charts/prometheus-pushgateway/templates/service.yaml
apiVersion: v1
kind: Service
metadata:
annotations:
prometheus.io/probe: pushgateway
labels:
helm.sh/chart: prometheus-pushgateway-2.0.2
app.kubernetes.io/name: prometheus-pushgateway
app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "v1.5.1"
app.kubernetes.io/managed-by: Helm
name: prometheus-prometheus-pushgateway
spec:
type: ClusterIP
ports:
- port: 9091
targetPort: 9091
protocol: TCP
name: http
selector:
app.kubernetes.io/name: prometheus-pushgateway
app.kubernetes.io/instance: prometheus

View File

@ -0,0 +1,12 @@
---
# Source: prometheus/charts/prometheus-pushgateway/templates/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
helm.sh/chart: prometheus-pushgateway-2.0.2
app.kubernetes.io/name: prometheus-pushgateway
app.kubernetes.io/instance: prometheus
app.kubernetes.io/version: "v1.5.1"
app.kubernetes.io/managed-by: Helm
name: prometheus-prometheus-pushgateway

View File

@ -1,14 +0,0 @@
---
# Source: prometheus/templates/alertmanager/clusterrole.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
component: "alertmanager"
app: prometheus
release: prometheus
chart: prometheus-15.8.6
heritage: Helm
name: prometheus-alertmanager
rules:
[]

View File

@ -1,20 +0,0 @@
---
# Source: prometheus/templates/alertmanager/clusterrolebinding.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
labels:
component: "alertmanager"
app: prometheus
release: prometheus
chart: prometheus-15.8.6
heritage: Helm
name: prometheus-alertmanager
subjects:
- kind: ServiceAccount
name: prometheus-alertmanager
namespace: default
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: prometheus-alertmanager

View File

@ -1,23 +0,0 @@
---
# Source: prometheus/templates/alertmanager/cm.yaml
apiVersion: v1
kind: ConfigMap
metadata:
labels:
component: "alertmanager"
app: prometheus
release: prometheus
chart: prometheus-15.8.6
heritage: Helm
name: prometheus-alertmanager
namespace: default
data:
alertmanager.yml: |
global: {}
receivers:
- name: default-receiver
route:
group_interval: 5m
group_wait: 10s
receiver: default-receiver
repeat_interval: 3h

View File

@ -1,86 +0,0 @@
---
# Source: prometheus/templates/alertmanager/deploy.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
component: "alertmanager"
app: prometheus
release: prometheus
chart: prometheus-15.8.6
heritage: Helm
name: prometheus-alertmanager
namespace: default
spec:
selector:
matchLabels:
component: "alertmanager"
app: prometheus
release: prometheus
replicas: 1
template:
metadata:
labels:
component: "alertmanager"
app: prometheus
release: prometheus
chart: prometheus-15.8.6
heritage: Helm
spec:
serviceAccountName: prometheus-alertmanager
containers:
- name: prometheus-alertmanager
image: "quay.io/prometheus/alertmanager:v0.23.0"
imagePullPolicy: "IfNotPresent"
env:
- name: POD_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
args:
- --config.file=/etc/config/alertmanager.yml
- --storage.path=/data
- --cluster.listen-address=
- --web.external-url=http://localhost:9093
ports:
- containerPort: 9093
readinessProbe:
httpGet:
path: /-/ready
port: 9093
initialDelaySeconds: 30
timeoutSeconds: 30
resources:
{}
volumeMounts:
- name: config-volume
mountPath: /etc/config
- name: storage-volume
mountPath: "/data"
subPath: ""
- name: prometheus-alertmanager-configmap-reload
image: "jimmidyson/configmap-reload:v0.5.0"
imagePullPolicy: "IfNotPresent"
args:
- --volume-dir=/etc/config
- --webhook-url=http://127.0.0.1:9093/-/reload
resources:
{}
volumeMounts:
- name: config-volume
mountPath: /etc/config
readOnly: true
securityContext:
fsGroup: 65534
runAsGroup: 65534
runAsNonRoot: true
runAsUser: 65534
volumes:
- name: config-volume
configMap:
name: prometheus-alertmanager
- name: storage-volume
persistentVolumeClaim:
claimName: prometheus-alertmanager

View File

@ -1,19 +0,0 @@
---
# Source: prometheus/templates/alertmanager/pvc.yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
component: "alertmanager"
app: prometheus
release: prometheus
chart: prometheus-15.8.6
heritage: Helm
name: prometheus-alertmanager
namespace: default
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: "2Gi"

View File

@ -1,25 +0,0 @@
---
# Source: prometheus/templates/alertmanager/service.yaml
apiVersion: v1
kind: Service
metadata:
labels:
component: "alertmanager"
app: prometheus
release: prometheus
chart: prometheus-15.8.6
heritage: Helm
name: prometheus-alertmanager
namespace: default
spec:
ports:
- name: http
port: 80
protocol: TCP
targetPort: 9093
selector:
component: "alertmanager"
app: prometheus
release: prometheus
sessionAffinity: None
type: "ClusterIP"

View File

@ -1,15 +0,0 @@
---
# Source: prometheus/templates/alertmanager/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
component: "alertmanager"
app: prometheus
release: prometheus
chart: prometheus-15.8.6
heritage: Helm
name: prometheus-alertmanager
namespace: default
annotations:
{}

View File

@ -1,5 +1,5 @@
--- ---
# Source: prometheus/templates/server/clusterrole.yaml # Source: prometheus/templates/clusterrole.yaml
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole kind: ClusterRole
metadata: metadata:
@ -7,7 +7,7 @@ metadata:
component: "server" component: "server"
app: prometheus app: prometheus
release: prometheus release: prometheus
chart: prometheus-15.8.6 chart: prometheus-19.0.2
heritage: Helm heritage: Helm
name: prometheus-server name: prometheus-server
rules: rules:

View File

@ -1,5 +1,5 @@
--- ---
# Source: prometheus/templates/server/clusterrolebinding.yaml # Source: prometheus/templates/clusterrolebinding.yaml
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding kind: ClusterRoleBinding
metadata: metadata:
@ -7,7 +7,7 @@ metadata:
component: "server" component: "server"
app: prometheus app: prometheus
release: prometheus release: prometheus
chart: prometheus-15.8.6 chart: prometheus-19.0.2
heritage: Helm heritage: Helm
name: prometheus-server name: prometheus-server
subjects: subjects:

View File

@ -1,5 +1,5 @@
--- ---
# Source: prometheus/templates/server/cm.yaml # Source: prometheus/templates/cm.yaml
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
@ -7,11 +7,12 @@ metadata:
component: "server" component: "server"
app: prometheus app: prometheus
release: prometheus release: prometheus
chart: prometheus-15.8.6 chart: prometheus-19.0.2
heritage: Helm heritage: Helm
name: prometheus-server name: prometheus-server
namespace: default namespace: default
data: data:
allow-snippet-annotations: "false"
alerting_rules.yml: | alerting_rules.yml: |
{} {}
alerts: | alerts: |
@ -106,7 +107,7 @@ data:
- __meta_kubernetes_service_annotation_prometheus_io_path - __meta_kubernetes_service_annotation_prometheus_io_path
target_label: __metrics_path__ target_label: __metrics_path__
- action: replace - action: replace
regex: ([^:]+)(?::\d+)?;(\d+) regex: (.+?)(?::\d+)?;(\d+)
replacement: $1:$2 replacement: $1:$2
source_labels: source_labels:
- __address__ - __address__
@ -149,7 +150,7 @@ data:
- __meta_kubernetes_service_annotation_prometheus_io_path - __meta_kubernetes_service_annotation_prometheus_io_path
target_label: __metrics_path__ target_label: __metrics_path__
- action: replace - action: replace
regex: ([^:]+)(?::\d+)?;(\d+) regex: (.+?)(?::\d+)?;(\d+)
replacement: $1:$2 replacement: $1:$2
source_labels: source_labels:
- __address__ - __address__
@ -236,7 +237,7 @@ data:
- __meta_kubernetes_pod_annotation_prometheus_io_path - __meta_kubernetes_pod_annotation_prometheus_io_path
target_label: __metrics_path__ target_label: __metrics_path__
- action: replace - action: replace
regex: ([^:]+)(?::\d+)?;(\d+) regex: (.+?)(?::\d+)?;(\d+)
replacement: $1:$2 replacement: $1:$2
source_labels: source_labels:
- __address__ - __address__
@ -279,7 +280,7 @@ data:
- __meta_kubernetes_pod_annotation_prometheus_io_path - __meta_kubernetes_pod_annotation_prometheus_io_path
target_label: __metrics_path__ target_label: __metrics_path__
- action: replace - action: replace
regex: ([^:]+)(?::\d+)?;(\d+) regex: (.+?)(?::\d+)?;(\d+)
replacement: $1:$2 replacement: $1:$2
source_labels: source_labels:
- __address__ - __address__
@ -315,15 +316,12 @@ data:
- source_labels: [__meta_kubernetes_namespace] - source_labels: [__meta_kubernetes_namespace]
regex: default regex: default
action: keep action: keep
- source_labels: [__meta_kubernetes_pod_label_app] - source_labels: [__meta_kubernetes_pod_label_app_kubernetes_io_instance]
regex: prometheus regex: prometheus
action: keep action: keep
- source_labels: [__meta_kubernetes_pod_label_component] - source_labels: [__meta_kubernetes_pod_label_app_kubernetes_io_name]
regex: alertmanager regex: alertmanager
action: keep action: keep
- source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_probe]
regex: .*
action: keep
- source_labels: [__meta_kubernetes_pod_container_port_number] - source_labels: [__meta_kubernetes_pod_container_port_number]
regex: "9093" regex: "9093"
action: keep action: keep

View File

@ -1,5 +1,5 @@
--- ---
# Source: prometheus/templates/server/deploy.yaml # Source: prometheus/templates/deploy.yaml
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
@ -7,7 +7,7 @@ metadata:
component: "server" component: "server"
app: prometheus app: prometheus
release: prometheus release: prometheus
chart: prometheus-15.8.6 chart: prometheus-19.0.2
heritage: Helm heritage: Helm
name: prometheus-server name: prometheus-server
namespace: default namespace: default
@ -18,20 +18,23 @@ spec:
app: prometheus app: prometheus
release: prometheus release: prometheus
replicas: 1 replicas: 1
strategy:
type: Recreate
rollingUpdate: null
template: template:
metadata: metadata:
labels: labels:
component: "server" component: "server"
app: prometheus app: prometheus
release: prometheus release: prometheus
chart: prometheus-15.8.6 chart: prometheus-19.0.2
heritage: Helm heritage: Helm
spec: spec:
enableServiceLinks: true enableServiceLinks: true
serviceAccountName: prometheus-server serviceAccountName: prometheus-server
containers: containers:
- name: prometheus-server-configmap-reload - name: prometheus-server-configmap-reload
image: "jimmidyson/configmap-reload:v0.5.0" image: "jimmidyson/configmap-reload:v0.8.0"
imagePullPolicy: "IfNotPresent" imagePullPolicy: "IfNotPresent"
args: args:
- --volume-dir=/etc/config - --volume-dir=/etc/config
@ -44,7 +47,7 @@ spec:
readOnly: true readOnly: true
- name: prometheus-server - name: prometheus-server
image: "quay.io/prometheus/prometheus:v2.34.0" image: "quay.io/prometheus/prometheus:v2.40.5"
imagePullPolicy: "IfNotPresent" imagePullPolicy: "IfNotPresent"
args: args:
- --storage.tsdb.retention.time=15d - --storage.tsdb.retention.time=15d
@ -83,7 +86,6 @@ spec:
- name: storage-volume - name: storage-volume
mountPath: /data mountPath: /data
subPath: "" subPath: ""
hostNetwork: false
dnsPolicy: ClusterFirst dnsPolicy: ClusterFirst
securityContext: securityContext:
fsGroup: 65534 fsGroup: 65534

View File

@ -1,76 +0,0 @@
---
# Source: prometheus/templates/node-exporter/daemonset.yaml
apiVersion: apps/v1
kind: DaemonSet
metadata:
labels:
component: "node-exporter"
app: prometheus
release: prometheus
chart: prometheus-15.8.6
heritage: Helm
name: prometheus-node-exporter
namespace: default
spec:
selector:
matchLabels:
component: "node-exporter"
app: prometheus
release: prometheus
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
component: "node-exporter"
app: prometheus
release: prometheus
chart: prometheus-15.8.6
heritage: Helm
spec:
serviceAccountName: prometheus-node-exporter
containers:
- name: prometheus-node-exporter
image: "quay.io/prometheus/node-exporter:v1.3.0"
imagePullPolicy: "IfNotPresent"
args:
- --path.procfs=/host/proc
- --path.sysfs=/host/sys
- --path.rootfs=/host/root
- --web.listen-address=:9100
ports:
- name: metrics
containerPort: 9100
hostPort: 9100
resources:
{}
securityContext:
allowPrivilegeEscalation: false
volumeMounts:
- name: proc
mountPath: /host/proc
readOnly: true
- name: sys
mountPath: /host/sys
readOnly: true
- name: root
mountPath: /host/root
mountPropagation: HostToContainer
readOnly: true
hostNetwork: true
hostPID: true
securityContext:
fsGroup: 65534
runAsGroup: 65534
runAsNonRoot: true
runAsUser: 65534
volumes:
- name: proc
hostPath:
path: /proc
- name: sys
hostPath:
path: /sys
- name: root
hostPath:
path: /

View File

@ -1,15 +0,0 @@
---
# Source: prometheus/templates/node-exporter/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
component: "node-exporter"
app: prometheus
release: prometheus
chart: prometheus-15.8.6
heritage: Helm
name: prometheus-node-exporter
namespace: default
annotations:
{}

View File

@ -1,27 +0,0 @@
---
# Source: prometheus/templates/node-exporter/svc.yaml
apiVersion: v1
kind: Service
metadata:
annotations:
prometheus.io/scrape: "true"
labels:
component: "node-exporter"
app: prometheus
release: prometheus
chart: prometheus-15.8.6
heritage: Helm
name: prometheus-node-exporter
namespace: default
spec:
clusterIP: None
ports:
- name: metrics
port: 9100
protocol: TCP
targetPort: 9100
selector:
component: "node-exporter"
app: prometheus
release: prometheus
type: "ClusterIP"

View File

@ -1,14 +0,0 @@
---
# Source: prometheus/templates/pushgateway/clusterrole.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
component: "pushgateway"
app: prometheus
release: prometheus
chart: prometheus-15.8.6
heritage: Helm
name: prometheus-pushgateway
rules:
[]

View File

@ -1,20 +0,0 @@
---
# Source: prometheus/templates/pushgateway/clusterrolebinding.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
labels:
component: "pushgateway"
app: prometheus
release: prometheus
chart: prometheus-15.8.6
heritage: Helm
name: prometheus-pushgateway
subjects:
- kind: ServiceAccount
name: prometheus-pushgateway
namespace: default
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: prometheus-pushgateway

View File

@ -1,54 +0,0 @@
---
# Source: prometheus/templates/pushgateway/deploy.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
component: "pushgateway"
app: prometheus
release: prometheus
chart: prometheus-15.8.6
heritage: Helm
name: prometheus-pushgateway
namespace: default
spec:
selector:
matchLabels:
component: "pushgateway"
app: prometheus
release: prometheus
replicas: 1
template:
metadata:
labels:
component: "pushgateway"
app: prometheus
release: prometheus
chart: prometheus-15.8.6
heritage: Helm
spec:
serviceAccountName: prometheus-pushgateway
containers:
- name: prometheus-pushgateway
image: "prom/pushgateway:v1.4.2"
imagePullPolicy: "IfNotPresent"
args:
ports:
- containerPort: 9091
livenessProbe:
httpGet:
path: /-/healthy
port: 9091
initialDelaySeconds: 10
timeoutSeconds: 10
readinessProbe:
httpGet:
path: /-/ready
port: 9091
initialDelaySeconds: 10
timeoutSeconds: 10
resources:
{}
securityContext:
runAsNonRoot: true
runAsUser: 65534

View File

@ -1,26 +0,0 @@
---
# Source: prometheus/templates/pushgateway/service.yaml
apiVersion: v1
kind: Service
metadata:
annotations:
prometheus.io/probe: pushgateway
labels:
component: "pushgateway"
app: prometheus
release: prometheus
chart: prometheus-15.8.6
heritage: Helm
name: prometheus-pushgateway
namespace: default
spec:
ports:
- name: http
port: 9091
protocol: TCP
targetPort: 9091
selector:
component: "pushgateway"
app: prometheus
release: prometheus
type: "ClusterIP"

View File

@ -1,15 +0,0 @@
---
# Source: prometheus/templates/pushgateway/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
component: "pushgateway"
app: prometheus
release: prometheus
chart: prometheus-15.8.6
heritage: Helm
name: prometheus-pushgateway
namespace: default
annotations:
{}

View File

@ -1,5 +1,5 @@
--- ---
# Source: prometheus/templates/server/pvc.yaml # Source: prometheus/templates/pvc.yaml
apiVersion: v1 apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:
@ -7,7 +7,7 @@ metadata:
component: "server" component: "server"
app: prometheus app: prometheus
release: prometheus release: prometheus
chart: prometheus-15.8.6 chart: prometheus-19.0.2
heritage: Helm heritage: Helm
name: prometheus-server name: prometheus-server
namespace: default namespace: default

View File

@ -1,5 +1,5 @@
--- ---
# Source: prometheus/templates/server/service.yaml # Source: prometheus/templates/service.yaml
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
@ -7,7 +7,7 @@ metadata:
component: "server" component: "server"
app: prometheus app: prometheus
release: prometheus release: prometheus
chart: prometheus-15.8.6 chart: prometheus-19.0.2
heritage: Helm heritage: Helm
name: prometheus-server name: prometheus-server
namespace: default namespace: default

View File

@ -1,5 +1,5 @@
--- ---
# Source: prometheus/templates/server/serviceaccount.yaml # Source: prometheus/templates/serviceaccount.yaml
apiVersion: v1 apiVersion: v1
kind: ServiceAccount kind: ServiceAccount
metadata: metadata:
@ -7,7 +7,7 @@ metadata:
component: "server" component: "server"
app: prometheus app: prometheus
release: prometheus release: prometheus
chart: prometheus-15.8.6 chart: prometheus-19.0.2
heritage: Helm heritage: Helm
name: prometheus-server name: prometheus-server
namespace: default namespace: default

View File

@ -31,33 +31,29 @@ resources:
- inflated/ingress-nginx/templates/admission-webhooks/validating-webhook.yaml - inflated/ingress-nginx/templates/admission-webhooks/validating-webhook.yaml
- inflated/ingress-nginx/templates/clusterrolebinding.yaml - inflated/ingress-nginx/templates/clusterrolebinding.yaml
# Prometheus # Prometheus
- inflated/prometheus/charts/prometheus-node-exporter/templates/daemonset.yaml
- inflated/prometheus/charts/prometheus-node-exporter/templates/serviceaccount.yaml
- inflated/prometheus/charts/prometheus-node-exporter/templates/service.yaml
- inflated/prometheus/charts/alertmanager/templates/serviceaccount.yaml
- inflated/prometheus/charts/alertmanager/templates/services.yaml
- inflated/prometheus/charts/alertmanager/templates/tests/test-connection.yaml
- inflated/prometheus/charts/alertmanager/templates/configmap.yaml
- inflated/prometheus/charts/alertmanager/templates/statefulset.yaml
- inflated/prometheus/charts/kube-state-metrics/templates/serviceaccount.yaml - inflated/prometheus/charts/kube-state-metrics/templates/serviceaccount.yaml
- inflated/prometheus/charts/kube-state-metrics/templates/deployment.yaml - inflated/prometheus/charts/kube-state-metrics/templates/deployment.yaml
- inflated/prometheus/charts/kube-state-metrics/templates/role.yaml - inflated/prometheus/charts/kube-state-metrics/templates/role.yaml
- inflated/prometheus/charts/kube-state-metrics/templates/service.yaml - inflated/prometheus/charts/kube-state-metrics/templates/service.yaml
- inflated/prometheus/charts/kube-state-metrics/templates/clusterrolebinding.yaml - inflated/prometheus/charts/kube-state-metrics/templates/clusterrolebinding.yaml
- inflated/prometheus/templates/node-exporter/daemonset.yaml - inflated/prometheus/charts/prometheus-pushgateway/templates/serviceaccount.yaml
- inflated/prometheus/templates/node-exporter/serviceaccount.yaml - inflated/prometheus/charts/prometheus-pushgateway/templates/deployment.yaml
- inflated/prometheus/templates/node-exporter/svc.yaml - inflated/prometheus/charts/prometheus-pushgateway/templates/service.yaml
- inflated/prometheus/templates/pushgateway/serviceaccount.yaml - inflated/prometheus/templates/serviceaccount.yaml
- inflated/prometheus/templates/pushgateway/service.yaml - inflated/prometheus/templates/service.yaml
- inflated/prometheus/templates/pushgateway/clusterrole.yaml - inflated/prometheus/templates/clusterrole.yaml
- inflated/prometheus/templates/pushgateway/deploy.yaml - inflated/prometheus/templates/cm.yaml
- inflated/prometheus/templates/pushgateway/clusterrolebinding.yaml - inflated/prometheus/templates/deploy.yaml
- inflated/prometheus/templates/alertmanager/serviceaccount.yaml - inflated/prometheus/templates/clusterrolebinding.yaml
- inflated/prometheus/templates/alertmanager/service.yaml - inflated/prometheus/templates/pvc.yaml
- inflated/prometheus/templates/alertmanager/clusterrole.yaml
- inflated/prometheus/templates/alertmanager/cm.yaml
- inflated/prometheus/templates/alertmanager/deploy.yaml
- inflated/prometheus/templates/alertmanager/clusterrolebinding.yaml
- inflated/prometheus/templates/alertmanager/pvc.yaml
- inflated/prometheus/templates/server/serviceaccount.yaml
- inflated/prometheus/templates/server/service.yaml
- inflated/prometheus/templates/server/clusterrole.yaml
- inflated/prometheus/templates/server/cm.yaml
- inflated/prometheus/templates/server/deploy.yaml
- inflated/prometheus/templates/server/clusterrolebinding.yaml
- inflated/prometheus/templates/server/pvc.yaml
# Grafana # Grafana
- inflated/grafana/templates/serviceaccount.yaml - inflated/grafana/templates/serviceaccount.yaml
- inflated/grafana/templates/dashboards-json-configmap.yaml - inflated/grafana/templates/dashboards-json-configmap.yaml