真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

kubernetes中istio-1.0.0如何部署和試用-創(chuàng)新互聯(lián)

小編給大家分享一下kubernetes中istio-1.0.0如何部署和試用,希望大家閱讀完這篇文章之后都有所收獲,下面讓我們一起去探討吧!

在秦安等地區(qū),都構(gòu)建了全面的區(qū)域性戰(zhàn)略布局,加強(qiáng)發(fā)展的系統(tǒng)性、市場(chǎng)前瞻性、產(chǎn)品創(chuàng)新能力,以專(zhuān)注、極致的服務(wù)理念,為客戶(hù)提供網(wǎng)站設(shè)計(jì)制作、做網(wǎng)站 網(wǎng)站設(shè)計(jì)制作按需制作,公司網(wǎng)站建設(shè),企業(yè)網(wǎng)站建設(shè),品牌網(wǎng)站制作,全網(wǎng)營(yíng)銷(xiāo)推廣,成都外貿(mào)網(wǎng)站建設(shè)公司,秦安網(wǎng)站建設(shè)費(fèi)用合理。

一:簡(jiǎn)介

本文介紹如何在kubernetes1.10.4集群中部署istio-1.0.0 并試用istio自帶的bookinfo實(shí)例應(yīng)用。

二:安裝

1.獲取安裝包

wget https://github.com/istio/istio/releases/download/1.0.0/istio-1.0.0-linux.tar.gz

tar -zxvf istio-1.0.0-linux.tar.gz

2.安裝istioctl

如果手動(dòng)注入sidecar的話需要使用這個(gè)命令:

cp istio-1.0./bin/istioctl /usr/local/bin/

設(shè)置環(huán)境變量:

ISTIO_HOME=/root/istio-1.0

PATH=$ISTIO_HOME/bin:$PATH

export  ISTIO_HOME  PATH 

3.安裝istio核心組件

kubectl apply -f istio-1.0.0/install/kubernetes/istio-demo.yaml

gcr.io和quay.io相關(guān)的鏡像下載不了的話可以替換為自己的鏡像:

daocloud.io/liukuan73/proxy_init:1.0.0

daocloud.io/liukuan73/galley:1.0.0

daocloud.io/liukuan73/mixer:1.0.0

daocloud.io/liukuan73/proxyv2:1.0.0

daocloud.io/liukuan73/pilot:1.0.0

daocloud.io/liukuan73/citadel:1.0.0

daocloud.io/liukuan73/servicegraph:1.0.0

daocloud.io/liukuan73/sidecar_injector:1.0.0

daocloud.io/liukuan73/istio-grafana:1.0.0

4.安裝結(jié)果驗(yàn)證

kubernetes中istio-1.0.0如何部署和試用

kubernetes中istio-1.0.0如何部署和試用

三:試用

1.sidecar自動(dòng)注入配置

 Istio裝好后,如果想sidecar在應(yīng)用啟動(dòng)時(shí)自動(dòng)注入到pod中,還需要配置如下4步:

a.安裝istio-sidecar-injector

 安裝了istio-sidecar-injector后,kubectl create起應(yīng)用的時(shí)候sidecar容器會(huì)直接自動(dòng)注入到pod中,而不用手動(dòng)注入。

b.啟用mutating webhook admission controller

在kube-apiserver的啟動(dòng)參數(shù)的admission controller中按正確順序加入如下兩個(gè)controller:MutatingAdmissionWebhook,ValidatingAdmissionWebhook

--admission-control=ServiceAccount,Initializers,NamespaceLifecycle,NamespaceExists,LimitRanger,DefaultStorageClass,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota

c.啟用admissionregistration api

kubectl api-versions | grep admissionregistration

admissionregistration.k8s.io/v1beta1 

d.為需要自動(dòng)注入sidecar的namespace打label

kubectl label namespace istio-test istio-injection=enabled

kubectl get namespace -L istio-injection

kubernetes中istio-1.0.0如何部署和試用

2.啟動(dòng)示例應(yīng)用

a.示例結(jié)構(gòu)

kubernetes中istio-1.0.0如何部署和試用

b.安裝示例

kubectl apply -n istio-test -f istio-1.0.0/samples/bookinfo/platform/kube/bookinfo.yaml

kubernetes中istio-1.0.0如何部署和試用

c. 配置traefik Ingress

為了便于集群外訪問(wèn)驗(yàn)證,配置Ingress代理

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: traefik-ingress
  namespace: kube-system
spec:
  rules:
  - host: elasticsearch.donkey
    http:
      paths:
      - path: /
        backend:
          serviceName: elasticsearch-logging
          servicePort: 9200
  - host: kibana.donkey
    http:
      paths:
      - path: /
        backend:
          serviceName: kibana-logging
          servicePort: 5601
  - host: locust.donkey
    http:
      paths:
      - path: /
        backend:
          serviceName: locust-master
          servicePort: 8089
  - host: dashboard.donkey
    http:
      paths:
      - path: /
        backend:
          serviceName: kubernetes-dashboard
          servicePort: 32666
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: istio-ingress
  namespace: istio-system
spec:
  rules:
  - host: grafana.istio.donkey
    http:
      paths:
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: traefik-ingress
  namespace: kube-system
spec:
  rules:
  - host: elasticsearch.donkey
    http:
      paths:
      - path: /
        backend:
          serviceName: elasticsearch-logging
          servicePort: 9200
  - host: kibana.donkey
    http:
      paths:
      - path: /
        backend:
          serviceName: kibana-logging
          servicePort: 5601
  - host: locust.donkey
    http:
      paths:
      - path: /
        backend:
          serviceName: locust-master
          servicePort: 8089
  - host: dashboard.donkey
    http:
      paths:
      - path: /
        backend:
          serviceName: kubernetes-dashboard
          servicePort: 32666
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: istio-ingress
  namespace: istio-system
spec:
  rules:
  - host: grafana.istio.donkey
    http:
      paths:
      - path: /
        backend:
          serviceName: grafana
          servicePort: 3000
  - host: zipkin.istio.donkey
    http:

3.示例驗(yàn)證

a.bookinfo 示例  http://productpage.donkey/productpage?u=normal

kubernetes中istio-1.0.0如何部署和試用

b.監(jiān)控  http://grafana.istio.donkey

kubernetes中istio-1.0.0如何部署和試用c.Prometheus頁(yè)面 http://prometheus.istio.donkey

kubernetes中istio-1.0.0如何部署和試用

d.ServiceGraph頁(yè)面

kubernetes中istio-1.0.0如何部署和試用

看完了這篇文章,相信你對(duì)“kubernetes中istio-1.0.0如何部署和試用”有了一定的了解,如果想了解更多相關(guān)知識(shí),歡迎關(guān)注創(chuàng)新互聯(lián)-成都網(wǎng)站建設(shè)公司行業(yè)資訊頻道,感謝各位的閱讀!


文章名稱(chēng):kubernetes中istio-1.0.0如何部署和試用-創(chuàng)新互聯(lián)
地址分享:http://weahome.cn/article/dhooeh.html

其他資訊

在線咨詢(xún)

微信咨詢(xún)

電話咨詢(xún)

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部