Commit 576df2b3 authored by k8s-merge-robot's avatar k8s-merge-robot

Merge pull request #24564 from azell/newrelic-daemonset

Automatic merge from submit-queue Newrelic daemonset 1. base64 on Mac does not support the **wrap** option. Easy to support on both Mac and Linux by using **tr** to remove the newline. 2. DaemonSet definition does not conform to latest schema: > $ kubectl create -f ./newrelic-daemonset.yaml error validating "./newrelic-daemonset.yaml": error validating data: found invalid field privileged for v1.PodSecurityContext; if you choose to ignore these errors, turn validation off with --validate=false <!-- Reviewable:start --> --- This change is [<img src="http://reviewable.k8s.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](http://reviewable.k8s.io/reviews/kubernetes/kubernetes/24564) <!-- Reviewable:end -->
parents 2f2d6501 45261f44
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment