-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathkube-icinga.yaml
111 lines (111 loc) · 2.18 KB
/
kube-icinga.yaml
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
apiVersion: v1
kind: Secret
metadata:
name: icinga-credentials
namespace: kube-system
type: Opaque
data:
username: a3ViZS1pY2luZ2E=
password: a3ViZS1pY2luZ2E=
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: kube-icinga
subjects:
- kind: ServiceAccount
name: kube-icinga
namespace: kube-system
roleRef:
kind: ClusterRole
name: kube-icinga
apiGroup: rbac.authorization.k8s.io
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: kube-icinga
labels:
k8s-app: kube-icinga
rules:
- apiGroups:
- ""
- extensions
resources:
- namespaces
- ingresses
- services
- nodes
- persistentvolumes
verbs:
- get
- watch
- list
- apiGroups:
- extensions
- ""
resources:
- ingresses
- ingresses/status
verbs:
- get
- watch
- list
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: kube-icinga
namespace: kube-system
labels:
k8s-app: kube-icinga
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
k8s-app: kube-icinga
name: kube-icinga
namespace: kube-system
spec:
replicas: 1
selector:
matchLabels:
k8s-app: kube-icinga
template:
metadata:
labels:
k8s-app: kube-icinga
spec:
containers:
- image: gyselroth/kube-icinga:latest
imagePullPolicy: Always
name: kube-icinga
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
resources:
limits:
memory: 200Mi
requests:
cpu: 100m
memory: 100Mi
env:
- name: ICINGA_ADDRESS
value: icinga_address
- name: ICINGA_API_USERNAME
valueFrom:
secretKeyRef:
name: icinga-credentials
key: username
- name: ICINGA_API_PASSWORD
valueFrom:
secretKeyRef:
name: icinga-credentials
key: password
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: kube-icinga
serviceAccountName: kube-icinga
terminationGracePeriodSeconds: 30