initial k8up monitoring config
This commit is contained in:
parent
55410a8dc5
commit
942a9f087f
|
@ -165,6 +165,8 @@ spec:
|
|||
value: http://10.42.42.2:9000
|
||||
- name: BACKUP_GLOBALS3BUCKET
|
||||
value: knurrli-k8up
|
||||
- name: BACKUP_PROMURL
|
||||
value: prometheus-pushgateway.monitoring.svc
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
protocol: TCP
|
||||
|
|
|
@ -4,8 +4,6 @@ kind: ServiceMonitor
|
|||
metadata:
|
||||
name: k8up
|
||||
namespace: k8up
|
||||
labels:
|
||||
release: prometheus-operator
|
||||
spec:
|
||||
endpoints:
|
||||
- interval: 30s
|
|
@ -39,4 +39,17 @@ items:
|
|||
- kind: ServiceAccount
|
||||
name: prometheus-k8s
|
||||
namespace: monitoring
|
||||
- apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
name: prometheus-k8s
|
||||
namespace: k8up
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: Role
|
||||
name: prometheus-k8s
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: prometheus-k8s
|
||||
namespace: monitoring
|
||||
kind: RoleBindingList
|
||||
|
|
|
@ -48,4 +48,20 @@ items:
|
|||
- get
|
||||
- list
|
||||
- watch
|
||||
- apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: Role
|
||||
metadata:
|
||||
name: prometheus-k8s
|
||||
namespace: k8up
|
||||
rules:
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
- services
|
||||
- endpoints
|
||||
- pods
|
||||
verbs:
|
||||
- get
|
||||
- list
|
||||
- watch
|
||||
kind: RoleList
|
||||
|
|
|
@ -16,6 +16,7 @@ local kp =
|
|||
prometheus+:: {
|
||||
names: 'k8s',
|
||||
replicas: 1,
|
||||
namespaces+: ['k8up'],
|
||||
},
|
||||
alertmanager+:: {
|
||||
replicas: 1,
|
||||
|
|
Reference in New Issue