Skip to content

Create azure-gitlab templates#821

Merged
mrsimonemms merged 8 commits intomainfrom
sje/azure-gitlab
Nov 7, 2024
Merged

Create azure-gitlab templates#821
mrsimonemms merged 8 commits intomainfrom
sje/azure-gitlab

Conversation

@mrsimonemms
Copy link
Copy Markdown
Contributor

@mrsimonemms mrsimonemms commented Oct 29, 2024

Description

Provides the GitLab templates for Azure.

This is dependent upon konstructio/kubefirst-api#454 being used for the API.

Related Issue(s)

Fixes #

How to test

This assumes you're running the console, API and CLI in local debug mode.

  1. Create personal keys for our Terraform service principal.
  2. Set ARM_CLIENT_ID, ARM_CLIENT_SECRET, ARM_TENANT_ID and ARM_SUBSCRIPTION_ID envvars
  3. Run your desired command in the CLI

Example CLI commands:

Azure DNS

You will need to create a DNS Zone with your desired domain registered. I have the domains registered elsewhere and setup a subdomain in Azure (eg, azure.domain.com) and then setup an NS record on my domain registrar.

Azure puts everything in resource groups, which is a logical grouping of multiple resources. You will need to provide the name of that in --dns-azure-resource-group.

go run . beta azure create \
  --alerts-email <your-email> \
  --domain-name <domain-name> \
  --git-provider gitlab \
  --gitlab-group <gitlab-group> \
  --gitops-template-branch sje/azure-gitlab \
  --dns-azure-resource-group <dns-zone-resource-group>

Cloudflare

go run . beta azure create \
  --alerts-email <your-email> \
  --domain-name <domain> \
  --git-provider gitlab \
  --gitlab-group <gitlab-group> \
  --gitops-template-branch sje/azure-gitlab \
  --cluster-name <cluster-name> \
  --dns-provider cloudflare \
  --cloud-region <region> \
  --subdomain <cloudflare-subdomain>

@mrsimonemms mrsimonemms force-pushed the sje/azure-gitlab branch 5 times, most recently from 5fcd77f to a2c1a03 Compare November 5, 2024 16:27
@mrsimonemms mrsimonemms changed the base branch from main to sje/azure November 5, 2024 16:27
Base automatically changed from sje/azure to main November 6, 2024 08:07
@mrsimonemms mrsimonemms force-pushed the sje/azure-gitlab branch 3 times, most recently from 31b3c21 to 9a5efc8 Compare November 6, 2024 16:42
@mrsimonemms mrsimonemms force-pushed the sje/azure-gitlab branch 2 times, most recently from e8d5c5a to bec8f3f Compare November 6, 2024 17:53
@mrsimonemms mrsimonemms marked this pull request as ready for review November 7, 2024 12:00
@mrsimonemms mrsimonemms merged commit 24cb814 into main Nov 7, 2024
@mrsimonemms mrsimonemms deleted the sje/azure-gitlab branch November 7, 2024 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants