Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/config/nginx-IP-header.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ spec:
- name: nginx-configs
subPath: headers.conf
mountPath: /etc/nginx/conf.d/headers.conf
securityContext:
runAsUser: 0
volumes:
- name: nginx-configs
configMap:
Expand Down
7 changes: 5 additions & 2 deletions docs/howto_load_balancer.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ oc get pods -A
Log into the virtual machine and run the following commands to create the `MetalLB` namespace and deployment.

```
oc apply -f https://raw.githubusercontent.com/metallb/metallb/v0.13.4/config/manifests/metallb-native.yaml
oc apply -f https://raw.githubusercontent.com/metallb/metallb/v0.13.7/config/manifests/metallb-native.yaml
oc adm policy add-scc-to-user privileged -z controller -n metallb-system
oc adm policy add-scc-to-user privileged -z speaker -n metallb-system
```

Verify that the `MetalLB` pods are up and running in the `metallb-system` namespace.
Expand Down Expand Up @@ -46,11 +48,12 @@ EOF
```

## Install User Workload
Log into the virtual machine and create the namespace to be used for deploying the test application.
Log into the virtual machine and create the namespace to be used for deploying the test application. Be aware that this test application will run as root user, which is not a security best practice.

```bash
NAMESPACE=nginx-lb-test
oc create ns $NAMESPACE
oc adm policy add-scc-to-user privileged -z default -n $NAMESPACE
```

Run the following command to deploy **3 replicas** of a test `nginx` application in the specified namespace.
Expand Down