Advertisement
Guest User

istio-ps-diff-result

a guest
Jan 19th, 2019
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 28.67 KB | None | 0 0
  1.  
  2. --- Pilot Clusters
  3. +++ Envoy Clusters
  4.  -4,21 +4,42
  5.           "cluster": {
  6.              "name": "BlackHoleCluster",
  7.              "connectTimeout": "1.000s"
  8.           }
  9.        },
  10.        {
  11.           "cluster": {
  12. -            "name": "inbound|8080||cloud-ali.default.svc.cluster.local",
  13. +            "name": "inbound|3333||mgmtCluster",
  14.              "connectTimeout": "1.000s",
  15.              "hosts": [
  16.                 {
  17.                    "socketAddress": {
  18.                       "address": "127.0.0.1",
  19. -                     "portValue": 8080
  20. +                     "portValue": 3333
  21. +                  }
  22. +               }
  23. +            ],
  24. +            "circuitBreakers": {
  25. +               "thresholds": [
  26. +                  {
  27. +
  28. +                  }
  29. +               ]
  30. +            }
  31. +         }
  32. +      },
  33. +      {
  34. +         "cluster": {
  35. +            "name": "inbound|9999||mgmtCluster",
  36. +            "connectTimeout": "1.000s",
  37. +            "hosts": [
  38. +               {
  39. +                  "socketAddress": {
  40. +                     "address": "127.0.0.1",
  41. +                     "portValue": 9999
  42.                    }
  43.                 }
  44.              ],
  45.              "circuitBreakers": {
  46.                 "thresholds": [
  47.                    {
  48.  
  49.  
  50. --- Pilot Listeners
  51. +++ Envoy Listeners
  52.  -1208,381 +1208,82
  53.              "deprecatedV1": {
  54.                 "bindToPort": false
  55.              }
  56.           }
  57.        },
  58.        {
  59.           "listener": {
  60. -            "name": "10.3.0.223_8080",
  61. +            "name": "10.3.0.223_3333",
  62.              "address": {
  63.                 "socketAddress": {
  64.                    "address": "10.3.0.223",
  65. -                  "portValue": 8080
  66. -               }
  67. -            },
  68. -            "filterChains": [
  69. -               {
  70. -                  "filterChainMatch": {
  71. -                     "transportProtocol": "raw_buffer"
  72. -                  },
  73. -                  "filters": [
  74. -                     {
  75. -                        "name": "envoy.http_connection_manager",
  76. -                        "config": {
  77. -                              "access_log": [
  78. -                                       {
  79. -                                                "config": {
  80. -                                                         "format": "[%START_TIME%] \"%REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)%%PROTOCOL%\" %RESPONSE_CODE% %RESPONSE_FLAGS% %BYTES_RECEIVED% %BYTES_SENT% %DURATION% %RESP(X-ENVOY-UPSTREAM-SERVICE-TIME)% \"%REQ(X-FORWARDED-FOR)%\" \"%REQ(USER-AGENT)%\" \"%REQ(X-REQUEST-ID)%\" \"%REQ(:AUTHORITY)%\" \"%UPSTREAM_HOST%\" %UPSTREAM_CLUSTER% %UPSTREAM_LOCAL_ADDRESS% %DOWNSTREAM_LOCAL_ADDRESS% %DOWNSTREAM_REMOTE_ADDRESS%\n",
  81. .........
  82. ........
  83. -                                                                        }
  84. -                                                               },
  85. -                                                         "transport": {
  86. -                                                                  "attributes_for_mixer_proxy": {
  87. -                                                                           "attributes": {
  88. -                                                                                    "source.uid": {
  89. -                                                                                             "string_value": "kubernetes://cloud-ali-v1-57cd9dc45c-rrhbq.default"
  90. -                                                                                          }
  91. -                                                                                 }
  92. -                                                                        },
  93. -                                                                  "check_cluster": "outbound|9091||istio-policy.istio-system.svc.cluster.local",
  94. -                                                                  "network_fail_policy": {
  95. -                                                                           "policy": "FAIL_CLOSE"
  96. -                                                                        },
  97. -                                                                  "report_cluster": "outbound|9091||istio-telemetry.istio-system.svc.cluster.local"
  98. -                                                               }
  99. -                                                      },
  100. -                                                "name": "mixer"
  101. -                                             },
  102. -                                       {
  103. -                                                "name": "envoy.cors"
  104. -                                             },
  105. -                                       {
  106. -                                                "name": "envoy.fault"
  107. -                                             },
  108. -                                       {
  109. -                                                "name": "envoy.router"
  110. -                                             }
  111. -                                    ],
  112. -                              "route_config": {
  113. -                                       "name": "inbound|8080||cloud-ali.default.svc.cluster.local",
  114. -                                       "validate_clusters": false,
  115. -                                       "virtual_hosts": [
  116. -                                                {
  117. -                                                         "domains": [
  118. -                                                                  "*"
  119. -                                                               ],
  120. -                                                         "name": "inbound|http|8080",
  121. -                                                         "routes": [
  122. -                                                                  {
  123. -                                                                           "decorator": {
  124. -                                                                                    "operation": "cloud-ali.default.svc.cluster.local:8080/*"
  125. -                                                                                 },
  126. -                                                                           "match": {
  127. -                                                                                    "prefix": "/"
  128. -                                                                                 },
  129. -                                                                           "per_filter_config": {
  130. -                                                                                    "mixer": {
  131. -                                                                                             "mixer_attributes": {
  132. -                                                                                                      "attributes": {
  133. -                                                                                                               "destination.service": {
  134. -                                                                                                                        "string_value": "cloud-ali.default.svc.cluster.local"
  135. -                                                                                                                     },
  136. -                                                                                                               "destination.service.host": {
  137. -                                                                                                                        "string_value": "cloud-ali.default.svc.cluster.local"
  138. -                                                                                                                     },
  139. -                                                                                                               "destination.service.name": {
  140. -                                                                                                                        "string_value": "cloud-ali"
  141. -                                                                                                                     },
  142. -                                                                                                               "destination.service.namespace": {
  143. -                                                                                                                        "string_value": "default"
  144. -                                                                                                                     },
  145. -                                                                                                               "destination.service.uid": {
  146. -                                                                                                                        "string_value": "istio://default/services/cloud-ali"
  147. -                                                                                                                     }
  148. -                                                                                                            }
  149. -                                                                                                   }
  150. -                                                                                          }
  151. -                                                                                 },
  152. -                                                                           "route": {
  153. -                                                                                    "cluster": "inbound|8080||cloud-ali.default.svc.cluster.local",
  154. -                                                                                    "max_grpc_timeout": "0.000s",
  155. -                                                                                    "timeout": "0.000s"
  156. -                                                                                 }
  157. -                                                                        }
  158. -                                                               ]
  159. -                                                      }
  160. -                                             ]
  161. -                                    },
  162. -                              "stat_prefix": "10.3.0.223_8080",
  163. -                              "stream_idle_timeout": "0.000s",
  164. -                              "tracing": {
  165. -                                       "client_sampling": {
  166. -                                                "value": 100
  167. -                                             },
  168. -                                       "overall_sampling": {
  169. -                                                "value": 100
  170. -                                             },
  171. -                                       "random_sampling": {
  172. -                                                "value": 1
  173. -                                             }
  174. -                                    },
  175. -                              "upgrade_configs": [
  176. -                                       {
  177. -                                                "upgrade_type": "websocket"
  178. -                                             }
  179. -                                    ],
  180. -                              "use_remote_address": false
  181. -                           }
  182. -                     }
  183. -                  ]
  184. -               },
  185. -               {
  186. -                  "filterChainMatch": {
  187. -                     "transportProtocol": "tls"
  188. -                  },
  189. -                  "tlsContext": {
  190. -                     "commonTlsContext": {
  191. -                        "tlsCertificates": [
  192. -                           {
  193. -                              "certificateChain": {
  194. -                                 "filename": "/etc/certs/cert-chain.pem"
  195. -                              },
  196. -                              "privateKey": {
  197. -                                 "filename": "/etc/certs/key.pem"
  198. -                              }
  199. -                           }
  200. -                        ],
  201. -                        "validationContext": {
  202. -                           "trustedCa": {
  203. -                              "filename": "/etc/certs/root-cert.pem"
  204. -                           }
  205. -                        },
  206. -                        "alpnProtocols": [
  207. -                           "h2",
  208. -                           "http/1.1"
  209. -                        ]
  210. -                     },
  211. -                     "requireClientCertificate": true
  212. -                  },
  213. -                  "filters": [
  214. -                     {
  215. -                        "name": "envoy.http_connection_manager",
  216. -                        "config": {
  217. -                              "access_log": [
  218. -                                       {
  219. -                                                "config": {
  220. -                                                         "format": "[%START_TIME%] \"%REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)%%PROTOCOL%\" %RESPONSE_CODE% %RESPONSE_FLAGS% %BYTES_RECEIVED% %BYTES_SENT% %DURATION% %RESP(X-ENVOY-UPSTREAM-SERVICE-TIME)% \"%REQ(X-FORWARDED-FOR)%\" \"%REQ(USER-AGENT)%\" \"%REQ(X-REQUEST-ID)%\" \"%REQ(:AUTHORITY)%\" \"%UPSTREAM_HOST%\" %UPSTREAM_CLUSTER% %UPSTREAM_LOCAL_ADDRESS% %DOWNSTREAM_LOCAL_ADDRESS% %DOWNSTREAM_REMOTE_ADDRESS%\n",
  221. -                                                         "path": "/dev/stdout"
  222. -                                                      },
  223. -                                                "name": "envoy.file_access_log"
  224. -                                             }
  225. -                                    ],
  226. -                              "generate_request_id": true,
  227. -                              "http_filters": [
  228. -                                       {
  229. -                                                "config": {
  230. -                                                         "policy": {
  231. -                                                                  "peers": [
  232. -                                                                           {
  233. -                                                                                    "mtls": {
  234. -                                                                                             "mode": "PERMISSIVE"
  235. -                                                                                          }
  236. -                                                                                 }
  237. -                                                                        ]
  238. -                                                               }
  239. -                                                      },
  240. -                                                "name": "istio_authn"
  241. -                                             },
  242. -                                       {
  243. -                                                "config": {
  244. -                                                         "default_destination_service": "default",
  245. -                                                         "mixer_attributes": {
  246. -                                                                  "attributes": {
  247. -                                                                           "context.reporter.kind": {
  248. -                                                                                    "string_value": "inbound"
  249. -                                                                                 },
  250. -                                                                           "context.reporter.uid": {
  251. -                                                                                    "string_value": "kubernetes://cloud-ali-v1-57cd9dc45c-rrhbq.default"
  252. -                                                                                 },
  253. -                                                                           "destination.ip": {
  254. -                                                                                    "bytes_value": "AAAAAAAAAAAAAP//CgMA3w=="
  255. -                                                                                 },
  256. -                                                                           "destination.namespace": {
  257. -                                                                                    "string_value": "default"
  258. -                                                                                 },
  259. -                                                                           "destination.port": {
  260. -                                                                                    "int64_value": "8080"
  261. -                                                                                 },
  262. -                                                                           "destination.uid": {
  263. -                                                                                    "string_value": "kubernetes://cloud-ali-v1-57cd9dc45c-rrhbq.default"
  264. -                                                                                 }
  265. -                                                                        }
  266. -                                                               },
  267. -                                                         "service_configs": {
  268. -                                                                  "default": {
  269. -                                                                        }
  270. -                                                               },
  271. -                                                         "transport": {
  272. -                                                                  "attributes_for_mixer_proxy": {
  273. -                                                                           "attributes": {
  274. -                                                                                    "source.uid": {
  275. -                                                                                             "string_value": "kubernetes://cloud-ali-v1-57cd9dc45c-rrhbq.default"
  276. -                                                                                          }
  277. -                                                                                 }
  278. -                                                                        },
  279. -                                                                  "check_cluster": "outbound|9091||istio-policy.istio-system.svc.cluster.local",
  280. -                                                                  "network_fail_policy": {
  281. -                                                                           "policy": "FAIL_CLOSE"
  282. -                                                                        },
  283. -                                                                  "report_cluster": "outbound|9091||istio-telemetry.istio-system.svc.cluster.local"
  284. -                                                               }
  285. -                                                      },
  286. -                                                "name": "mixer"
  287. -                                             },
  288. -                                       {
  289. -                                                "name": "envoy.cors"
  290. -                                             },
  291. -                                       {
  292. -                                                "name": "envoy.fault"
  293. -                                             },
  294. -                                       {
  295. -                                                "name": "envoy.router"
  296. -                                             }
  297. -                                    ],
  298. -                              "route_config": {
  299. -                                       "name": "inbound|8080||cloud-ali.default.svc.cluster.local",
  300. -                                       "validate_clusters": false,
  301. -                                       "virtual_hosts": [
  302. -                                                {
  303. -                                                         "domains": [
  304. -                                                                  "*"
  305. -                                                               ],
  306. -                                                         "name": "inbound|http|8080",
  307. -                                                         "routes": [
  308. -                                                                  {
  309. -                                                                           "decorator": {
  310. -                                                                                    "operation": "cloud-ali.default.svc.cluster.local:8080/*"
  311. -                                                                                 },
  312. -                                                                           "match": {
  313. -                                                                                    "prefix": "/"
  314. -                                                                                 },
  315. -                                                                           "per_filter_config": {
  316. -                                                                                    "mixer": {
  317. -                                                                                             "mixer_attributes": {
  318. -                                                                                                      "attributes": {
  319. -                                                                                                               "destination.service": {
  320. -                                                                                                                        "string_value": "cloud-ali.default.svc.cluster.local"
  321. -                                                                                                                     },
  322. -                                                                                                               "destination.service.host": {
  323. -                                                                                                                        "string_value": "cloud-ali.default.svc.cluster.local"
  324. -                                                                                                                     },
  325. -                                                                                                               "destination.service.name": {
  326. -                                                                                                                        "string_value": "cloud-ali"
  327. -                                                                                                                     },
  328. -                                                                                                               "destination.service.namespace": {
  329. -                                                                                                                        "string_value": "default"
  330. -                                                                                                                     },
  331. -                                                                                                               "destination.service.uid": {
  332. -                                                                                                                        "string_value": "istio://default/services/cloud-ali"
  333. -                                                                                                                     }
  334. -                                                                                                            }
  335. -                                                                                                   }
  336. -                                                                                          }
  337. -                                                                                 },
  338. -                                                                           "route": {
  339. -                                                                                    "cluster": "inbound|8080||cloud-ali.default.svc.cluster.local",
  340. -                                                                                    "max_grpc_timeout": "0.000s",
  341. -                                                                                    "timeout": "0.000s"
  342. -                                                                                 }
  343. -                                                                        }
  344. -                                                               ]
  345. -                                                      }
  346. -                                             ]
  347. -                                    },
  348. -                              "stat_prefix": "10.3.0.223_8080",
  349. -                              "stream_idle_timeout": "0.000s",
  350. -                              "tracing": {
  351. -                                       "client_sampling": {
  352. -                                                "value": 100
  353. -                                             },
  354. -                                       "overall_sampling": {
  355. -                                                "value": 100
  356. -                                             },
  357. -                                       "random_sampling": {
  358. -                                                "value": 1
  359. -                                             }
  360. -                                    },
  361. -                              "upgrade_configs": [
  362. -                                       {
  363. -                                                "upgrade_type": "websocket"
  364. -                                             }
  365. -                                    ],
  366. -                              "use_remote_address": false
  367. -                           }
  368. -                     }
  369. -                  ]
  370. -               }
  371. -            ],
  372. -            "deprecatedV1": {
  373. -               "bindToPort": false
  374. -            },
  375. -            "listenerFilters": [
  376. -               {
  377. -                  "name": "envoy.listener.tls_inspector",
  378. -                  "config": {
  379. -                     }
  380. -               }
  381. -            ]
  382. +                  "portValue": 3333
  383. +               }
  384. +            },
  385. +            "filterChains": [
  386. +               {
  387. +                  "filters": [
  388. +                     {
  389. +                        "name": "envoy.tcp_proxy",
  390. +                        "config": {
  391. +                              "access_log": [
  392. +                                       {
  393. +                                                "config": {
  394. +                                                         "format": "[%START_TIME%] %RESPONSE_FLAGS% %BYTES_RECEIVED% %BYTES_SENT% %DURATION% \"%UPSTREAM_HOST%\" %UPSTREAM_CLUSTER% %UPSTREAM_LOCAL_ADDRESS% %DOWNSTREAM_LOCAL_ADDRESS% %DOWNSTREAM_REMOTE_ADDRESS%\n",
  395. +                                                         "path": "/dev/stdout"
  396. +                                                      },
  397. +                                                "name": "envoy.file_access_log"
  398. +                                             }
  399. +                                    ],
  400. +                              "cluster": "inbound|3333||mgmtCluster",
  401. +                              "stat_prefix": "inbound|3333||mgmtCluster"
  402. +                           }
  403. +                     }
  404. +                  ]
  405. +               }
  406. +            ],
  407. +            "deprecatedV1": {
  408. +               "bindToPort": false
  409. +            }
  410. +         }
  411. +      },
  412. +      {
  413. +         "listener": {
  414. +            "name": "10.3.0.223_9999",
  415. +            "address": {
  416. +               "socketAddress": {
  417. +                  "address": "10.3.0.223",
  418. +                  "portValue": 9999
  419. +               }
  420. +            },
  421. +            "filterChains": [
  422. +               {
  423. +                  "filters": [
  424. +                     {
  425. +                        "name": "envoy.tcp_proxy",
  426. +                        "config": {
  427. +                              "access_log": [
  428. +                                       {
  429. +                                                "config": {
  430. +                                                         "format": "[%START_TIME%] %RESPONSE_FLAGS% %BYTES_RECEIVED% %BYTES_SENT% %DURATION% \"%UPSTREAM_HOST%\" %UPSTREAM_CLUSTER% %UPSTREAM_LOCAL_ADDRESS% %DOWNSTREAM_LOCAL_ADDRESS% %DOWNSTREAM_REMOTE_ADDRESS%\n",
  431. +                                                         "path": "/dev/stdout"
  432. +                                                      },
  433. +                                                "name": "envoy.file_access_log"
  434. +                                             }
  435. +                                    ],
  436. +                              "cluster": "inbound|9999||mgmtCluster",
  437. +                              "stat_prefix": "inbound|9999||mgmtCluster"
  438. +                           }
  439. +                     }
  440. +                  ]
  441. +               }
  442. +            ],
  443. +            "deprecatedV1": {
  444. +               "bindToPort": false
  445. +            }
  446.           }
  447.        },
  448.        {
  449.           "listener": {
  450.              "name": "10.4.0.10_53",
  451.              "address": {
  452.                 "socketAddress": {
  453.  
  454. Routes Match
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement