Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kubernetes-infra
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cloud
terraform
modules
kubernetes-infra
Commits
94dfc7a0
Commit
94dfc7a0
authored
1 year ago
by
Ing. Klára Moravcová
Browse files
Options
Downloads
Patches
Plain Diff
Change master nodes to control nodes.
parent
14262421
No related branches found
No related tags found
1 merge request
!1
Inventory modify
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
inventory.tf
+1
-1
1 addition, 1 deletion
inventory.tf
output.tf
+2
-2
2 additions, 2 deletions
output.tf
with
3 additions
and
3 deletions
inventory.tf
+
1
−
1
View file @
94dfc7a0
...
...
@@ -3,7 +3,7 @@ resource "local_file" "k8s_file" {
{
bastion_ssh_user_name
=
var
.
bastion_ssh_user_name
k8s_bastion_ip
=
openstack_networking_floatingip_v2
.
bastion_fip
.
address
k8s_
master
_ip
=
openstack_compute_instance_v2
.
master
_nodes
.*.
access_ip_v4
k8s_
control
_ip
=
openstack_compute_instance_v2
.
control
_nodes
.*.
access_ip_v4
k8s_worker_ip
=
openstack_compute_instance_v2
.
worker_nodes
.*.
access_ip_v4
}
...
...
This diff is collapsed.
Click to expand it.
output.tf
+
2
−
2
View file @
94dfc7a0
...
...
@@ -2,8 +2,8 @@ output "bastion_external_ip" {
value
=
openstack_networking_floatingip_v2
.
bastion_fip
.
address
}
output
"
master
_instance_ip"
{
value
=
openstack_compute_instance_v2
.
master
_nodes
[*].
access_ip_v4
output
"
control
_instance_ip"
{
value
=
openstack_compute_instance_v2
.
control
_nodes
[*].
access_ip_v4
}
output
"worker_instance_ip"
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment