How to add secret to default service Account

Solution Verified - Updated -

Issue

  • Below error is seen in the master logs :
Aug 04 13:32:06 ose3-master.example.com openshift-master[38104]: I0804 13:32:06.527293 38104 event.go:203] Event(api.ObjectReference{Kind:"ReplicationController", Namespace:"demo", Name:"helloworld-1", UID:"83f29bb7-3ace-11e5-bc60-000c29fc4457", APIVersion:"v1", ResourceVersion:"183176", FieldPath:""}): reason: 'failedCreate' Error creating: Pod "helloworld-1-" is forbidden: Volume with secret.secretName="amq-app-secret" is not allowed because service account default does not reference that secret 

Environment

  • Openshift Enterprise
    • 3.0.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content