-
Notifications
You must be signed in to change notification settings - Fork 24
/
without-rbac.yaml
108 lines (108 loc) · 2.33 KB
/
without-rbac.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
apiVersion: v1
kind: Secret
metadata:
name: searchlight-operator
namespace: kube-system
labels:
app: searchlight
data:
ICINGA_WEB_UI_PASSWORD: Y2hhbmdlaXQ=
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: searchlight-operator
namespace: kube-system
labels:
app: searchlight
spec:
replicas: 1
template:
metadata:
labels:
app: searchlight
spec:
containers:
- name: operator
image: appscode/searchlight:3.0.1
imagePullPolicy: IfNotPresent
args:
- run
- --v=3
- --config-dir=/srv
- --config-secret-name=searchlight-operator
- --api.address=:8080
- --web.address=:56790
ports:
- name: api
containerPort: 8080
protocol: TCP
- name: web
containerPort: 56790
protocol: TCP
volumeMounts:
- name: data
mountPath: /srv
- name: icinga
image: appscode/icinga:3.0.1-k8s
imagePullPolicy: IfNotPresent
ports:
- name: icinga
containerPort: 5665
protocol: TCP
- name: ui
containerPort: 60006
protocol: TCP
livenessProbe:
httpGet:
scheme: HTTPS
port: 5665
path: /v1/status
httpHeaders:
- name: Authorization
value: "Basic c3RhdHVzdXNlcjpzdGF0dXNwYXNz"
initialDelaySeconds: 120
periodSeconds: 30
volumeMounts:
- name: data
mountPath: /srv
- name: ido
image: appscode/postgres:9.5-alpine
imagePullPolicy: IfNotPresent
env:
- name: PGDATA
value: /var/lib/postgresql/data/pgdata
ports:
- name: ido
containerPort: 5432
protocol: TCP
volumeMounts:
- name: data
mountPath: /var/lib/postgresql/data
volumes:
- name: data
emptyDir: {}
---
kind: Service
apiVersion: v1
metadata:
name: searchlight-operator
namespace: kube-system
labels:
app: searchlight
spec:
ports:
- name: ui
port: 80
targetPort: ui
- name: icinga
port: 5665
targetPort: icinga
- name: api
port: 8080
targetPort: api
- name: web
port: 56790
targetPort: web
selector:
app: searchlight