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
5b1ceb5f
Commit
5b1ceb5f
authored
Jun 09, 2016
by
Andy Zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trusty: fix the 'ping' issue and fluentd-gcp issue #26379
parent
c9c4ada3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
12 deletions
+19
-12
configure-helper.sh
cluster/gce/trusty/configure-helper.sh
+15
-6
master.yaml
cluster/gce/trusty/master.yaml
+2
-3
node.yaml
cluster/gce/trusty/node.yaml
+2
-3
No files found.
cluster/gce/trusty/configure-helper.sh
View file @
5b1ceb5f
...
...
@@ -29,16 +29,18 @@ config_hostname() {
config_ip_firewall
()
{
# We have seen that GCE image may have strict host firewall rules which drop
# most inbound/forwarded packets. In such a case, add rules to accept all
# TCP/UDP packets.
# TCP/UDP
/ICMP
packets.
if
iptables
-L
INPUT |
grep
"Chain INPUT (policy DROP)"
>
/dev/null
;
then
echo
"Add rules to accpet all inbound TCP/UDP packets"
echo
"Add rules to accpet all inbound TCP/UDP
/ICMP
packets"
iptables
-A
INPUT
-w
-p
TCP
-j
ACCEPT
iptables
-A
INPUT
-w
-p
UDP
-j
ACCEPT
iptables
-A
INPUT
-w
-p
ICMP
-j
ACCEPT
fi
if
iptables
-L
FORWARD |
grep
"Chain FORWARD (policy DROP)"
>
/dev/null
;
then
echo
"Add rules to accpet all forwarded TCP/UDP packets"
echo
"Add rules to accpet all forwarded TCP/UDP
/ICMP
packets"
iptables
-A
FORWARD
-w
-p
TCP
-j
ACCEPT
iptables
-A
FORWARD
-w
-p
UDP
-j
ACCEPT
iptables
-A
FORWARD
-w
-p
ICMP
-j
ACCEPT
fi
}
...
...
@@ -182,6 +184,16 @@ assemble_kubelet_flags() {
echo
"KUBELET_OPTS=
\"
${
KUBELET_CMD_FLAGS
}
\"
"
>
/etc/default/kubelet
}
start_kubelet
(){
echo
"Start kubelet"
# Delete docker0 to avoid interference
iptables
-t
nat
-F
||
true
ip
link set
docker0 down
||
true
brctl delbr docker0
||
true
.
/etc/default/kubelet
/usr/bin/kubelet
${
KUBELET_OPTS
}
1>>/var/log/kubelet.log 2>&1
}
restart_docker_daemon
()
{
DOCKER_OPTS
=
"-p /var/run/docker.pid --bridge=cbr0 --iptables=false --ip-masq=false"
if
[
"
${
TEST_CLUSTER
:-}
"
=
"true"
]
;
then
...
...
@@ -200,9 +212,6 @@ restart_docker_daemon() {
echo
"Sleep 1 second to wait for cbr0"
sleep
1
done
# Remove docker0
ifconfig docker0 down
brctl delbr docker0
# Ensure docker daemon is really functional before exiting. Operations afterwards may
# assume it is running.
while
!
docker version
>
/dev/null
;
do
...
...
cluster/gce/trusty/master.yaml
View file @
5b1ceb5f
...
...
@@ -134,9 +134,8 @@ script
set -o errexit
set -o nounset
echo "Start kubelet upstart job"
. /etc/default/kubelet
/usr/bin/kubelet $
{
KUBELET_OPTS
}
1>>/var/log/kubelet.log 2>&1
. /etc/kube-configure-helper.sh
start_kubelet
}
2>&1 | logger --priority daemon.info -t ${UPSTART_JOB}
end script
...
...
cluster/gce/trusty/node.yaml
View file @
5b1ceb5f
...
...
@@ -132,9 +132,8 @@ script
set -o errexit
set -o nounset
echo "Start kubelet upstart job"
. /etc/default/kubelet
/usr/bin/kubelet $
{
KUBELET_OPTS
}
1>>/var/log/kubelet.log 2>&1
. /etc/kube-configure-helper.sh
start_kubelet
}
2>&1 | logger --priority daemon.info -t ${UPSTART_JOB}
end script
...
...
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