Configuration and Installation
Configuration and installation of Hopr's products is a DevOps-friendly process that will be simple and familiar to DevOps.
CONFIGURATION & INSTALLATION
To facilitate a successful XTRA deployment, three key steps should be followed for proper configuration and installation of the XTRA software: PREPARE, CONFIGURE, and INSTALL.
PREPARE
After registering, customers will receive a license file and authentication credentials for HOPR's container repository. The license file is a crucial component that contains important information about the specific features available to the customer. It is essential to keep the license file readily accessible during the application installation process. Additionally, authentication credentials are necessary for accessing any updates or new features from the repository after the initial installation. Safeguarding the license file and authentication credentials is of utmost importance to ensure uninterrupted access to the application's features.
License File
Each registered customer will receive both the HOPR license file and its corresponding base64-encoded version. The base64-encoded version of the file is provided to simplify the implementation process within your container runtime environment. It offers a more straightforward integration method, while the regular license file maintains its original format and structure. Having both versions ensures flexibility in using the license file according to your specific requirements and preferences.
License File
Base64 Version of License File
Hopr Repository Authentication
Container repository access is provided through a Docker configuration file, which can be used for both direct access via Docker pull and as a Kubernetes image pull secret. The configuration file, in the format of config.json, includes plaintext user and password information. It is of utmost importance that this file be protected and kept secure to prevent unauthorized access. Proper measures should be taken to ensure the confidentiality and integrity of the config.json file, as it contains sensitive authentication information. Below is an example of the config.json format:
The auth field in the config.json file represents the Base64 representation of basic authentication. You can use the echo command with the -n flag to prevent appending a newline character. Then, pipe the output to the base64 command. For example, if the username is "nick" and the password is "hoprXTRA12345", the command would be:
CONFIGURE
To prepare for the installation of XTRA, it is necessary to have several deployment configuration files. These files contain the required settings and parameters for deploying the application in a specific environment. Here are a couple of options for setting up deployment configuration files:
configuration template
Hopr offers customers the option to use ytt templates for setting up XTRA configuration files in their environment. These configuration template files are provided as a convenience, offering a pre-configured framework for customers to customize according to their specific requirements. The templates include pre-defined settings, parameters, and options that can be easily modified to align with the customer's environment. By utilizing these templates, customers can save time and effort, as they do not have to create configurations from scratch. This streamlined approach enables a faster and more efficient setup process for deploying XTRA.
ytt template
ytt is an open-source tool developed by Carvel, which operates as a set of instructions or rules to generate or modify files or configurations consistently and reproducibly. It can be compared to a recipe that outlines the steps and ingredients needed to create a specific output, with the flexibility to adjust the components or procedures to customize the final result. Hopt has created a ytt template that customers can utilize. This template provides a standardized configuration for deploying XTRA while allowing customers the flexibility to customize their deployments according to their specific environment requirements. By leveraging the Hopr ytt template, customers can achieve a consistent deployment approach while tailoring the configuration to their individual needs.
Hopt utilizes ytt templates to offer customers standard configuration files that can be customized to suit their specific environments. You can refer to the Hopr ytt template guide HERE for more information on how to use the template effectively.
Note: To utilize Hopr's XTRA ytt template, the ytt tool must be installed in the customer's environment.
YAML Files
Another option available to consumers for setting up XTRA configuration files is to use YAML files to define and apply the necessary resources.
You can refer to the guide on the required YAML files for XTRA configuration: HERE
INSTALL
Once the configuration files are properly set and customized, the next step is to apply the deployment file to your environment.
Example
If leveraging Hopr's ytt template:
If installing to kubernetes environment with YAML files:
Example Output
Once installed you can verify XTRA is installed correctly by checking the logs on the containers:
NOTE: - This example utilizes the optional curl-test pod that can be deployed with XTRA
Kubernetes Environment Example:
Command: kubectl logs -n <namespace> <pod-name> -c <container-name>
Example:
Output: