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
69f5765f
Commit
69f5765f
authored
Jun 11, 2015
by
CJ Cullen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply test firewalls to both the new gke- node tags and the old k8s- tags
parent
c99d18b6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
util.sh
cluster/gke/util.sh
+5
-4
No files found.
cluster/gke/util.sh
View file @
69f5765f
...
@@ -168,7 +168,8 @@ function test-setup() {
...
@@ -168,7 +168,8 @@ function test-setup() {
detect-project
>
&2
detect-project
>
&2
# At this point, CLUSTER_NAME should have been used, so its value is final.
# At this point, CLUSTER_NAME should have been used, so its value is final.
MINION_TAG
=
"k8s-
${
CLUSTER_NAME
}
-node"
MINION_TAG
=
"gke-
${
CLUSTER_NAME
}
-node"
OLD_MINION_TAG
=
"k8s-
${
CLUSTER_NAME
}
-node"
# Open up port 80 & 8080 so common containers on minions can be reached.
# Open up port 80 & 8080 so common containers on minions can be reached.
# TODO(mbforbes): Is adding ${USER} necessary, and sufficient, to avoid
# TODO(mbforbes): Is adding ${USER} necessary, and sufficient, to avoid
...
@@ -177,14 +178,14 @@ function test-setup() {
...
@@ -177,14 +178,14 @@ function test-setup() {
"
${
MINION_TAG
}
-
${
USER
}
-http-alt"
\
"
${
MINION_TAG
}
-
${
USER
}
-http-alt"
\
--allow
tcp:80,tcp:8080
\
--allow
tcp:80,tcp:8080
\
--project
"
${
PROJECT
}
"
\
--project
"
${
PROJECT
}
"
\
--target-tags
"
${
MINION_TAG
}
"
\
--target-tags
"
${
MINION_TAG
}
,
${
OLD_MINION_TAG
}
"
\
--network
=
"
${
NETWORK
}
"
--network
=
"
${
NETWORK
}
"
"
${
GCLOUD
}
"
compute firewall-rules create
\
"
${
GCLOUD
}
"
compute firewall-rules create
\
"
${
MINION_TAG
}
-
${
USER
}
-nodeports"
\
"
${
MINION_TAG
}
-
${
USER
}
-nodeports"
\
--allow
tcp:30000-32767,udp:30000-32767
\
--allow
tcp:30000-32767,udp:30000-32767
\
--project
"
${
PROJECT
}
"
\
--project
"
${
PROJECT
}
"
\
--target-tags
"
${
MINION_TAG
}
"
\
--target-tags
"
${
MINION_TAG
}
,
${
OLD_MINION_TAG
}
"
\
--network
=
"
${
NETWORK
}
"
--network
=
"
${
NETWORK
}
"
}
}
...
@@ -311,7 +312,7 @@ function test-teardown() {
...
@@ -311,7 +312,7 @@ function test-teardown() {
detect-project
>
&2
detect-project
>
&2
# At this point, CLUSTER_NAME should have been used, so its value is final.
# At this point, CLUSTER_NAME should have been used, so its value is final.
MINION_TAG
=
"
k8s
-
${
CLUSTER_NAME
}
-node"
MINION_TAG
=
"
gke
-
${
CLUSTER_NAME
}
-node"
# First, remove anything we did with test-setup (currently, the firewall).
# First, remove anything we did with test-setup (currently, the firewall).
# NOTE: Keep in sync with names above in test-setup.
# NOTE: Keep in sync with names above in test-setup.
...
...
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