- OpenShift Cookbook
- Shekhar Gulati
- 353字
- 2021-08-05 17:37:40
Adding an admin member to a domain using rhc
Consider a situation where a new system administrator joins your team. As the new system admin is also responsible for making sure your production apps are running smoothly, you would like to add the new system admin as an administrator. You can do this by giving the new user an admin role.
Getting ready
To complete this recipe, you will need to have rhc installed on your machine. Please refer to the Installing the OpenShift rhc command-line client recipe in Chapter 1, Getting Started with OpenShift, for instructions.
You will need two OpenShift accounts to work through this recipe. Please refer to the Creating an OpenShift Online account recipe in Chapter 1, Getting Started with OpenShift, for OpenShift account registration instructions.
How to do it…
To add the openshift.cookbook.test@gmail.com
user as an administrator to prodosbook
of the command:
$ rhc add-member openshift.cookbook.test@gmail.com --namespace osbook --role admin
How it works…
The admin role allows a user to perform the following actions on a domain:
- Everything an editor can do such as performing actions related to applications
- Perform operations on a domain such as adding members to a domain
When you run the rhc add-member
command with an admin role, OpenShift will add a new member to a domain with an admin role and then copy the public SSH key to the OpenShift gear ~/.ssh/authorized_keys
file. This allows an editor to perform SSH-related operations.
To check whether the administrator has been added successfully, you can view the domain details by inserting the following command:
$ rhc domain-show Domain prodosbook (owned by openshift.cookbook@gmail.com) ----------------------------------------------------- Created: Jan 14 9:49 AM Allowed Gear Sizes: small Members: openshift.cookbook+test@gmail.com (admin)
There's more…
You can also use the web console to add the editor to your application. Just follow the steps mentioned in the Adding viewer members to a domain using rhc recipe in this chapter.
See also
- The Adding viewer members to a domain using rhc recipe
- The Adding an admin member to a domain using rhc recipe
- The Viewing all the members in a domain using rhc recipe
- 社交網絡對齊
- Spring Boot 2.0 Projects
- 通信簡史:從信鴿到6G+
- Building RESTful Web Services with Spring 5(Second Edition)
- 基于性能的保障理論與方法
- 4G小基站系統原理、組網及應用
- 網絡設計與應用(第2版)
- LwIP應用開發實戰指南:基于STM32
- 基于IPv6的家居物聯網開發與應用技術
- 移動互聯網新思維
- SEO攻略:搜索引擎優化策略與實戰案例詳解
- 物聯網技術與實踐
- 互聯網安全的40個智慧洞見(2018)
- Hands-On Cloud:Native Microservices with Jakarta EE
- Hands-On Microservices:Monitoring and Testing