• 阿里云添加自定义路由


    # 添加自定义主机路由
    # 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
  • 相关阅读:
    Android最流行的网络框架
    linux知识库
    linux tail命令使用
    Android系列之Fragment(二)Fragment的生命周期和返回栈
    viewpager中fragment的生命周期管理
    fragment和fragmentactivity解析
    Android之Activity,Fragment生命周期探知
    Fragment生命周期
    基础总结篇之四:Service完全解析
    Activity的task相关
  • 原文地址:https://www.cnblogs.com/apink/p/15248028.html
Copyright © 2020-2023  润新知