Install Portefaix

Instructions for deploying Portefaix on Azure

Setup

Export Azure credentials:

export AZURE_SUBSCRIPTION_ID="xxxxxx"

Storage for Terraform

Create a Storage Account :

❯ make -f hack/build/azure.mk azure-storage-account ENV=dev
XXXXXXXXXXX

You could see the Key on the output.

Create storage container for Terraform states:

❯ make -f hack/build/azure.mk azure-storage-container ENV=dev KEY="xxxxxxxxxxxxxxxxx"

Create the Service Principal for Terraform:

❯ make -f hack/build/azure.mk azure-sp ENV=dev
{
  "appId": "xxxxxxxxxxxxxxxxx",
  "displayName": "portefaix-dev",
  "name": "http://portefaix-dev",
  "password": "xxxxxxxxxxxx",
  "tenant": "xxxxxxxxxxxx"
}

Extract informations and configure portefaix configuration file (hack/config/portefaix.sh):

  • SUBSCRIPTION_ID
  • CLIENT_ID
  • CLIENT_SECRET
  • ARM_TENANT_ID

And load environment :

❯ . ./portefaix.sh azure

Set permissions:

❯ make -f hack/build/azure.mk azure-permissions ENV=dev

Terraform

Github Actions with Terraform Cloud could used to deploy the infrastructure:

Portefaix Azure deployment

Gitops for Kubernetes

Next: Gitops

Last modified 19.10.2022: Update: gitops link (7524a42)