• /
  • EnglishEspañol日本語한국어Português
  • Log inStart now

Forbidden: not useable by user or service account

Problem

The service account for a container doesn't have the correct permissions.

Solution

  1. Find out the service account that is running on that pod.
bash
$
oc get pod <pod-name> -o jsonpath='{.spec.serviceAccountName}' -n <namespace>
  1. Add the privileged security context constraint (or the scc you want to use) to that service account.
bash
$
oc adm policy add-scc-to-user privileged system:serviceaccount:<namespace>:<release_name>-newrelic-infrastructure
Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.