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
  • 相关阅读:
    mac os x 查看网络端口情况
    mac 启动php-fpm报错 failed to open configuration file '/private/etc/php-fpm.conf': No such file or direc
    视频播放—— H5同层播放器接入规范
    [转]webpack中require和import的区别
    职场方法论系列—怎样做项目
    一幅图帮你搞懂订单的拆分与合并
    如何用数据去驱动决策?
    分库分表的 9种分布式主键ID 生成方案,挺全乎的
    快手基于 Apache Flink 的优化实践
    SQL数据库中临时表、临时变量和WITH AS关键词创建“临时表”的区别
  • 原文地址:https://www.cnblogs.com/apink/p/15248028.html
Copyright © 2011-2022 走看看