<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # 使用 SOFAMosn 構建 SOFAMesh **注意:本書中的 Service Mesh 章節已不再維護,請轉到 [istio-handbook](https://jimmysong.io/istio-handbook) 中瀏覽。** 本文介紹的內容將包括 : - [SOFAMosn](https://github.com/alipay/sofa-mosn) 與 [SOFAMesh](https://github.com/alipay/sofa-mesh) 的關系 - 部署 SOFAMesh 至于 SOFAMesh 的使用跟 Istio 沒有區別,只是截止本文發稿時 SOFAMosn 的流量管理只支持: - 按 version 路由 - 按 weight 路由 - 按照特定 header 路由 其他更高級功能仍在進一步開發中。 ## SOFAMosn 與 SOFAMesh 的關系 **SOFAMosn 是使用 Go 語言開發的 Service Mesh 數據平面代理**,而 SOFAMesh 則是基于 Istio 改進和擴展而來的 Service Mesh 大規模落地實踐方案, SOFAMosn **是** SOFAMesh 的關鍵組件。目前由于 SOFAMosn 相比 Envoy 做了一些改造,無法在 Istio 下直接使用,所以本文的實驗需要在 SOFAMesh 體系中進行。下圖是 SOFAMesh 整體框架下,SOFAMosn 的工作示意圖。 ![SOFAMosn 架構圖](https://ws3.sinaimg.cn/large/006tNbRwly1fwdlx22rv9j31ec184dlr.jpg) ## 部署 SOFAMesh 我們直接使用 `sofa-mesh-demo.yaml` 文件來安裝 SOFAMesh,不過在安裝前你需要先使用 [kubernetes-vagrant-centos-cluster](https://github.com/rootsongjc/kubernetes-vagrant-centos-cluster) 安裝 Kubernetes 集群,建議安裝 Kubernetes 1.11+,并在你的本地電腦上安裝 `kubectl` 命令行工具。 執行下面的命令部署 SOFAMesh。 ```bash $ kubectl create -f manifests/sofa-mesh ``` # SOFAMosn in SOFAMesh 部署完成后,我們再檢查下在 `istio-system` 命名空間下啟動的 pod 和 service。 ```bash # 獲取 pod 狀態 $ kubectl -n istio-system get pod NAME READY STATUS RESTARTS AGE istio-citadel-5cf74d467f-c8dkr 1/1 Running 0 1h istio-egressgateway-d4c9f6864-hpz86 1/1 Running 0 1h istio-galley-6886984468-szfhc 1/1 Running 0 1h istio-ingressgateway-64465cbb5f-5rmrf 1/1 Running 0 1h istio-pilot-86c787bbfb-2n4rt 1/1 Running 0 1h istio-policy-6ff7df778c-x87k7 1/1 Running 0 1h istio-sidecar-injector-69577c64c5-b86sc 1/1 Running 0 1h istio-statsd-prom-bridge-55965ff9c8-22hrf 1/1 Running 0 1h istio-telemetry-65d66f78f6-l8mkc 1/1 Running 0 1h prometheus-7456f56c96-mptww 1/1 Running 0 1h # 獲取服務狀態 $ kubectl -n istio-system get svc NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE istio-citadel ClusterIP 10.254.216.170 <none> 8060/TCP,9093/TCP 1h istio-egressgateway ClusterIP 10.254.150.44 <none> 80/TCP,443/TCP 1h istio-galley ClusterIP 10.254.70.174 <none> 443/TCP,9093/TCP 1h istio-ingressgateway NodePort 10.254.116.52 <none> 80:31380/TCP,443:31390/TCP,31400:31400/TCP,15011:32270/TCP,8060:30226/TCP,15030:31883/TCP,15031:31955/TCP 1h istio-pilot ClusterIP 10.254.150.248 <none> 15010/TCP,15011/TCP,8080/TCP,9093/TCP 1h istio-policy ClusterIP 10.254.80.42 <none> 9091/TCP,15004/TCP,9093/TCP 1h istio-sidecar-injector ClusterIP 10.254.183.202 <none> 443/TCP 1h istio-statsd-prom-bridge ClusterIP 10.254.51.10 <none> 9102/TCP,9125/UDP 1h istio-telemetry ClusterIP 10.254.176.114 <none> 9091/TCP,15004/TCP,9093/TCP,42422/TCP 1h prometheus ClusterIP 10.254.17.234 <none> 9090/TCP 1h ``` **注意**:因為我的集群不支持 `LoadBalancer` ,所以`istio-ingressgateway` 服務我們使用 `NodePort` 方式對外暴露。 ## 參考 - [SOFAMesh - github.com](https://github.com/alipay/sofa-mesh) - [SOFAMosn - github.com](https://github.com/alipay/sofa-mosn)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看