-
Notifications
You must be signed in to change notification settings - Fork 0
/
show-logs.yml
67 lines (62 loc) · 1.26 KB
/
show-logs.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
---
apiVersion: v1
kind: ConfigMap
metadata:
name: nginxconfig
data:
default.conf: |
server {
listen 80;
server_name localhost;
#charset koi8-r;
access_log /var/log/nginx/host.access.log main;
location / {
root /etc/kub-logs;
autoindex on;
}
}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: show-logs
labels:
app: show-logs
spec:
selector:
matchLabels:
name: show-logs
template:
metadata:
labels:
name: show-logs
spec:
containers:
- name: show-logs
image: alexkurtser/show-logs:1.5
ports:
- containerPort: 80
name: nginx
env:
- name: MONGO_HOST
value: "service-mongodb"
- name: MONGO_PORT
value: "27017"
- name: MONGO_DB
value: "imubit"
- name: MONGO_COLL
value: "logs"
resources:
limits:
memory: 200Mi
requests:
cpu: 100m
memory: 200Mi
volumeMounts:
- name: nginxconfig
mountPath: /etc/nginx/conf.d/
terminationGracePeriodSeconds: 30
volumes:
- name: nginxconfig
configMap:
name: nginxconfig