Setting a default enforcer version
About setting a default enforcer version on a namespace
When determining which version of the enforcer to install or upgrade to, Microsegmentation uses the following order of precedence.
- Version passed in apoctl install or upgrade commands
- Default enforcer version on the namespace
- Latest available enforcer version
By default, Microsegmentation installs or upgrades to the latest available enforcer version.
A default enforcer version set on the namespace overrides this.
The default enforcer version of a namespace can be further overridden by passing a different enforcer version to apoctl.
Setting a default enforcer version on a namespaces helps to ensure that all of the enforcers in the namespace are of the same version.
While enforcers of different versions interoperate without issue, each update of the enforcer contains fixes at a minimum and potentially new features, as well.
Keeping all of the enforcers at a specific version can help to ensure more predictability in behavior.
For example, if you have a Kubernetes or OpenShift cluster with node autoscaling enabled, you might end up with mixed enforcer versions.
New nodes added automatically as part of the autoscaling feature would be the latest enforcer version, while existing nodes could have enforcers at a previous version.
Setting a default enforcer version on a namespace
- Obtain the URL of your Microsegmentation TUF repository and set it in a TUF_URL environment variable.TUF_URL=$(curl -sSL $MICROSEG_API/_meta/config | jq -r .tuf)Retrieve the semantic version numbers of the enforcers available in your TUF repository.curl -sSL $TUF_URL/targets.json | jq -r '.signed.targets | to_entries[] | select(.key|startswith("enforcerd/stable")) | .value.custom.version 'export ENF_VER=1.1427.2Set a NAMESPACE environment variable containing the Microsegmentation namespace you wish to modify.export NAMESPACE=/803920923337065472/aws-dev-826088932159/k8s-cluster-01Retrieve the current default enforcer version set on the namespace.apoctl api get namespace $NAMESPACE -c defaultEnforcerVersionYou can only modify a namespace from its parent.Set the default enforcer version on the namespace.apoctl api update namespace $NAMESPACE -k defaultEnforcerVersion $ENF_VERConfirm that the operation succeeded.apoctl api get namespace $NAMESPACE -c defaultEnforcerVersion
Most Popular
Recommended For You
Recommended Videos
Recommended videos not found.