Error installing monitoring integration for EKS Fargate using helm

Hi team,

I’m getting this error while trying to integrate our EKS Fargate cluster with NewRelic using helm:

ubuntu@ip-172-31-84-200:~$ helm upgrade --install newrelic newrelic/nri-bundle \
> --namespace newrelic --create-namespace \
> -f values-newrelic.yaml \
> --devel --debug
history.go:56: [debug] getting history for release newrelic
upgrade.go:131: [debug] setting version to >0.0.0-0
upgrade.go:142: [debug] preparing upgrade for newrelic
upgrade.go:150: [debug] performing update for newrelic
upgrade.go:322: [debug] creating upgraded release for newrelic
client.go:299: [debug] Starting delete for "newrelic-newrelic-infra-operator-admission" PodSecurityPolicy
W0330 14:16:07.062184   76497 warnings.go:70] policy/v1beta1 PodSecurityPolicy is deprecated in v1.21+, unavailable in v1.25+
client.go:128: [debug] creating 1 resource(s)
W0330 14:16:07.110042   76497 warnings.go:70] policy/v1beta1 PodSecurityPolicy is deprecated in v1.21+, unavailable in v1.25+
client.go:299: [debug] Starting delete for "newrelic-newrelic-infra-operator-admission" ServiceAccount
client.go:128: [debug] creating 1 resource(s)
client.go:299: [debug] Starting delete for "newrelic-newrelic-infra-operator-admission" ClusterRole
client.go:128: [debug] creating 1 resource(s)
client.go:299: [debug] Starting delete for "newrelic-newrelic-infra-operator-admission" ClusterRoleBinding
client.go:128: [debug] creating 1 resource(s)
client.go:299: [debug] Starting delete for "newrelic-newrelic-infra-operator-admission" Role
client.go:128: [debug] creating 1 resource(s)
client.go:299: [debug] Starting delete for "newrelic-newrelic-infra-operator-admission" RoleBinding
client.go:128: [debug] creating 1 resource(s)
client.go:299: [debug] Starting delete for "newrelic-newrelic-infra-operator-admission-create" Job
client.go:328: [debug] jobs.batch "newrelic-newrelic-infra-operator-admission-create" not found
client.go:128: [debug] creating 1 resource(s)
client.go:529: [debug] Watching for changes to Job newrelic-newrelic-infra-operator-admission-create with timeout of 5m0s
client.go:557: [debug] Add/Modify event for newrelic-newrelic-infra-operator-admission-create: ADDED
client.go:596: [debug] newrelic-newrelic-infra-operator-admission-create: Jobs active: 0, jobs failed: 0, jobs succeeded: 0
client.go:557: [debug] Add/Modify event for newrelic-newrelic-infra-operator-admission-create: MODIFIED
client.go:596: [debug] newrelic-newrelic-infra-operator-admission-create: Jobs active: 1, jobs failed: 0, jobs succeeded: 0
upgrade.go:431: [debug] warning: Upgrade "newrelic" failed: pre-upgrade hooks failed: timed out waiting for the condition
Error: UPGRADE FAILED: pre-upgrade hooks failed: timed out waiting for the condition
helm.go:84: [debug] pre-upgrade hooks failed: timed out waiting for the condition
UPGRADE FAILED
main.newUpgradeCmd.func2
        helm.sh/helm/v3/cmd/helm/upgrade.go:199
github.com/spf13/cobra.(*Command).execute
        github.com/spf13/cobra@v1.3.0/command.go:856
github.com/spf13/cobra.(*Command).ExecuteC
        github.com/spf13/cobra@v1.3.0/command.go:974
github.com/spf13/cobra.(*Command).Execute
        github.com/spf13/cobra@v1.3.0/command.go:902
main.main
        helm.sh/helm/v3/cmd/helm/helm.go:83
runtime.main
        runtime/proc.go:255
runtime.goexit
        runtime/asm_amd64.s:1581

Any tips?

Kind regards
Vitor Jr.

Hello @vitor3 ,

Thank you for posting your query here !

Looking at your error :

The issue here seems to be that you might not have a “fargate profile” associated with the "newrelic"namespace. This is preventing pods from being scheduled, as they cannot find a suitable Fargate node. The recommended approach is to create a profile for the “newrelic” ns

-Alternatively, you could also add an EC2 node to their fargate cluster, but if you want to stick with a pure fargate approach, the former solution should work for you.

Please respond to the post if it resolves the issue!

Best Regards
Yashaswi verma