zoukankan      html  css  js  c++  java
  • 阿里云添加自定义路由

    # 添加自定义主机路由
    # dev环境
    ./aliyun --profile nflow.profile vpc CreateRouteEntry --RegionId 'cn-hangzhou' --RouteTableId 'vtb-bp1spmwi7cxz6du84e615' --DestinationCidrBlock '172.19.244.64/26' --RouteEntryName DEV-K8S-WN1 --NextHopId 'i-bp17b1uatlkfjkxt2ero' --region cn-hangzhou
    # sit环境
    ./aliyun --profile nflow.profile vpc CreateRouteEntry --RegionId 'cn-hangzhou' --RouteTableId 'vtb-bp19wx2qq64vc1ykyeiuj' --DestinationCidrBlock '172.19.244.64/26' --RouteEntryName SIT-K8S-WN1 --NextHopId 'ecs-isntance-id' --region cn-hangzhou
    # pre环境
    ./aliyun --profile nflow.profile vpc CreateRouteEntry --RegionId 'cn-hangzhou' --RouteTableId 'vtb-bp1qb32rjd1vgd8n1t7u2' --DestinationCidrBlock '172.19.244.64/26' --RouteEntryName PRE-K8S-WN1 --NextHopId 'ecs-isntance-id' --region cn-hangzhou
    # 生产环境
    ./aliyun --profile nflow.profile vpc CreateRouteEntry --RegionId 'cn-hangzhou' --RouteTableId 'vtb-bp1262ngllp7nz1ek0ikj' --DestinationCidrBlock '172.19.244.64/26' --RouteEntryName PROD-K8S-WN1 --NextHopId 'ecs-isntance-id' --region cn-hangzhou
    # SYS环境
    ./aliyun --profile nflow.profile vpc CreateRouteEntry --RegionId 'cn-hangzhou' --RouteTableId 'vtb-bp1i62hkc1uoa1hcy8wvy' --DestinationCidrBlock '172.19.244.64/26' --RouteEntryName PROD-K8S-WN1 --NextHopId 'ecs-isntance-id' --region cn-hangzhou
    
    ./aliyun --profile nflow.profile vpc CreateRouteEntry 
        --RegionId 'cn-hangzhou' 
        --RouteTableId 'vtb-bp1spmwi7cxz6du84e615' 
        --DestinationCidrBlock '172.19.244.64/26' 
        --RouteEntryName test 
        --NextHopId 'i-bp17b1uatlkfjkxt2ero' 
        --region cn-hangzhou
    
    # 跨VPC自定义路由
    # SYS -> DEV
    ./aliyun --profile nflow.profile vpc CreateRouteEntry --RegionId 'cn-hangzhou' --RouteTableId 'vtb-bp1i62hkc1uoa1hcy8wvy' --DestinationCidrBlock 'PodCIDRs' --NextHopId 'ri-bp1s0rokkfavee9g46l5r' --RouteEntryName 'PodName' --NextHopType RouterInterface --region cn-hangzhou
    # SYS -> RPOD
    ./aliyun --profile nflow.profile vpc CreateRouteEntry --RegionId 'cn-hangzhou' --RouteTableId 'vtb-bp1i62hkc1uoa1hcy8wvy' --DestinationCidrBlock 'PodCIDRs' --NextHopId 'ri-bp1s5a4lzl5y0enligvqa' --RouteEntryName 'PodName' --NextHopType RouterInterface --region cn-hangzhou
    # SYS -> PRE
    ./aliyun --profile nflow.profile vpc CreateRouteEntry --RegionId 'cn-hangzhou' --RouteTableId 'vtb-bp1i62hkc1uoa1hcy8wvy' --DestinationCidrBlock 'PodCIDRs' --NextHopId 'ri-bp1x3k6z3p4dan2fose25' --RouteEntryName 'PodName' --NextHopType RouterInterface --region cn-hangzhou
    # SYS -> SIT
    ./aliyun --profile nflow.profile vpc CreateRouteEntry --RegionId 'cn-hangzhou' --RouteTableId 'vtb-bp1i62hkc1uoa1hcy8wvy' --DestinationCidrBlock 'PodCIDRs' --NextHopId 'ri-bp1k9kpxa2i5pc1e4zove' --RouteEntryName 'PodName' --NextHopType RouterInterface --region cn-hangzhou
    # PROD -> SYS
    ./aliyun --profile nflow.profile vpc CreateRouteEntry --RegionId 'cn-hangzhou' --RouteTableId 'vtb-bp1262ngllp7nz1ek0ikj' --DestinationCidrBlock 'PodCIDRs' --NextHopId 'ri-bp16a0gxq88siddfdjlci' --RouteEntryName 'PodName' --NextHopType RouterInterface --region cn-hangzhou
    # PRE -> SYS
    ./aliyun --profile nflow.profile vpc CreateRouteEntry --RegionId 'cn-hangzhou' --RouteTableId 'vtb-bp1qb32rjd1vgd8n1t7u2' --DestinationCidrBlock 'PodCIDRs' --NextHopId 'ri-bp1eijunnfofhw0hrkz62' --RouteEntryName 'PodName' --NextHopType RouterInterface --region cn-hangzhou
  • 相关阅读:
    cenos安装memcache
    微信开发——测试号申请,接口配置,JS接口安全域名,自定义菜单
    mysql设计-优化
    mysql设计-基本操作
    CI框架部署后访问出现404
    ueditor的bug
    git操作
    github基本操作
    基于SSH协议clone GitHub远端仓库到本地-git
    Thinkphp5.0 路由
  • 原文地址:https://www.cnblogs.com/apink/p/15248028.html
Copyright © 2011-2022 走看看