diff --git a/playbooks/openshift-apps/monitor_dashboard.yml b/playbooks/openshift-apps/monitor_dashboard.yml index 23e42882b2..a3e36eed54 100644 --- a/playbooks/openshift-apps/monitor_dashboard.yml +++ b/playbooks/openshift-apps/monitor_dashboard.yml @@ -40,6 +40,11 @@ file: service.yml objectname: service.yml + - role: openshift/object + app: monitor-dashboard + file: route_serviceaccount.yml + objectname: route_serviceaccount.yml + # Route already present, will figure updating later # - role: openshift/object # app: monitor-dashboard diff --git a/roles/openshift-apps/monitor-dashboard/files/route_serviceaccount.yml b/roles/openshift-apps/monitor-dashboard/files/route_serviceaccount.yml new file mode 100644 index 0000000000..729024bf0f --- /dev/null +++ b/roles/openshift-apps/monitor-dashboard/files/route_serviceaccount.yml @@ -0,0 +1,7 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + name: monitor-dashboard-web + annotations: + serviceaccounts.openshift.io/oauth-redirectreference.primary: '{"kind":"OAuthRedirectReference","apiVersion":"v1","reference":{"kind":"Route","name":"monitor-dashboard-web"}}' + \ No newline at end of file