Skip to content

Commit

Permalink
⚡ use database cluster’s private hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
colinwilson committed May 19, 2021
1 parent 4a27529 commit 7969567
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion locals.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
locals {
db_host = digitalocean_database_cluster.k3s.host
db_host = digitalocean_database_cluster.k3s.private_host
db_port = digitalocean_database_cluster.k3s.port
db_user = var.database_user
db_pass = digitalocean_database_user.dbuser.password
Expand Down
2 changes: 1 addition & 1 deletion user_data/ks3_server_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ done
# create digitalOcean API access token secret
kubectl -n kube-system create secret generic digitalocean --from-literal=access-token=${do_token}

# create digitalocean env variable configmap
# create digitalocean env variables via configmap (for CCM)
kubectl -n kube-system create configmap digitalocean --from-literal=do-cluster-vpc-id=${do_cluster_vpc_id} --from-literal=public-access-firewall-name=${do_ccm_fw_name} --from-literal=public-access-firewall-tags=${do_ccm_fw_tags}

# install certmanager
Expand Down

0 comments on commit 7969567

Please sign in to comment.