zoukankan      html  css  js  c++  java
  • istio 安装试用

    1. 命令行工具
    1. curl -L https://git.io/getIstio | sh -
    2. 环境变量配置
    1. export PATH=$PWD/bin:$PATH
    3. RBAC 检验
    1. kubectl api-versions | grep rbac
    以下为官方介绍:
    1. If the command displays an error, or does not display anything, it means the cluster does not support RBAC, and you can proceed to step 5 below.
    2. If the command displays ‘beta’ version, or both ‘alpha’ and ‘beta’, please apply istio-rbac-beta.yaml configuration:
    3. kubectl apply -f install/kubernetes/istio-rbac-beta.yaml
    4. Copy
    5. If you get an error
    6. Error from server (Forbidden): error when creating "install/kubernetes/istio-rbac-beta.yaml": clusterroles.rbac.authorization.k8s.io "istio-manager" is forbidden: attempt to grant extra privileges: [{[*] [istio.io] [istioconfigs] [] []} {[*] [istio.io] [istioconfigs.istio.io] [] []} {[*] [extensions] [thirdpartyresources] [] []} {[*] [extensions] [thirdpartyresources.extensions] [] []} {[*] [extensions] [ingresses] [] []} {[*] [] [configmaps] [] []} {[*] [] [endpoints] [] []} {[*] [] [pods] [] []} {[*] [] [services] [] []}] user=&{user@example.org [...]
    7. Copy
    8. You need to add the following: (replace the name with your own)
    9. kubectl create clusterrolebinding myname-cluster-admin-binding --clusterrole=cluster-admin --user=myname@example.org
    10. Copy
    11. If the command displays only ‘alpha’ version, please apply istio-rbac-alpha.yaml configuration:
    12. kubectl apply -f install/kubernetes/istio-rbac-alpha.yaml
    4. 安装核心组件(注意service type 的定义)
    1. kubectl apply -f install/kubernetes/istio.yaml
    1. kubectl apply -f install/kubernetes/istio-auth.yaml
    5. 监控组件安装
    1. kubectl apply -f install/kubernetes/addons/prometheus.yaml
    2. kubectl apply -f install/kubernetes/addons/grafana.yaml
    3. kubectl apply -f install/kubernetes/addons/servicegraph.yaml
    6. bookinfo 例子安装
    1. kubectl apply -f <(istioctl kube-inject -f samples/apps/bookinfo/bookinfo.yaml)
    7. 几个问题

    安装需要使用serviceaccount 注意配置,istioctl 需要使用kubectl config 注意配置
    主要是 kubectl config set-cluster kubectl config set-context  kubectl use-context 命令
    因为部分容器需要按照特权模式运行,需要配置apiserver controller-manager  --allow-privileged=true
    同时服务默认部分使用的是云平台的loadblance 测试环境可能没有,所以需要改为NodePort

    8. 总结

            总之安装还是比较简单的,但是还需要深入研究,每个组件的设计,以及功能。
    9. 参考文档



  • 相关阅读:
    D. Time to Run【构造】
    P3388 割顶 【求割点个数】
    处女座的测验 素数,构造
    处女座与复读机 DP
    求一个分数小数点后指定位数的数字
    安卓开发创建活动,布局,添加按钮,she使用Toast,设菜单,使菜单相关联等操作
    三进制 处女座的砝码 高精度
    上海高校程序设计联赛 D-CSL的字符串 栈模拟
    区间DP经典 石子合并
    区间DP 洛谷P2858牛奶零食
  • 原文地址:https://www.cnblogs.com/rongfengliang/p/6920616.html
Copyright © 2011-2022 走看看