Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
55278545
Commit
55278545
authored
Oct 06, 2015
by
Alex Robinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Also delete firewall rules and static IP addresses from stranded GCE LBs
parent
9f80b878
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
delete-stranded-load-balancers.sh
cluster/gce/delete-stranded-load-balancers.sh
+2
-0
No files found.
cluster/gce/delete-stranded-load-balancers.sh
View file @
55278545
...
@@ -24,7 +24,9 @@ result=0
...
@@ -24,7 +24,9 @@ result=0
for
x
in
${
LIST
}
;
do
for
x
in
${
LIST
}
;
do
if
!
gcloud compute
--project
=
${
PROJECT
}
target-pools get-health
"
${
x
}
"
--region
=
${
REGION
}
2>/dev/null
>
/dev/null
;
then
if
!
gcloud compute
--project
=
${
PROJECT
}
target-pools get-health
"
${
x
}
"
--region
=
${
REGION
}
2>/dev/null
>
/dev/null
;
then
echo
DELETING
"
${
x
}
"
echo
DELETING
"
${
x
}
"
gcloud compute
--project
=
${
PROJECT
}
firewall-rules delete
"k8s-fw-
${
x
}
"
-q
gcloud compute
--project
=
${
PROJECT
}
forwarding-rules delete
"
${
x
}
"
--region
=
${
REGION
}
-q
gcloud compute
--project
=
${
PROJECT
}
forwarding-rules delete
"
${
x
}
"
--region
=
${
REGION
}
-q
gcloud compute
--project
=
${
PROJECT
}
addresses delete
"
${
x
}
"
--region
=
${
REGION
}
-q
gcloud compute
--project
=
${
PROJECT
}
target-pools delete
"
${
x
}
"
--region
=
${
REGION
}
-q
gcloud compute
--project
=
${
PROJECT
}
target-pools delete
"
${
x
}
"
--region
=
${
REGION
}
-q
result
=
1
result
=
1
fi
fi
...
...
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