Skip to content

Commit

Permalink
add additional flags
Browse files Browse the repository at this point in the history
  • Loading branch information
svetlanabrennan committed Dec 20, 2023
1 parent 47b38b4 commit d230f98
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions recipes/newrelic/infrastructure/kubernetes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,14 @@ install:
fi
ARGS="${ARGS} --set ksm.enabled=${NR_CLI_KSM}"
# if installing in GKE Autopilot, we need to turn off controlPlane and set kubelet scheme and port
if [[ "$GKE_AUTOPILOT_ANSWER" == "Y" ]]; then
ARGS="${ARGS} --set newrelic-infrastructure.controlPlane.enabled=false"
ARGS="${ARGS} --set newrelic-infrastructure.kubelet.config.scheme=http"
ARGS="${ARGS} --set newrelic-infrastructure.kubelet.config.port=10255"
ARGS="${ARGS} --set newrelic-pixie.enabled=false"
fi
# leaving this commented out for the future
# if [[ $SERVER_MAJOR_VERSION -eq 1 && $SERVER_MINOR_VERSION -lt 25 ]]; then
# ARGS="${ARGS} --set kube-state-metrics.image.tag=v2.6.0"
Expand Down Expand Up @@ -643,6 +651,11 @@ install:
BODY="${BODY},\"global.lowDataMode\":\"${NR_CLI_LOW_DATA_MODE}\""
BODY="${BODY},\"ksm.enabled\":\"${NR_CLI_KSM}\""
# # if installing in GKE Autopilot, turn off controlPlane and set kubelet scheme and port
# BODY="${BODY},\"newrelic-infrastructure.controlPlane\":\"false\""
# BODY="${BODY},\"newrelic-infrastructure.kubelet.config.scheme\":\"http\""
# BODY="${BODY},\""newrelic-infrastructure.kubelet.config.port\":\"10255\""
# leaving this commented out for the future
# if [[ $SERVER_MAJOR_VERSION -eq 1 && $SERVER_MINOR_VERSION -lt 25 ]]; then
# BODY="${BODY},\"kube-state-metrics.image.tag\":\"v2.6.0\""
Expand Down

0 comments on commit d230f98

Please sign in to comment.