Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(azure): create azure cluster #428

Merged
merged 7 commits into from
Nov 5, 2024
Merged

feat(azure): create azure cluster #428

merged 7 commits into from
Nov 5, 2024

Conversation

mrsimonemms
Copy link
Contributor

@mrsimonemms mrsimonemms commented Sep 24, 2024

Description

Adds support for Azure

Related Issue(s)

Fixes #458

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> \
  --github-org <github-org> \
  --domain-name <domain-name> \
  --gitops-template-branch sje/azure \
  --dns-azure-resource-group <dns-zone-resource-group>

Cloudflare

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

@mrsimonemms mrsimonemms marked this pull request as ready for review October 29, 2024 14:58
There's no realistic way of avoiding this error in Golang so it
doesn't add much value
Necessary to keep the pattern of how the router works. This
should be refactored so not required
@mrsimonemms mrsimonemms merged commit ca1b5ca into main Nov 5, 2024
2 checks passed
@mrsimonemms mrsimonemms deleted the sje/azure branch November 5, 2024 12:44
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.

Azure Github
2 participants