File tree Expand file tree Collapse file tree 3 files changed +18
-41
lines changed Expand file tree Collapse file tree 3 files changed +18
-41
lines changed Original file line number Diff line number Diff line change 10
10
11
11
# Rules for the k8s security group
12
12
13
- - name : SSH for k8s
14
- local_action :
15
- module : cs_securitygroup_rule
16
- security_group : " {{ k8s_security_group_name }}"
17
- start_port : 22
18
- end_port : 22
19
-
20
- # etcd
21
- - name : etcd 4001
22
- local_action :
23
- module : cs_securitygroup_rule
24
- security_group : " {{ k8s_security_group_name }}"
25
- start_port : 4001
26
- end_port : 4001
27
- user_security_group : " {{ k8s_security_group_name }}"
28
-
29
- - name : etcd 7001
30
- local_action :
31
- module : cs_securitygroup_rule
32
- security_group : " {{ k8s_security_group_name }}"
33
- start_port : 7001
34
- end_port : 7001
35
- user_security_group : " {{ k8s_security_group_name }}"
36
-
37
- - name : etcd 2379
13
+ # internal
14
+ - name : flannel etcd 2379
38
15
local_action :
39
16
module : cs_securitygroup_rule
40
17
security_group : " {{ k8s_security_group_name }}"
41
- start_port : 7001
42
- end_port : 7001
18
+ start_port : 2379
19
+ end_port : 2379
43
20
user_security_group : " {{ k8s_security_group_name }}"
44
21
45
- - name : etcd 2380
22
+ - name : flannel etcd 2380
46
23
local_action :
47
24
module : cs_securitygroup_rule
48
25
security_group : " {{ k8s_security_group_name }}"
49
26
start_port : 2380
50
27
end_port : 2380
51
28
user_security_group : " {{ k8s_security_group_name }}"
52
29
53
- - name : k8s secure
30
+ - name : k8s 8080
54
31
local_action :
55
32
module : cs_securitygroup_rule
56
33
security_group : " {{ k8s_security_group_name }}"
57
- start_port : 443
58
- end_port : 443
34
+ start_port : 8080
35
+ end_port : 8080
59
36
user_security_group : " {{ k8s_security_group_name }}"
60
37
61
38
- name : flannel UDP 8472
76
53
protocol : tcp
77
54
user_security_group : " {{ k8s_security_group_name }}"
78
55
79
- # k8s api
80
- - name : k8s 8080
56
+ # external access
57
+
58
+ - name : SSH for k8s
81
59
local_action :
82
60
module : cs_securitygroup_rule
83
61
security_group : " {{ k8s_security_group_name }}"
84
- start_port : 8080
85
- end_port : 8080
86
- user_security_group : " {{ k8s_security_group_name }}"
62
+ start_port : 22
63
+ end_port : 22
87
64
88
65
- name : k8s public secure
89
66
local_action :
Original file line number Diff line number Diff line change @@ -62,10 +62,10 @@ coreos:
62
62
63
63
etcd2:
64
64
name: master
65
- listen-client-urls: http://0.0.0.0:2379,http://0.0.0.0:4001
66
- advertise-client-urls: http://$private_ipv4:2379,http://$private_ipv4:4001
65
+ listen-client-urls: http://0.0.0.0:2379
66
+ advertise-client-urls: http://$private_ipv4:2379
67
67
initial-cluster-token: k8s_etcd
68
- listen-peer-urls: http://$private_ipv4:2380,http://$private_ipv4:7001
68
+ listen-peer-urls: http://$private_ipv4:2380
69
69
initial-advertise-peer-urls: http://$private_ipv4:2380
70
70
initial-cluster: master=http://$private_ipv4:2380
71
71
initial-cluster-state: new
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ write-files:
11
11
exit $?
12
12
coreos:
13
13
etcd2:
14
- listen-client-urls: http://0.0.0.0:2379,http://0.0.0.0:4001
15
- advertise-client-urls: http://0.0.0.0:2379,http://0.0.0.0:4001
14
+ listen-client-urls: http://0.0.0.0:2379
15
+ advertise-client-urls: http://0.0.0.0:2379
16
16
initial-cluster: master=http://{{ k8s_master.default_ip }}:2380
17
17
proxy: on
18
18
fleet:
You can’t perform that action at this time.
0 commit comments