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

Configure Godo Retryable HTTP Client #1016

Merged
merged 20 commits into from
Aug 22, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update main.tf
  • Loading branch information
danaelhe committed Aug 10, 2023
commit 525207a59ccdec2fc8fba8d806d65e70051977eb
35 changes: 23 additions & 12 deletions examples/kubernetes/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,28 @@ terraform {
}
}

resource "digitalocean_database_cluster" "postgres-example" {
name = "example-postgres-cluster"
engine = "pg"
version = "13"
size = "db-s-1vcpu-1gb"
region = "nyc1"
node_count = 1
resource "random_id" "cluster_name" {
byte_length = 5
}

resource "digitalocean_database_user" "user-example" {
cluster_id = digitalocean_database_cluster.postgres-example.id
name = "${count.index}-app"
count = 260
}
locals {
cluster_name = "tf-k8s-${random_id.cluster_name.hex}"
}

module "doks-cluster" {
source = "./doks-cluster"
cluster_name = local.cluster_name
cluster_region = "nyc3"
cluster_version = var.cluster_version

worker_size = var.worker_size
worker_count = var.worker_count
}

module "kubernetes-config" {
source = "./kubernetes-config"
cluster_name = module.doks-cluster.cluster_name
cluster_id = module.doks-cluster.cluster_id

write_kubeconfig = var.write_kubeconfig
}
Loading