Skip to content
This repository was archived by the owner on Apr 24, 2023. It is now read-only.

Commit 034c8fc

Browse files
authored
Added scc for deploying on openshift (#74)
Signed-off-by: Mohammad Yosefpor <[email protected]>
1 parent ae489ac commit 034c8fc

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ $ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernet
2121
$ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/fluent-bit-role-binding.yaml
2222
```
2323

24+
If you are deploying fluent-bit on openshift, you additionally need to run:
25+
26+
```
27+
$ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/fluent-bit-openshift-security-context-constraints.yaml
28+
```
29+
2430
#### Fluent Bit to Elasticsearch
2531

2632
The next step is to create a ConfigMap that will be used by our Fluent Bit DaemonSet:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
kind: SecurityContextConstraints
2+
apiVersion: security.openshift.io/v1
3+
metadata:
4+
name: logging
5+
allowPrivilegedContainer: true
6+
allowHostNetwork: true
7+
allowHostDirVolumePlugin: true
8+
priority:
9+
allowedCapabilities: []
10+
allowHostPorts: true
11+
allowHostPID: true
12+
allowHostIPC: true
13+
readOnlyRootFilesystem: false
14+
requiredDropCapabilities: []
15+
defaultAddCapabilities: []
16+
runAsUser:
17+
type: RunAsAny
18+
seLinuxContext:
19+
type: MustRunAs
20+
fsGroup:
21+
type: MustRunAs
22+
supplementalGroups:
23+
type: RunAsAny
24+
volumes:
25+
- configMap
26+
- downwardAPI
27+
- emptyDir
28+
- hostPath
29+
- persistentVolumeClaim
30+
- projected
31+
- secret
32+
users:
33+
- system:serviceaccount:logging:builder
34+
- system:serviceaccount:logging:default
35+
- system:serviceaccount:logging:deployer
36+
- system:serviceaccount:logging:fluent-bit

0 commit comments

Comments
 (0)