How to Make New OpenShift Projects Automatically Have Service Account / Secret
Issue
- Want a service account to be used in every project, but do not want to manually create the service account every time
- Need to use source pull secret, image pull secret, or some other secret in every project
- Executed the following commands:
# oc secrets new custom-pull-secret .dockerconfigjson=/root/config.json
# oc secrets link mysvcacct custom-pull-secret --for=pull
- That worked in a specific project, but if I try to deploy in other project, it does not work. Do I need to execute these 2 commands in each project?
- What's the right command to enable it across all the project?
- Want to have automatic SSL certificate available in new projects
Environment
- Red Hat OpenShift Container Platform
- 3.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.