Mirantis Container Cloud (MCC) becomes part of Mirantis OpenStack for Kubernetes (MOSK)!
Now, the MOSK documentation set covers all product layers, including MOSK management (formerly Container Cloud). This means everything you need is in one place. Some legacy names may remain in the code and documentation and will be updated in future releases. The separate Container Cloud documentation site will be retired, so please update your bookmarks for continued easy access to the latest content.
Enable tf-api-cli¶
The tf-api-cli container provides access to the Tungsten Fabric
API through the command-line interface (CLI). See the
contrail-api-cli documentation
for details.
Note
The tf-api-cli tool was initially called contrail-api-cli.
To enable the Tungsten Fabric API CLI Deployment:
Enable the
tf-cliDeployment in theTFOperatorcustom resource to start the Pod with utilities to access the Tungsten Fabric API CLI:spec: features: tfTools: tfCliEnabled: true
Wait for the
tf-tool-cliPod to start running in thetfnamespace.
Once the tf-tool-cli Pod is running, use the interactive shell to
access the Tungsten Fabric API CLI:
kubectl -n tf exec tf-tool-cli -it -- bash
The following example illustrates the use of the tf-api-cli command inside
a container:
tf-api-cli ls virtual-network
To disable the Tungsten Fabric API CLI Deployment:
Update the TFOperator custom resource and disable the tf-cli
Deployment:
kubectl -n tf patch tfoperator.tf.mirantis.com <TFOperator CR name> --type='json' -p='[{"op": "replace", "path": "/spec/features/tfTools/tfCliEnabled", "value": false}]'