The Mac version of base64 does not support the wrap option. Use tr to delete the trailing newline for Mac and Linux runs.
Move the security context tag under containers. Run hack/update-generated-docs.sh
This commit is contained in:
parent
0aebd64b23
commit
409e332853
|
|
@ -121,8 +121,6 @@ spec:
|
|||
# Filter to specific nodes:
|
||||
# nodeSelector:
|
||||
# app: newrelic
|
||||
securityContext:
|
||||
privileged: true
|
||||
hostPID: true
|
||||
hostIPC: true
|
||||
hostNetwork: true
|
||||
|
|
@ -130,6 +128,8 @@ spec:
|
|||
- resources:
|
||||
requests:
|
||||
cpu: 0.15
|
||||
securityContext:
|
||||
privileged: true
|
||||
env:
|
||||
- name: NRSYSMOND_logfile
|
||||
value: "/var/log/nrsysmond.log"
|
||||
|
|
|
|||
|
|
@ -16,5 +16,5 @@
|
|||
|
||||
# Encodes the environment variables into a Kubernetes secret.
|
||||
|
||||
BASE64_ENC=$(cat nrconfig.env | base64 --wrap=0)
|
||||
BASE64_ENC=$(cat nrconfig.env | base64 | tr -d '\n')
|
||||
sed -e "s#{{config_data}}#${BASE64_ENC}#g" ./newrelic-config-template.yaml > newrelic-config.yaml
|
||||
|
|
|
|||
|
|
@ -15,8 +15,6 @@ spec:
|
|||
# Filter to specific nodes:
|
||||
# nodeSelector:
|
||||
# app: newrelic
|
||||
securityContext:
|
||||
privileged: true
|
||||
hostPID: true
|
||||
hostIPC: true
|
||||
hostNetwork: true
|
||||
|
|
@ -24,6 +22,8 @@ spec:
|
|||
- resources:
|
||||
requests:
|
||||
cpu: 0.15
|
||||
securityContext:
|
||||
privileged: true
|
||||
env:
|
||||
- name: NRSYSMOND_logfile
|
||||
value: "/var/log/nrsysmond.log"
|
||||
|
|
|
|||
Loading…
Reference in New Issue