[root@k8s-master01 yaml]# cat prometheus-values-with-longhorn-volumes.yaml
serviceAccounts:
server:
create: true
name: prometheus
alertmanager:
enabled: true
useClusterRole: true
ingress:
enabled: true
hosts:
- k8s-node01
- k8s-node02
persistentVolume:
enabled: true
accessModes:
- ReadWriteOnce
existingClaim: ""
mountPath: /data
size: 2Gi
storageClass: "longhorn"
replicaCount: 1
statefulSet:
enabled: true
podManagementPolicy: OrderedReady
kubeStateMetrics:
enabled: true
kube-state-metrics:
prometheusScrape: true
autosharding:
enabled: false
replicas: 1
service:
port: 8080
type: ClusterIP
nodeExporter:
enabled: true
hostNetwork: true
hostPID: true
tolerations:
- key: " " ##
operator: "Exists"
value: ""
effect: "NoSchedule"
service:
annotations:
prometheus.io/scrape: "true"
clusterIP: None
hostport: 9100
servicePort: 9100
type: ClusterIP
server:
enabled: true
useExistingClusterRoleName: cluster-admin
baseURL: "http://prom.ilinux.io"
global:
scrape_interval: 1m
scrape_timeout: 10s
evaluation_interval: 1m
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: nginx
hosts:
- prom.ilinux.io
persistentVolume:
enabled: true
accessModes:
- ReadWriteOnce
mountPath: /data
size: 8Gi
storageClass: "longhorn"
emptyDir:
sizeLimit: ""
replicaCount: 1
statefulSet:
enabled: true
podManagementPolicy: OrderedReady
headless:
servicePort: 80
gRPC:
enabled: false
servicePort: 10901
service:
clusterIP: ""
servicePort: 80
sessionAffinity: None
type: ClusterIP
gRPC:
enabled: false
servicePort: 10901
statefulsetReplica:
enabled: false
replica: 0
retention: "15d"
pushgateway:
enabled: true
name: pushgateway
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: nginx
hosts:
- pushgw.ilinux.io
- prom.ilinux.io/pushgateway
replicaCount: 1
persistentVolume:
enabled: true
accessModes:
- ReadWriteOnce
existingClaim: ""
mountPath: /data
size: 2Gi
storageClass: "longhorn"