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
47738087
Commit
47738087
authored
Apr 20, 2016
by
Elson O Rodriguez
Committed by
Lukasz Zajaczkowski
Apr 28, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved user experience for users of OpenStack provider behind a proxy.
parent
8315734b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
kube-up.sh
cluster/kube-up.sh
+9
-0
util.sh
cluster/openstack/util.sh
+7
-0
No files found.
cluster/kube-up.sh
View file @
47738087
...
...
@@ -64,6 +64,15 @@ elif [[ "${validate_result}" == "2" ]]; then
echo
"...ignoring non-fatal errors in validate-cluster"
>
&2
fi
if
[[
"
${
ENABLE_PROXY
:-}
"
==
"true"
]]
;
then
.
/tmp/kube-proxy-env
echo
""
echo
"*** Please run the following to add the kube-apiserver endpoint to your proxy white-list ***"
cat
/tmp/kube-proxy-env
echo
"*** ***"
echo
""
fi
echo
-e
"Done, listing cluster services:
\n
"
>
&2
"
${
KUBE_ROOT
}
/cluster/kubectl.sh"
cluster-info
echo
...
...
cluster/openstack/util.sh
View file @
47738087
...
...
@@ -233,6 +233,13 @@ function configure-kubectl() {
export
KUBE_MASTER_IP
=
$(
nova show
"
${
STACK_NAME
}
"
-master
|
awk
'$3=="network" {print $6}'
)
export
CONTEXT
=
"openstack-
${
STACK_NAME
}
"
export
KUBE_BEARER_TOKEN
=
"TokenKubelet"
if
[[
"
${
ENABLE_PROXY
:-}
"
==
"true"
]]
;
then
echo
'export NO_PROXY=$NO_PROXY,'
"
${
KUBE_MASTER_IP
}
"
>
/tmp/kube-proxy-env
echo
'export no_proxy=$NO_PROXY,'
"
${
KUBE_MASTER_IP
}
"
>>
/tmp/kube-proxy-env
.
/tmp/kube-proxy-env
fi
create-kubeconfig
}
...
...
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