Skip to content

Commit

Permalink
Merge pull request #46 from xunleii/fix/node-install
Browse files Browse the repository at this point in the history
fix: correct some installation issues (#44 & #45)
  • Loading branch information
xunleii authored Feb 10, 2021
2 parents 0931dd0 + dc63df1 commit b69151d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module "k3s" {
# The node name will be automatically provided by
# the module using the field name... any usage of
# --node-name in additional_flags will be ignored
server_one = {
server-one = {
ip = "10.123.45.67" // internal node IP
connection = {
host = "203.123.45.67" // public node IP
Expand All @@ -44,7 +44,7 @@ module "k3s" {
labels = {"node.kubernetes.io/type" = "master"}
taints = {"node.k3s.io/type" = "server:NoSchedule"}
}
server_two = {
server-two = {
ip = "10.123.45.68"
connection = {
host = "203.123.45.68" // bastion node
Expand All @@ -55,7 +55,7 @@ module "k3s" {
labels = {"node.kubernetes.io/type" = "master"}
taints = {"node.k3s.io/type" = "server:NoSchedule"}
}
server_three = {
server-three = {
ip = "10.123.45.69"
connection = {
host = "203.123.45.69" // bastion node
Expand All @@ -72,7 +72,7 @@ module "k3s" {
# The node name will be automatically provided by
# the module using the field name... any usage of
# --node-name in additional_flags will be ignored
agent_one = {
agent-one = {
ip = "10.123.45.70"
connection = {
user = "root"
Expand All @@ -82,7 +82,7 @@ module "k3s" {
labels = {"node.kubernetes.io/pool" = "service-pool"}
},
agent_two = {
agent-two = {
ip = "10.123.45.71"
connection = {
user = "root"
Expand All @@ -92,7 +92,7 @@ module "k3s" {
labels = {"node.kubernetes.io/pool" = "service-pool"}
},
agent_three = {
agent-three = {
name = "gpu-agent-one"
ip = "10.123.45.72"
connection = {
Expand Down
1 change: 0 additions & 1 deletion agent_nodes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ locals {
],
var.global_flags,
try(agent.flags, []),
[for key, value in try(agent.labels, {}) : "--node-label '${key}=${value}'" if value != null],
[for key, value in try(agent.taints, {}) : "--node-taint '${key}=${value}'" if value != null]
)))

Expand Down
1 change: 0 additions & 1 deletion server_nodes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ locals {
],
var.global_flags,
try(server.flags, []),
[for key, value in try(server.labels, {}) : "--node-label '${key}=${value}'" if value != null],
[for key, value in try(server.taints, {}) : "--node-taint '${key}=${value}'" if value != null]
)))

Expand Down

0 comments on commit b69151d

Please sign in to comment.