API Port for Coe Should Be User Configurable
Currently our api ports need to be part coded as the templates do not support providing custom values. A user should be able to provide a custom port for the templates to use for it's public api endpoint.
Blueprint information
- Status:
- Not started
- Approver:
- Steven Dake
- Priority:
- Undefined
- Drafter:
- Andrew Melton
- Direction:
- Approved
- Assignee:
- Surojit Pathak
- Definition:
- Approved
- Series goal:
- None
- Implementation:
- Not started
- Milestone target:
- None
- Started by
- Completed by
Related branches
Sprints
Whiteboard
Currently there exists baymodel.
(Kennan) Hi Sdake, we designed the baymodel as flavors, and just like nova flavors, it is cheap to create baymodels, and it is easy to maintain as single point of configuration. most of time, users work ok with default port, just like we keystone 5000, 35357, users not need to change it frequently, since each swarm cluster manager is the entrance point, after bay-creation.
Kennan, the downside of the proposal you make is that we may end up with a policy system that disables the creation of baymodels except for people with an admin role. --sdake
See also: https:/
Send mail to @Adrian about this:
Hi Adrian
If I summarize your option, it would be,
1) Have a function like this,
magnum bay-create --name swarmbay --baymodel swarmbaymodel --baymodel-
And then magnum pass that property to override baymodel default properties, and create the bay.
2) You talked another BP, about adjust bay api_address to be a URL, For bay attribute api_address should be return format like following
tcp://192.
-------
Update(Jul 19th)
Hi @Adrian as we discussed last time, we tried this way:
magnum bay-create --name swarmbay --baymodel swarmbaymodel --baymodel-
This way, we not introduce any new baymodel, we just make baymodel-override property to be used during bay-creation time, Take swarm bay as example, every container cli would finally get
@staticmethod
def _docker_
tcp_url = 'tcp://%s:2376' % bay.api_address
return docker_
)
So here we need to make bay can get api url like protocal:
I understood its becasue of that for you proposed a bp called
https:/
You means to implement that magnum-
--
Reassigned based on Midcycle discussion.