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
  • 相关阅读:
    【转】c#文件操作大全(一)
    Visual Assist安装、破解方法
    web socket多线程实时监听
    SFTP上传下载
    数据库分页代码
    JAVA H5微信分享
    Eclipse中activiti插件的安装
    HTTP请求报文和HTTP响应报文
    CodeVS 1013&1029
    Codeforces 805D/804B
  • 原文地址:https://www.cnblogs.com/apink/p/15248028.html
Copyright © 2011-2022 走看看