blob: 7bbf2996f03b21c5360b5b087e331bec0fad1c7a (
plain)
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
|
apiVersion: v1
kind: Service
metadata:
name: logging-fluentbit-sidecar
labels:
app: logging-fluentbit-sidecar
spec:
ports:
- name: http
port: 80
targetPort: 80
selector:
app: website
type: LoadBalancer
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: logging-fluentbit-sidecar
spec:
replicas: 1
selector:
matchLabels:
app: website
template:
metadata:
labels:
app: website
spec:
containers:
- name: aspnet-web
image: mcr.microsoft.com/dotnet/framework/samples:aspnetapp
volumeMounts:
- mountPath: c:\inetpub\logs\LogFiles\W3SVC1\
name: log-volume
- name: fluentbit-logger
image: fluent/fluent-bit:1.3.7-nanoserver
imagePullPolicy: Always
volumeMounts:
- mountPath: c:\config
name: config
- mountPath: c:\logs
name: log-volume
- mountPath: c:\state
name: log-state
volumes:
- name: config
configMap:
name: fluentbit-config
- name: log-volume
emptyDir: {}
- name: log-state
emptyDir: {}
nodeSelector:
beta.kubernetes.io/os: windows
|