Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multiple placement options for multinode uniconfig deployment #244

Merged
merged 1 commit into from
Jan 24, 2022

Conversation

Jozefiel
Copy link
Collaborator

  • change default single uc deployment from node.id to node.role
  • add role, label, hostname options to generte_uc_compose.sh
  • use x-common-settings in uc composefile

fi

if [[ -z $__SERVICE_NAME_DEFINED ]]; then
echo -e "${ERROR}Service name not defined. See help !!!"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

space missing

x-placement: &placement
placement:
constraints:
- node.role == manager
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should uniconfig be on manager node ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Default settings are for single-node deployment and all services are running on a master node.
This parameter is replaced during generation compose files by selected placement type.

echo -e "${SWARM_STATUS} Composefiles was not generated"
exit 1
fi
echo -e "${SWARM_STATUS} Composefiles was force-generated with wrong placement settings"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was -> were

 - change default single uc deployment from node.id to node.role
 - add role, label, hostname options to generte_uc_compose.sh
 - use x-common-settings in uc composefile
@marosmars marosmars merged commit d2a7d83 into master Jan 24, 2022
@marosmars marosmars deleted the uc_deployment_placement branch January 24, 2022 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants