-
Notifications
You must be signed in to change notification settings - Fork 250
/
fluent-operator-deployment.yaml
59 lines (59 loc) · 1.52 KB
/
fluent-operator-deployment.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
kind: Deployment
apiVersion: apps/v1
metadata:
name: fluent-operator
namespace: fluent
labels:
app.kubernetes.io/component: operator
app.kubernetes.io/name: fluent-operator
spec:
selector:
matchLabels:
app.kubernetes.io/component: operator
app.kubernetes.io/name: fluent-operator
template:
metadata:
labels:
app.kubernetes.io/component: operator
app.kubernetes.io/name: fluent-operator
spec:
volumes:
- name: env
emptyDir: {}
- name: dockersock
hostPath:
path: /var/run/docker.sock
initContainers:
- name: setenv
image: 'docker:20.10'
command:
- /bin/sh
- '-c'
- set -ex;
echo CONTAINER_ROOT_DIR=$(docker info -f '{{.DockerRootDir}}' 2> /dev/null) > /fluent-operator/fluent-bit.env
volumeMounts:
- name: env
mountPath: /fluent-operator
- name: dockersock
readOnly: true
mountPath: /var/run/docker.sock
containers:
- name: fluent-operator
image: kubesphere/fluent-operator:latest
env:
- name: NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
resources:
limits:
cpu: 200m
memory: 60Mi
requests:
cpu: 100m
memory: 20Mi
volumeMounts:
- name: env
mountPath: /fluent-operator
serviceAccountName: fluent-operator