Skip to content

Commit

Permalink
turn off kubectl for gke autopilot
Browse files Browse the repository at this point in the history
  • Loading branch information
svetlanabrennan committed Dec 20, 2023
1 parent fb16c7e commit 4699e20
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions recipes/newrelic/infrastructure/kubernetes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,14 @@ 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 @@ -658,9 +666,11 @@ install:
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\""
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
# 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 4699e20

Please sign in to comment.