Frontier CLI of Federal Frontier Kubernetes Grid (FKG)
Frontier Command-Line Interface (CLI) User Guide
Federal Frontier Kubernetes Grid
Frontier CLI is a part of the Federal Frontier Kubernetes Grid (FKG). FKG is a feature-rich, cost-effective, and easy-to-deploy multi-cluster Kubernetes solution that leverages open-source community innovations while avoiding vendor lock-in. We use Frontier CLI as a front-end application for FKG to deploy, manage, and modify workload clusters within your organization. To get started, please visit the Frontier CLI installation guide.
Tools
Frontier CLI utilizes Cobra, a library providing a simple interface to create powerful modern CLI interfaces similar to git & go tools. Cobra provides:
- Easy subcommand-based CLIs:
app server
,app fetch
, etc. - Fully POSIX-compliant flags (including short & long versions)
- Nested subcommands
- Global, local and cascading flags
- Intelligent suggestions (
app srver
… did you meanapp server
?) - Automatic help generation for commands and flags
- Grouping help for subcommands
- Automatic help flag recognition of
-h
,--help
, etc. - Automatically generated shell autocomplete for your application (bash, zsh, fish, powershell)
- Automatically generated man pages for your application
- Command aliases so you can change things without breaking them
- The flexibility to define your own help, usage, etc.
- Optional seamless integration with viper for 12-factor apps
Security
For security, Frontier uses Frontier API Services (FAS) to pass information to the management cluster protected by a JWT Token. Users and Administrators will be required to authenticate to Frontier CLI services via OAuth2.0. They will be redirected from the CLI to the browser allowing them to copy and paste into their CLI to be further utilized throughout the application. Users will have to ensure they have the correct role and permissions in order to conduct, retrieve, or delete actions from Frontier Management Cluster (FMC).
Guides on Frontier CLI
The following sections below will contain tutorial guides on how Frontier CLI is used under different tasks requested by the authenticated user or administrator. This list contains tutorials on each tool and capabilities Frontier CLI possesses for its clients:
- Authentication
- Retrieving Information
- Creating Resources
- Deleting Resources
You can always run the command below if you need help navigating through the Frontier CLI application:
frontier -h