Advertisement
Guest User

flannel

a guest
May 22nd, 2018
1,286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.65 KB | None | 0 0
  1. Flannel config:
  2. cni-conf.json: |
  3. {
  4. "name": "cbr0",
  5. "plugins": [
  6. {
  7. "type": "flannel",
  8. "delegate": {
  9. "hairpinMode": true,
  10. "isDefaultGateway": true
  11. }
  12. },
  13. {
  14. "type": "portmap",
  15. "capabilities": {
  16. "portMappings": true
  17. }
  18. }
  19. ]
  20. }
  21. net-conf.json: |
  22. {
  23. "Network": "10.244.0.0/16",
  24. "Backend": {
  25. "Type": "vxlan"
  26. }
  27. }
  28.  
  29. Flannel log:
  30.  
  31. 15:35:59 main.go:475] Determining IP address of default interface
  32. 15:35:59 main.go:488] Using interface with name eth0 and address 206.189.96.121
  33. 15:35:59 main.go:505] Defaulting external address to interface address (206.189.96.121)
  34. 15:35:59 kube.go:131] Waiting 10m0s for node controller to sync
  35. 15:35:59 kube.go:294] Starting kube subnet manager
  36. 15:36:00 kube.go:138] Node controller sync successful
  37. 15:36:00 main.go:235] Created subnet manager: Kubernetes Subnet Manager - worker3
  38. 15:36:00 main.go:238] Installing signal handlers
  39. 15:36:00 main.go:353] Found network config - Backend type: vxlan
  40. 15:36:00 vxlan.go:120] VXLAN config: VNI=1 Port=0 GBP=false DirectRouting=false
  41. 15:36:00 main.go:300] Wrote subnet file to /run/flannel/subnet.env
  42. 15:36:00 main.go:304] Running backend.
  43. 15:36:00 main.go:322] Waiting for all goroutines to exit
  44. 15:36:00 vxlan_network.go:60] watching for new subnet leases
  45. 15:36:00 iptables.go:115] Some iptables rules are missing; deleting and recreating rules
  46. 15:36:00 iptables.go:137] Deleting iptables rule: -s 10.244.0.0/16 -d 10.244.0.0/16 -j RETURN
  47. 15:36:00 iptables.go:115] Some iptables rules are missing; deleting and recreating rules
  48. 15:36:00 iptables.go:137] Deleting iptables rule: -s 10.244.0.0/16 -j ACCEPT
  49. 15:36:00 iptables.go:137] Deleting iptables rule: -s 10.244.0.0/16 ! -d 224.0.0.0/4 -j MASQUERADE
  50. 15:36:00 iptables.go:137] Deleting iptables rule: ! -s 10.244.0.0/16 -d 10.244.2.0/24 -j RETURN
  51. 15:36:00 iptables.go:137] Deleting iptables rule: ! -s 10.244.0.0/16 -d 10.244.0.0/16 -j MASQUERADE
  52. 15:36:00 iptables.go:125] Adding iptables rule: -s 10.244.0.0/16 -d 10.244.0.0/16 -j RETURN
  53. 15:36:00 iptables.go:125] Adding iptables rule: -s 10.244.0.0/16 ! -d 224.0.0.0/4 -j MASQUERADE
  54. 15:36:00 iptables.go:125] Adding iptables rule: ! -s 10.244.0.0/16 -d 10.244.2.0/24 -j RETURN
  55. 15:36:00 iptables.go:125] Adding iptables rule: ! -s 10.244.0.0/16 -d 10.244.0.0/16 -j MASQUERADE
  56. 15:36:01 iptables.go:137] Deleting iptables rule: -d 10.244.0.0/16 -j ACCEPT
  57. 15:36:01 iptables.go:125] Adding iptables rule: -s 10.244.0.0/16 -j ACCEPT
  58. 15:36:01 iptables.go:125] Adding iptables rule: -d 10.244.0.0/16 -j ACCEPT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement