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
4f0b7cd3
Commit
4f0b7cd3
authored
Nov 11, 2016
by
chentao1596
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
config attr has beean changed, new attr shoule be used
parent
53caa61c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
config-default.sh
cluster/ubuntu/config-default.sh
+3
-5
util.sh
cluster/ubuntu/util.sh
+3
-3
No files found.
cluster/ubuntu/config-default.sh
View file @
4f0b7cd3
...
...
@@ -86,8 +86,8 @@ FLANNEL_OTHER_NET_CONFIG=${FLANNEL_OTHER_NET_CONFIG:-""}
export
ADMISSION_CONTROL
=
NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,ResourceQuota
# Path to the
config
file or directory of files of kubelet
export
KUBELET_
CONFIG
=
${
KUBELET_CONFIG
:-
""
}
# Path to the
pod manifest
file or directory of files of kubelet
export
KUBELET_
POD_MANIFEST_PATH
=
${
KUBELET_POD_MANIFEST_PATH
:-
""
}
# A port range to reserve for services with NodePort visibility
SERVICE_NODE_PORT_RANGE
=
${
SERVICE_NODE_PORT_RANGE
:-
"30000-32767"
}
...
...
@@ -116,9 +116,7 @@ ENABLE_CLUSTER_DNS="${KUBE_ENABLE_CLUSTER_DNS:-true}"
# DNS_SERVER_IP must be a IP in SERVICE_CLUSTER_IP_RANGE
DNS_SERVER_IP
=
${
DNS_SERVER_IP
:-
"192.168.3.10"
}
DNS_DOMAIN
=
${
DNS_DOMAIN
:-
"cluster.local"
}
# Optional: Enable DNS horizontal autoscaler
ENABLE_DNS_HORIZONTAL_AUTOSCALER
=
"
${
KUBE_ENABLE_DNS_HORIZONTAL_AUTOSCALER
:-
false
}
"
DNS_REPLICAS
=
${
DNS_REPLICAS
:-
1
}
# Optional: Install Kubernetes UI
ENABLE_CLUSTER_UI
=
"
${
KUBE_ENABLE_CLUSTER_UI
:-
true
}
"
...
...
cluster/ubuntu/util.sh
View file @
4f0b7cd3
...
...
@@ -296,7 +296,7 @@ KUBELET_OPTS="\
--logtostderr=true \
--cluster-dns=
${
3
}
\
--cluster-domain=
${
4
}
\
--
config
=
${
5
}
\
--
pod-manifest-path
=
${
5
}
\
--allow-privileged=
${
6
}
$cni_opts
"
EOF
...
...
@@ -558,7 +558,7 @@ function provision-node() {
'
${
MASTER_IP
}
'
\
'
${
DNS_SERVER_IP
}
'
\
'
${
DNS_DOMAIN
}
'
\
'
${
KUBELET_
CONFIG
}
'
\
'
${
KUBELET_
POD_MANIFEST_PATH
}
'
\
'
${
ALLOW_PRIVILEGED
}
'
\
'
${
CNI_PLUGIN_CONF
}
'
create-kube-proxy-opts
\
...
...
@@ -660,7 +660,7 @@ function provision-masterandnode() {
'
${
MASTER_IP
}
'
\
'
${
DNS_SERVER_IP
}
'
\
'
${
DNS_DOMAIN
}
'
\
'
${
KUBELET_
CONFIG
}
'
\
'
${
KUBELET_
POD_MANIFEST_PATH
}
'
\
'
${
ALLOW_PRIVILEGED
}
'
\
'
${
CNI_PLUGIN_CONF
}
'
create-kube-proxy-opts
\
...
...
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