Skip to content

Commit

Permalink
Add cluster identifier tags to security groups
Browse files Browse the repository at this point in the history
Without this, the cloud provider integration can't find the security
groups when removing the ELB.
  • Loading branch information
discordianfish committed Sep 4, 2018
1 parent 4b4476a commit 0fc9e15
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kubernetes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1212,6 +1212,11 @@ Resources:
IpProtocol: icmp
FromPort: -1
ToPort: -1
Tags:
- Key: KubernetesCluster
Value: !Ref DomainName
- Key: !Join [ "/", [ "kubernetes.io/cluster", !Ref DomainName ] ]
Value: owned

ControllerELB:
Type: "AWS::ElasticLoadBalancing::LoadBalancer"
Expand Down
5 changes: 5 additions & 0 deletions templates/worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ Resources:
IpProtocol: icmp
FromPort: -1
ToPort: -1
Tags:
- Key: KubernetesCluster
Value: !Ref DomainName
- Key: !Join [ "/", [ "kubernetes.io/cluster", !Ref DomainName ] ]
Value: owned

PolicyWorker:
Type: AWS::IAM::ManagedPolicy
Expand Down

0 comments on commit 0fc9e15

Please sign in to comment.