Skip to content

Commit 6a81720

Browse files
committed
fix: update demo to use newapp-io drivers
1 parent f6f0ea5 commit 6a81720

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

1_demo.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ echo "Waiting for workload to be available"
1313

1414
# manually change the host here as the workload host resolves to localhost, which is not reachable from the container
1515
if curl -I --retry 30 --retry-delay 3 --retry-all-errors --fail \
16-
--connect-to "$workload_host:30080:5min-idp-control-plane:30080" \
17-
"http://$workload_host:30080"; then
18-
echo "Workload available at: http://$workload_host:30080"
16+
--connect-to "$workload_host:30443:5min-idp-control-plane:30443" \
17+
"https://$workload_host:30443"; then
18+
echo "Workload available at: https://$workload_host:30443"
1919
else
2020
echo "Workload not available"
2121
kubectl get pods --all-namespaces

setup/kind/cluster.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@ nodes:
66
extraPortMappings:
77
- containerPort: 30080
88
hostPort: 30080
9-
listenAddress: "0.0.0.0"
109
protocol: TCP
10+
- containerPort: 30443
11+
hostPort: 30443
12+
protocol: TCP

setup/terraform/idp-base.tf

+1-2
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,10 @@ resource "humanitec_resource_definition" "dns_localhost" {
4545
id = "${local.prefix}dns-localhost"
4646
name = "${local.prefix}dns-localhost"
4747
type = "dns"
48-
driver_type = "humanitec/dns-wildcard"
48+
driver_type = "humanitec/newapp-io-dns"
4949

5050
driver_inputs = {
5151
values_string = jsonencode({
52-
"domain" = "localhost"
5352
"template" = "$${context.app.id}-{{ randAlphaNum 4 | lower}}"
5453
})
5554
}

setup/terraform/idp-cluster.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ resource "humanitec_resource_definition" "cluster_local" {
7878

7979
driver_inputs = {
8080
values_string = jsonencode({
81-
loadbalancer = "0.0.0.0" # ensure dns records are created pointing to localhost
81+
loadbalancer = "127.0.0.1" # ensure dns records are created pointing to localhost
8282
cluster_data = local.parsed_kubeconfig["clusters"][0]["cluster"]
8383
})
8484
secrets_string = jsonencode({

setup/terraform/idp-ingress.tf

+5
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,9 @@ resource "helm_release" "ingress_nginx" {
2525
name = "controller.service.nodePorts.http"
2626
value = "30080"
2727
}
28+
29+
set {
30+
name = "controller.service.nodePorts.https"
31+
value = "30443"
32+
}
2833
}

0 commit comments

Comments
 (0)