UNCLASSIFIED

Commit c2ec232f authored by michaelmcleroy's avatar michaelmcleroy
Browse files

fix(terraform): elb security group

parent 806cc295
......@@ -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
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment