Page MenuHomeSoftware Heritage

azure: allow to configure a kubernetes cluster for a gitlab hosting
ClosedPublic

Authored by vsellier on Mar 23 2022, 7:14 PM.

Details

Summary

Related to T4046

Unfortunately, it's not possible to assign an static ip address to the private endpoint without using a load balancer

Remaining tasks:

  • Test the public ip allocation The public ip is allocated when the ingress controllers are created by the gitlab operator
  • try to deploy the gitlab operator with terraform It doesn't seem to suit our needs. The kubernetes provider [1] is oriented to deploy components explicitly configured by terraform and not through a yaml file. It also has the problem of the local cluster configuration as the cluster fqdn must be declared in the local /etc/hosts to be able to interact with it (due to the certificate verification).
  • move the aks configuration outside the gitlab module The gitlab module now relies on a kubernetes modules that can be used independently to instantiate an aks cluster not related to gitlab

[1] https://registry.terraform.io/providers/hashicorp/kubernetes/1.11.0/docs

Test Plan
terraform init
terraform plan
terraform apply
Outputs:

gitlab-staging_summary = <<EOT

name: gitlab-aks-staging
internal_ip: 192.168.200.15

Execute the following command to add the credentials on your .kube/config:
az aks get-credentials --resource-group euwest-gitlab-staging --name gitlab-aks-staging 

and add this line in your /etc/hosts file:
192.168.200.15 gitlab-staging-bc4cea78.dae2fa98-fd73-4919-b260-c77bf7cf991c.privatelink.westeurope.azmk8s.io


EOT

Diff Detail

Repository
rSPRE sysadm-provisioning
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 27761
Build 43453: arc lint + arc unit

Event Timeline

vsellier created this revision.
vsellier edited the test plan for this revision. (Show Details)

split gitlab installation from the aks configuration

vsellier retitled this revision from [wip] azure: allow to configure a kubernetes cluster for a gitlab hosting to azure: allow to configure a kubernetes cluster for a gitlab hosting.Mar 24 2022, 12:03 PM
vsellier edited the summary of this revision. (Show Details)
vsellier edited the summary of this revision. (Show Details)

The diff is now ready to be reviewed.
We will start with a manual deployment in a first time

This revision is now accepted and ready to land.Mar 24 2022, 4:13 PM