...
1apiVersion: apps/v1
2kind: Deployment
3metadata:
4 name: fluent-operator
5 labels:
6 app.kubernetes.io/component: operator
7 app.kubernetes.io/name: fluent-operator
8spec:
9 selector:
10 matchLabels:
11 app.kubernetes.io/component: operator
12 app.kubernetes.io/name: fluent-operator
13 template:
14 metadata:
15 labels:
16 app.kubernetes.io/component: operator
17 app.kubernetes.io/name: fluent-operator
18 spec:
19 serviceAccountName: fluent-operator
20 priorityClassName: edge-p5-non-critical-infra
21 containers:
22 # This is what guarantees that fluentd isnt running when the image is deployed
23 - name: fluent-operator
24 image: bzl://third_party/o11y:fluent_operator_container_push
25 args: ["--disable-component-controllers", "fluentd"]
26 ports:
27 - name: metrics
28 protocol: TCP
29 containerPort: 8080
30 env:
31 - name: NAMESPACE
32 valueFrom:
33 fieldRef:
34 apiVersion: v1
35 fieldPath: metadata.namespace
36 resources:
37 limits:
38 cpu: "200m"
39 memory: 60Mi
40 requests:
41 cpu: 10m
42 memory: 20Mi
43 volumeMounts:
44 - name: env
45 mountPath: /fluent-operator
46 volumes:
47 - name: env
48 emptyDir: {}
View as plain text