Skip to content

Commit

Permalink
Update kubectl commands
Browse files Browse the repository at this point in the history
  • Loading branch information
svetlanabrennan committed Dec 20, 2023
1 parent ea87b67 commit 26638dc
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions recipes/newrelic/infrastructure/kubernetes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -632,14 +632,6 @@ install:
fi
fi
else
# We currently dont' support installing in GKE Autopilot using kubectl
if [[ "$GKE_AUTOPILOT_ANSWER" == "Y" ]]; then
echo ""
echo -e "\033[0;31mUsing kubectl to install the Kubernetes integration is currently not supported.\033[0m" >&2
echo -e "\033[0;31mPlease install helm and try again.\033[0m" >&2
exit 131
fi
echo ""
echo "Using kubectl to install the Kubernetes integration"
echo ""
Expand All @@ -666,11 +658,11 @@ install:
BODY="${BODY},\"ksm.enabled\":\"${NR_CLI_KSM}\""
# if installing in GKE Autopilot, turn off controlPlane and set kubelet scheme and port
# if [[ "$GKE_AUTOPILOT_ANSWER" == "Y" ]]; then
# BODY="${BODY},\"newrelic-infrastructure.controlPlane\":\"false\""
# BODY="${BODY},\"newrelic-infrastructure.kubelet.config.scheme\":\"http\""
# BODY="${BODY},\"newrelic-infrastructure.kubelet.config.port\":\"10255\""
# fi
if [[ "$GKE_AUTOPILOT_ANSWER" == "Y" ]]; then
BODY="${BODY},\"newrelic-infrastructure.controlPlane.enabled\":\"false\""
BODY="${BODY},\"newrelic-infrastructure.kubelet.config.scheme\":\"http\""
BODY="${BODY},\"newrelic-infrastructure.kubelet.config.port\":\"10255\""
fi
# leaving this commented out for the future
# if [[ $SERVER_MAJOR_VERSION -eq 1 && $SERVER_MINOR_VERSION -lt 25 ]]; then
Expand Down

0 comments on commit 26638dc

Please sign in to comment.