Deploy Hydrolix
Hydrolix deployments follow the Kubernetes operator pattern. To deploy Hydrolix, generate an operator configuration (operator.yaml), a secrets file (secrets.yaml), and a custom resource Hydrolix configuration (hydrolixcluster.yaml). You'll use these files to deploy Hydrolix on your Kubernetes cluster.
Prerequisite: Environment Variables
These CLI commands require you to set environment variables before generating the configuration. See Prepare your AKS Cluster for more information about the required inputs.
Configure and Deploy the Hydrolix Operator⚓︎
The operator-resources command generates the Kubernetes resource definitions required for deploying the operator, service accounts, and role permissions. The operator manages all Hydrolix cluster deployments. Run the following command to generate a YAML operator configuration file for your cluster:
Next, use the Kubernetes command line tool (kubectl) to apply the generated configuration to your Kubernetes cluster:
Generate and Prepare an Azure Static Secret⚓︎
This step allows your Hydrolix cluster to use cloud storage. List the keys for your account and resource group:
Find the key1 value and place it in a file called secrets.yaml:
Next, use the Kubernetes command line tool (kubectl) to apply the generated secret to your Kubernetes cluster:
Configure and Deploy a Hydrolix Cluster⚓︎
The hkt tool's hydrolix-cluster command generates the hydrolixcluster.yaml deployment file. Alternatively, you can use the file below as a template.
We provide scale profiles for various cloud providers and deployment sizes. You can optionally specify a profile using the scale-profile flag. By default, Hydrolix uses a minimal profile. Add the following to a file named hydrolixcluster.yaml to generate a YAML cluster configuration file for a dev scale deployment:
The above config will deploy, among other things, a default, internal Postgres instance that is non-HA. If you want to run a more resilient version, read our Deploy Production Postgres guide.
Use the following command to replace the environment variables above with their values:
Don't forget to add your IP address to the allowlist. You can get your IP address by running curl -s ifconfig.me.
Manually Edit Configuration Files
You can also edit the hydrolixcluster.yaml to tune each deployment to your resource requirements.
Next, use the Kubernetes command line tool (kubectl) to apply the generated configuration to your Kubernetes cluster:
Create Your DNS Record⚓︎
Next, create a DNS record so you can access your cluster. Run the following command to retrieve the traefik record:
You should see output similar to the following:
Consult with your network administrator to configure DNS to map your hostname to the external IP.
Check Deployment Status⚓︎
You can now check the status of your deployment. Run the followingkubectl command to see the status of all pods in your cluster:
You should see output similar to the following:
You can also check your cluster status in the Microsoft AKS console.
Enable IP Access and TLS⚓︎
Configure IP Access control and a TLS certificate. You can find instructions in Secure a Kubernetes Cluster.
The Final Step⚓︎
You should have received an email that will now allow you to set a password and login. If you do not receive this email, please feel free to contact us at mailto:support@hydrolix.io and we'll happily assist you.