Configure your environment
On this page
This page is a chapter of the Quickstart learning path. Make sure to progress through the chapters in the order set in the main navigation. To start out, go to
Introduction
.
Configure your environment
- Clone and prepare the Quickstart repository:
git clone https://github.com/humanitec-tutorials/quickstart.git
cd quickstart
chmod -R +x ./scripts/
- Define the cloud provider you will be using. Configure
aws
,azure
,gcp
, orgeneric
for a generic cluster:
export CLOUD=<your-cloud>
- If you have not already done so, authenticate and configure your cloud CLI (unless using a generic cluster):
# AWS
aws sso login --profile <my-profile>
# Azure
az login
az account set -s <my-subscription>
# Google Cloud
gcloud auth login
gcloud config set project <my-project>
-
If you wish to use one of the cloud providers and do not have a cluster ready at this time, you can create one with default settings for AWS (EKS), Azure (AKS), or Google Cloud (GKE) using the convenience scripts included in the repository. Otherwise skip this step.
- Edit the script for your cloud provider at
./scripts/create-cluster/create-cluster-${CLOUD}.sh
and provide the required values - Run the script:
- Edit the script for your cloud provider at
. ./scripts/create-cluster/create-cluster-${CLOUD}.sh
-
Edit the
envrc.sh
file and supply all required values. Depending on where your cluster is running, uncomment and complete the lines for the respective section. When not using one of the three cloud providers, use the “Generic Kubernetes” section. -
Apply the variables to your environment:
chmod +x envrc.sh
. ./envrc.sh
If you happen to use the
direnv
tool, rename the file instead (
mv envrc.sh .envrc
) and activate the current directory (direnv allow
).- Login to the Platform Orchestrator:
humctl login
You are now ready to go ahead and connect your cluster .