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
126b6c09
Commit
126b6c09
authored
Apr 13, 2016
by
Elson O Rodriguez
Committed by
Lukasz Zajaczkowski
Apr 28, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed proxy settings for minion, added comments.
parent
b4333ade
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
config-default.sh
cluster/openstack/config-default.sh
+1
-0
configure-proxy.sh
...er/openstack/kubernetes-heat/fragments/configure-proxy.sh
+3
-1
kubecluster.yaml
cluster/openstack/kubernetes-heat/kubecluster.yaml
+6
-0
No files found.
cluster/openstack/config-default.sh
View file @
126b6c09
...
...
@@ -53,4 +53,5 @@ CLIENT_PUBLIC_KEY_PATH=${CLIENT_PUBLIC_KEY_PATH:-~/.ssh/id_rsa.pub}
# Max time period for stack provisioning. Time in minutes.
STACK_CREATE_TIMEOUT
=
${
STACK_CREATE_TIMEOUT
:-
60
}
# Enable Proxy, if true kube-up will apply your current proxy settings(defined by *_PROXY environment variables) to the deployment.
ENABLE_PROXY
=
${
ENABLE_PROXY
:-
false
}
cluster/openstack/kubernetes-heat/fragments/configure-proxy.sh
View file @
126b6c09
...
...
@@ -18,7 +18,7 @@ set -o errexit
set
-o
nounset
set
-o
pipefail
#
These values are meant to be swapped in by heat
#
The contents of these variables swapped in by heat via environments presented to kube-up.sh
export
ETC_ENVIRONMENT
=
'FTP_PROXY=$FTP_PROXY
HTTP_PROXY=$HTTP_PROXY
...
...
@@ -56,8 +56,10 @@ export DOCKER_PROXY='[Service]
Environment="no_proxy=$NO_PROXY"
'
# This again is set by heat
ENABLE_PROXY
=
'$ENABLE_PROXY'
# Heat itself doesn't have conditionals, so this is how we set up our proxy without breaking non-proxy setups.
if
[[
"
${
ENABLE_PROXY
}
"
==
"true"
]]
;
then
mkdir
-p
/etc/systemd/system/docker.service.d/
...
...
cluster/openstack/kubernetes-heat/kubecluster.yaml
View file @
126b6c09
...
...
@@ -354,6 +354,12 @@ resources:
cluster_name
:
{
get_param
:
"
OS::stack_name"
}
secgroup_base
:
{
get_resource
:
secgroup_base
}
secgroup_node
:
{
get_resource
:
secgroup_node
}
enable_proxy
:
{
get_param
:
enable_proxy
}
ftp_proxy
:
{
get_param
:
ftp_proxy
}
http_proxy
:
{
get_param
:
http_proxy
}
https_proxy
:
{
get_param
:
https_proxy
}
socks_proxy
:
{
get_param
:
socks_proxy
}
no_proxy
:
{
get_param
:
no_proxy
}
min_size
:
{
get_param
:
number_of_minions
}
desired_capacity
:
{
get_param
:
number_of_minions
}
max_size
:
{
get_param
:
max_number_of_minions
}
...
...
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