File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed
Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 11- name : remove calico default pool
22 shell : calicoctl pool remove 192.168.0.0/16
3- environment :
3+ environment :
44 ETCD_AUTHORITY : 127.0.0.1:{{ etcd_client_port }}
55 changed_when : False
66 ignore_errors : yes
77
88- name : check if lain pool exists
99 shell : calicoctl pool show --ipv4 | grep "{{ calico_default_network }}"
10- environment :
10+ environment :
1111 ETCD_AUTHORITY : 127.0.0.1:{{ etcd_client_port }}
1212 register : result
1313 changed_when : False
1414 ignore_errors : yes
1515
1616- name : add lain pool
1717 shell : calicoctl pool add {{ calico_default_network }} --nat-outgoing
18- environment :
18+ environment :
1919 ETCD_AUTHORITY : 127.0.0.1:{{ etcd_client_port }}
2020 when : result|failed and not calico_ipip|bool
2121
2222- name : add lain pool with ipip
2323 shell : calicoctl pool add {{ calico_default_network }} --nat-outgoing --ipip
24- environment :
24+ environment :
2525 ETCD_AUTHORITY : 127.0.0.1:{{ etcd_client_port }}
2626 when : result|failed and calico_ipip|bool
2727
6969
7070- name : add tinydns rules allow to udp 53
7171 command : calicoctl profile tinydns rule add inbound --at=1 allow udp to ports 53
72- environment :
72+ environment :
7373 ETCD_AUTHORITY : 127.0.0.1:{{ etcd_client_port }}
7474 when : result|failed
7575
76- - name : add webrouter rules allow to tcp 80 and 443
76+ - name : add webrouter rules allow to tcp 80, 443, 8080, 8443
7777 command : calicoctl profile webrouter rule add inbound --at=1 allow tcp to ports {{ item }}
7878 with_items :
7979 - " 80"
8080 - " 443"
81- environment :
81+ - " 8080"
82+ - " 8443"
83+ environment :
8284 ETCD_AUTHORITY : 127.0.0.1:{{ etcd_client_port }}
8385 when : result|failed
8486
8587- name : add lain tag to webrouter profile
8688 command : calicoctl profile webrouter tag add lain
87- environment :
89+ environment :
8890 ETCD_AUTHORITY : 127.0.0.1:{{ etcd_client_port }}
8991 when : result|failed
9092
Original file line number Diff line number Diff line change 33 with_items :
44 - 80
55 - 443
6+ - 8080
7+ - 8443
68
79- meta : flush_handlers
You can’t perform that action at this time.
0 commit comments