Skip to content

Commit

Permalink
fix the dns name of the load balancer in the csr.
Browse files Browse the repository at this point in the history
  • Loading branch information
balchua committed Mar 20, 2021
1 parent 22fbdd7 commit c7cbcef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module "microk8s" {
#source = "git::https://github.com/balchua/do-microk8s?ref=v0.1.0"
source = "../"
node_count = "7"
node_count = "10"
os_image = "ubuntu-20-04-x64"
node_size = "s-2vcpu-4gb"
node_disksize = "2"
Expand Down
2 changes: 1 addition & 1 deletion templates/add-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ until microk8s.status --wait-ready;
done

echo "adding microk8s-cluster.${dns_zone} dns to CSR."
sed -i 's@#MOREIPS@DNS.99 = microk8s-cluster.${dns_zone}\\n#MOREIPS\\n@g' /var/snap/microk8s/current/certs/csr.conf.template;
sed -i 's@#MOREIPS@DNS.99 = microk8s-cluster.${dns_zone}\n#MOREIPS\n@g' /var/snap/microk8s/current/certs/csr.conf.template;
echo 'done.'

sleep 10
Expand Down

0 comments on commit c7cbcef

Please sign in to comment.