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
244c2f7b
Commit
244c2f7b
authored
Jun 24, 2015
by
Maxwell Forbes
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10236 from derekwaynecarr/remove_nginx
Remove nginx from vagrant configuration
parents
060cb437
db202d49
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
21 deletions
+15
-21
init.sls
cluster/saltbase/salt/kube-apiserver/init.sls
+1
-1
kube-apiserver.manifest
cluster/saltbase/salt/kube-apiserver/kube-apiserver.manifest
+2
-2
default
cluster/saltbase/salt/kubelet/default
+1
-1
top.sls
cluster/saltbase/salt/top.sls
+2
-10
provision-master.sh
cluster/vagrant/provision-master.sh
+6
-6
util.sh
cluster/vagrant/util.sh
+3
-1
No files found.
cluster/saltbase/salt/kube-apiserver/init.sls
View file @
244c2f7b
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% if grains['cloud'] is defined and grains.cloud in [ 'aws', 'gce' ] %}
{% if grains['cloud'] is defined and grains.cloud in [ 'aws', 'gce'
, 'vagrant'
] %}
/srv/kubernetes/basic_auth.csv:
/srv/kubernetes/basic_auth.csv:
file.managed:
file.managed:
- source: salt://kube-apiserver/basic_auth.csv
- source: salt://kube-apiserver/basic_auth.csv
...
...
cluster/saltbase/salt/kube-apiserver/kube-apiserver.manifest
View file @
244c2f7b
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
{% set client_ca_file = "" -%}
{% set client_ca_file = "" -%}
{% set secure_port = "6443" -%}
{% set secure_port = "6443" -%}
{% if grains['cloud'] is defined and grains.cloud in [ 'aws', 'gce' ] %}
{% if grains['cloud'] is defined and grains.cloud in [ 'aws', 'gce'
, 'vagrant'
] %}
{% set secure_port = "443" -%}
{% set secure_port = "443" -%}
{% set client_ca_file = "--client_ca_file=/srv/kubernetes/ca.crt" -%}
{% set client_ca_file = "--client_ca_file=/srv/kubernetes/ca.crt" -%}
{% endif -%}
{% endif -%}
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
{% endif -%}
{% endif -%}
{% endif -%}
{% endif -%}
{% if grains['cloud'] is defined and grains.cloud in [ 'aws', 'gce'
] %}
{% if grains['cloud'] is defined and grains.cloud in [ 'aws', 'gce'
, 'vagrant'
] %}
{% set basic_auth_file = "--basic_auth_file=/srv/kubernetes/basic_auth.csv" -%}
{% set basic_auth_file = "--basic_auth_file=/srv/kubernetes/basic_auth.csv" -%}
{% endif -%}
{% endif -%}
...
...
cluster/saltbase/salt/kubelet/default
View file @
244c2f7b
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
{% endif -%}
{% endif -%}
# TODO: remove nginx for other cloud providers.
# TODO: remove nginx for other cloud providers.
{% if grains['cloud'] is defined and grains.cloud in [ 'aws', 'gce' ] %}
{% if grains['cloud'] is defined and grains.cloud in [ 'aws', 'gce'
, 'vagrant'
] %}
{% set api_servers_with_port = api_servers -%}
{% set api_servers_with_port = api_servers -%}
{% else -%}
{% else -%}
{% set api_servers_with_port = api_servers + ":6443" -%}
{% set api_servers_with_port = api_servers + ":6443" -%}
...
...
cluster/saltbase/salt/top.sls
View file @
244c2f7b
...
@@ -31,7 +31,7 @@ base:
...
@@ -31,7 +31,7 @@ base:
- kube-controller-manager
- kube-controller-manager
- kube-scheduler
- kube-scheduler
- monit
- monit
{% if grains['cloud'] is defined and not grains.cloud in [ 'aws', 'gce' ] %}
{% if grains['cloud'] is defined and not grains.cloud in [ 'aws', 'gce'
, 'vagrant'
] %}
- nginx
- nginx
{% endif %}
{% endif %}
- cadvisor
- cadvisor
...
@@ -45,15 +45,7 @@ base:
...
@@ -45,15 +45,7 @@ base:
{% if grains['cloud'] is defined and grains['cloud'] == 'azure' %}
{% if grains['cloud'] is defined and grains['cloud'] == 'azure' %}
- openvpn
- openvpn
{% endif %}
{% endif %}
{% if grains['cloud'] is defined and grains['cloud'] == 'vagrant' %}
{% if grains['cloud'] is defined and grains['cloud'] in [ 'vagrant', 'gce', 'aws' ] %}
- docker
- kubelet
{% endif %}
{% if grains['cloud'] is defined and grains['cloud'] == 'aws' %}
- docker
- kubelet
{% endif %}
{% if grains['cloud'] is defined and grains['cloud'] == 'gce' %}
- docker
- docker
- kubelet
- kubelet
{% endif %}
{% endif %}
...
...
cluster/vagrant/provision-master.sh
View file @
244c2f7b
...
@@ -226,12 +226,12 @@ EOF
...
@@ -226,12 +226,12 @@ EOF
done
done
fi
fi
# Configure nginx authorization
mkdir
-p
/srv/salt-overlay/salt/nginx
readonly
BASIC_AUTH_FILE
=
"/srv/salt-overlay/salt/kube-apiserver/basic_auth.csv"
if
[
[
!
-f
/srv/salt-overlay/salt/nginx/htpasswd
]
]
;
then
if
[
!
-e
"
${
BASIC_AUTH_FILE
}
"
]
;
then
python
"
${
KUBE_ROOT
}
/third_party/htpasswd/htpasswd.py"
\
mkdir
-p
/srv/salt-overlay/salt/kube-apiserver
-b
-c
"/srv/salt-overlay/salt/nginx/htpasswd"
\
(
umask
077
;
"
$MASTER_USER
"
"
$MASTER_PASSWD
"
echo
"
${
MASTER_USER
}
,
${
MASTER_PASSWD
}
,admin"
>
"
${
BASIC_AUTH_FILE
}
"
)
fi
fi
echo
"Running release install script"
echo
"Running release install script"
...
...
cluster/vagrant/util.sh
View file @
244c2f7b
...
@@ -131,6 +131,8 @@ function create-provision-scripts {
...
@@ -131,6 +131,8 @@ function create-provision-scripts {
echo
"SERVICE_CLUSTER_IP_RANGE='
${
SERVICE_CLUSTER_IP_RANGE
}
'"
echo
"SERVICE_CLUSTER_IP_RANGE='
${
SERVICE_CLUSTER_IP_RANGE
}
'"
echo
"MASTER_USER='
${
MASTER_USER
}
'"
echo
"MASTER_USER='
${
MASTER_USER
}
'"
echo
"MASTER_PASSWD='
${
MASTER_PASSWD
}
'"
echo
"MASTER_PASSWD='
${
MASTER_PASSWD
}
'"
echo
"KUBE_USER='
${
KUBE_USER
}
'"
echo
"KUBE_PASSWORD='
${
KUBE_PASSWORD
}
'"
echo
"ENABLE_NODE_MONITORING='
${
ENABLE_NODE_MONITORING
:-
false
}
'"
echo
"ENABLE_NODE_MONITORING='
${
ENABLE_NODE_MONITORING
:-
false
}
'"
echo
"ENABLE_NODE_LOGGING='
${
ENABLE_NODE_LOGGING
:-
false
}
'"
echo
"ENABLE_NODE_LOGGING='
${
ENABLE_NODE_LOGGING
:-
false
}
'"
echo
"LOGGING_DESTINATION='
${
LOGGING_DESTINATION
:-}
'"
echo
"LOGGING_DESTINATION='
${
LOGGING_DESTINATION
:-}
'"
...
@@ -186,7 +188,7 @@ function verify-cluster {
...
@@ -186,7 +188,7 @@ function verify-cluster {
# verify master has all required daemons
# verify master has all required daemons
echo
"Validating master"
echo
"Validating master"
local
machine
=
"master"
local
machine
=
"master"
local
-a
required_daemon
=(
"salt-master"
"salt-minion"
"
nginx"
"
kubelet"
)
local
-a
required_daemon
=(
"salt-master"
"salt-minion"
"kubelet"
)
local
validated
=
"1"
local
validated
=
"1"
until
[[
"
$validated
"
==
"0"
]]
;
do
until
[[
"
$validated
"
==
"0"
]]
;
do
validated
=
"0"
validated
=
"0"
...
...
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