UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Jason Krause
template
Commits
c2ec232f
Commit
c2ec232f
authored
Jul 12, 2021
by
michaelmcleroy
Browse files
fix(terraform): elb security group
parent
806cc295
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
terraform/modules/elb/main.tf
terraform/modules/elb/main.tf
+0
-8
terraform/modules/k8s/main.tf
terraform/modules/k8s/main.tf
+2
-2
No files found.
terraform/modules/elb/main.tf
View file @
c2ec232f
...
...
@@ -125,13 +125,5 @@ resource "aws_security_group" "public_nlb_pool" {
cidr_blocks
=
formatlist
(
"%s/32"
,
[
for
eni
in
data
.
aws_network_interface
.
public_nlb
:
eni
.
private_ip
])
}
ingress
{
description
=
"Allow public Network Load Balancer traffic"
from_port
=
0
to_port
=
0
protocol
=
-
1
cidr_blocks
=
formatlist
(
"%s/32"
,
[
for
eni
in
data
.
aws_network_interface
.
public_nlb
:
eni
.
public_ip
])
}
tags
=
var
.
tags
}
\ No newline at end of file
terraform/modules/k8s/main.tf
View file @
c2ec232f
...
...
@@ -16,9 +16,9 @@ resource "null_resource" "kubeconfig" {
export KUBECONFIGBAK=$KUBECONFIG
export KUBECONFIG=~/.kube/new:~/.kube/config
# Replace default with cluster name
sed -ri
'
s/: default$/: ${var.name}/g
'
sed -ri
"
s/: default$/: ${var.name}/g
"
# Update user only with more info
sed -ri
'
s/(user|- name): ${var.name}$/\1: clusterUser_${var.name}/g
'
~/.kube/new
sed -ri
"
s/(user|- name): ${var.name}$/\1: clusterUser_${var.name}/g
"
~/.kube/new
# Do not redirect to ~/.kube/config or you may truncate the results
kubectl config view --flatten > ~/.kube/merged
mv -f ~/.kube/merged ~/.kube/config
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment