The information in this doc is based on Juju version 3.5.4, and may not accurately reflect other versions of Juju.
See also: set-constraints, model-constraints, set-model-constraints
Summary
Displays machine constraints for an application.
Usage
juju constraints [options] <application>
Options
Flag | Default | Usage |
---|---|---|
-B , --no-browser-login |
false | Do not use web browser for authentication |
--format |
constraints | Specify output format (constraints|json|yaml) |
-m , --model |
Model to operate in. Accepts [<controller name>:]<model name>|<model UUID> | |
-o , --output |
Specify an output file |
Examples
juju constraints mysql
juju constraints -m mymodel apache2
Details
Shows machine constraints that have been set for an application with juju set- constraints
.
By default, the model is the current model.
Application constraints are combined with model constraints, set with juju set-model-constraints
, for commands (such as ‘deploy’) that provision
machines for applications. Where model and application constraints overlap, the
application constraints take precedence.
Constraints for a specific model can be viewed with juju model- constraints
.