This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Portefaix on Oracle Cloud

Running Portefaix on Oracle Cloud
Infrastructure Portefaix components
Name TypeRange
portefaix-devVirtualNet10.0.0.0/16
portefaix-dev-aksSubnet10.0.0.0/20
portefaix-dev-ilbSubnet10.0.32.0/20
ApplicationGatewaySubnetSubnet10.0.64.0/24
portefaix-dev-nat-gatewaySubnet10.0.65.0/24
portefaix-dev-hubVirtualNet10.10.0.0/16
AzureFirewallSubnetSubnet10.10.1.0/24
AzureBastionSubnetSubnet10.10.2.0/24
PrivateLinkEndpointsSubnetTODO

1 - Deployment

Instructions for deploying Portefaix on Oracle Cloud Kubernetes (OCE)

1.1 - Install Portefaix

Instructions for deploying Portefaix on Oracle Cloud

Setup

Configure Oracle CLI. See https://docs.oracle.com/en-us/iaas/Content/API/Concepts/apisigningkey.htm

Load environment :

❯ . ./portefaix.sh oci

Then authentication:

❯ make -f hack/build/oci.mk oci-authenticate  ENV=staging

Create a new compartment

❯ make -f hack/build/oci.mk oci-compartment ENV=staging

Storage for Terraform

Check compartement ID from output of the previous command and create a S3 bucket for Terraform states:

❯ make -f hack/build/oci.mk oci-bucket ENV=staging COMPARTMENT_ID=ocid1.compartment.oc1....

Bootstrap:

❯ make terraform-apply SERVICE=terraform/oci/root ENV=main
❯ make terraform-apply SERVICE=terraform/oci/terraform-cloud ENV=main

Terraform Cloud / Github Actions

Terraform Cloud is used as the remote backend. Github Actions perform tasks to deploy the Oracle Cloud Infrastructure.

Configure Terraform Cloud workspaces:

❯ make terraform-apply SERVICE=terraform/oci/terraform-cloud ENV=main

Gitops for Kubernetes

Next: Gitops

1.2 - Inspec Portefaix

Instructions for check Portefaix infrastructure on Exoscale

1.3 - Uninstall Portefaix

Instructions for uninstall Portefaix

2 - Authentication and Authorization

Authentication and authorization support for Portefaix in Exoscale

This section shows the how to setup Portefaix with authentication and authorization support in Exoscale

Configure Exoscale

❯ . ./portefaix.sh exoscale
[ Portefaix ]
Setup credentials
Done

Configure kubectl

❯ make kubernetes-credentials CLOUD=exoscale ENV=dev
❯ kubectl get nodes

3 - Troubleshooting Deployments on Exoscale SKS

Help diagnose and fix issues you may encounter in your Portefaix deployment