-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add links to altinity and aks sample
- Loading branch information
Showing
7 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
resource "altinitycloud_env_certificate" "this" { | ||
env_name = "acme-staging" | ||
} | ||
|
||
provider "kubernetes" { | ||
# https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs | ||
config_context = "make sure provider points at the AKS you want to connect" | ||
} | ||
|
||
module "altinitycloud_connect" { | ||
source = "altinity/connect/altinitycloud" | ||
pem = altinitycloud_env_certificate.this.pem | ||
} | ||
|
||
resource "altinitycloud_env_k8s" "this" { | ||
name = altinitycloud_env_certificate.this.env_name | ||
distribution = "AKS" | ||
// node_groups should match existing node pools configuration. | ||
node_groups = [ | ||
{ | ||
node_type = "Standard_B2s_v2" | ||
capacity_per_zone = 10 | ||
reservations = ["CLICKHOUSE", "SYSTEM", "ZOOKEEPER"] | ||
} | ||
] | ||
depends_on = [ | ||
// "depends_on" is here to enforce "this resource, then altinitycloud_connect" order on destroy. | ||
module.altinitycloud_connect | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters