-
Notifications
You must be signed in to change notification settings - Fork 2
/
icinga-kubernetes.example.yml
93 lines (81 loc) · 2.02 KB
/
icinga-kubernetes.example.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
apiVersion: v1
kind: Namespace
metadata:
name: icinga
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: icinga-for-kubernetes
namespace: icinga
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: icinga-for-kubernetes
rules:
- apiGroups: [ "*" ]
resources: [ "*" ]
verbs: [ "get", "list", "watch" ]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: icinga-for-kubernetes
roleRef:
apiGroup: "rbac.authorization.k8s.io"
kind: ClusterRole
name: icinga-for-kubernetes
subjects:
- kind: ServiceAccount
name: icinga-for-kubernetes
namespace: icinga
# - kind: User
# name: icinga-for-kubernetes
---
apiVersion: v1
kind: ConfigMap
metadata:
name: icinga-for-kubernetes
namespace: icinga
data:
config.yml: |-
# This is the configuration file for Icinga for Kubernetes.
# Connection configuration for the database to which Icinga for Kubernetes synchronizes data.
# This is also the database used in Icinga for Kubernetes Web to view and work with the data.
database:
# Database type. Only 'mysql' is supported yet which is the default.
# type: mysql
# Database host or absolute Unix socket path.
host: mysql
# Database port. By default, the MySQL port.
# port:
# Database name.
database: kubernetes
# Database user.
user: kubernetes
# Database password.
password: CHANGEME
# Configuration for Prometheus metrics API.
prometheus:
# Prometheus server URL.
# url: http://localhost:9090
---
apiVersion: v1
kind: Pod
metadata:
name: icinga-for-kubernetes
namespace: icinga
spec:
serviceAccountName: icinga-for-kubernetes
containers:
- name: icinga-for-kubernetes
image: icinga/icinga-kubernetes:edge
volumeMounts:
- name: config-volume
mountPath: /config.yml
subPath: config.yml
volumes:
- name: config-volume
configMap:
name: icinga-for-kubernetes