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
  • 相关阅读:
    RabbitMQ详解(二)——
    Redis6详解(二)——常用命令
    MybatisPlus(二)——
    数据结构与算法(五)——树
    数据结构与算法(四)——队列
    数据结构与算法(三)——栈
    MybatisPlus(一)——
    Docker详解(一)——
    kafka详解(一)——
    FIle类操作
  • 原文地址:https://www.cnblogs.com/apink/p/15248028.html
Copyright © 2011-2022 走看看