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
09a9ea68
Commit
09a9ea68
authored
May 03, 2016
by
Daniel Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add --image-type option to GKE kube-up
parent
22dfaef9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
config-common.sh
cluster/gke/config-common.sh
+1
-0
config-test.sh
cluster/gke/config-test.sh
+1
-0
util.sh
cluster/gke/util.sh
+4
-0
No files found.
cluster/gke/config-common.sh
View file @
09a9ea68
...
@@ -30,6 +30,7 @@ CMD_GROUP="${CMD_GROUP:-}"
...
@@ -30,6 +30,7 @@ CMD_GROUP="${CMD_GROUP:-}"
GCLOUD_CONFIG_DIR
=
"
${
GCLOUD_CONFIG_DIR
:-${
HOME
}
/.config/gcloud/kubernetes
}
"
GCLOUD_CONFIG_DIR
=
"
${
GCLOUD_CONFIG_DIR
:-${
HOME
}
/.config/gcloud/kubernetes
}
"
NODE_SCOPES
=
"
${
NODE_SCOPES
:-
"compute-rw,storage-ro"
}
"
NODE_SCOPES
=
"
${
NODE_SCOPES
:-
"compute-rw,storage-ro"
}
"
MACHINE_TYPE
=
"
${
MACHINE_TYPE
:-
n1
-standard-2
}
"
MACHINE_TYPE
=
"
${
MACHINE_TYPE
:-
n1
-standard-2
}
"
IMAGE_TYPE
=
"
${
IMAGE_TYPE
:-}
"
# WARNING: any new vars added here must correspond to options that can be
# WARNING: any new vars added here must correspond to options that can be
# passed to `gcloud {CMD_GROUP} container clusters create`, or they will
# passed to `gcloud {CMD_GROUP} container clusters create`, or they will
...
...
cluster/gke/config-test.sh
View file @
09a9ea68
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
CLUSTER_NAME
=
"
${
CLUSTER_NAME
:-${
USER
}
-gke-e2e
}
"
CLUSTER_NAME
=
"
${
CLUSTER_NAME
:-${
USER
}
-gke-e2e
}
"
NETWORK
=
${
KUBE_GKE_NETWORK
:-
e2e
}
NETWORK
=
${
KUBE_GKE_NETWORK
:-
e2e
}
NODE_TAG
=
"k8s-
${
CLUSTER_NAME
}
-node"
NODE_TAG
=
"k8s-
${
CLUSTER_NAME
}
-node"
IMAGE_TYPE
=
"
${
KUBE_GKE_IMAGE_TYPE
:-}
"
# For ease of maintenance, extract any pieces that do not vary between default
# For ease of maintenance, extract any pieces that do not vary between default
...
...
cluster/gke/util.sh
View file @
09a9ea68
...
@@ -172,6 +172,10 @@ function kube-up() {
...
@@ -172,6 +172,10 @@ function kube-up() {
create_args+
=(
"--cluster-ipv4-cidr=
${
CLUSTER_IP_RANGE
}
"
)
create_args+
=(
"--cluster-ipv4-cidr=
${
CLUSTER_IP_RANGE
}
"
)
fi
fi
if
[[
!
-z
"
${
IMAGE_TYPE
:-}
"
]]
;
then
create_args+
=(
"--image-type=
${
IMAGE_TYPE
}
"
)
fi
create_args+
=(
${
GKE_CREATE_FLAGS
:-}
)
create_args+
=(
${
GKE_CREATE_FLAGS
:-}
)
# Bring up the cluster.
# Bring up the cluster.
...
...
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