检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
创建静态EIPPool 静态EIPPool,即根据用户指定的多个未使用的EIP,静态纳管底层的EIP资源,同时在CCI命名空间下创建相应的EIP对象。如果EIPPool中的EIP已经被NAT或者ELB使用,则会纳管失败。
amount EIP资源池中的EIP数量 取值范围为0~500。 networkType EIP的类型 取值范围:5_telcom(电信),5_union(联通),5_bgp(全动态BGP),5_sbgp(静态BGP),5_ipv6。 必须是系统具体支持的类型。
使用CCI部署静态Web应用 本节通过在云容器实例上部署一个名称为2048的静态Web游戏应用为例,帮助您学习如何使用云容器实例。 您将按以下流程学习如何使用云容器实例。 操作流程 操作步骤 说明 准备工作 您需要注册华为账号,并为账户充值。
创建EIPPool 创建动态EIPPool 创建静态EIPPool 父主题: EIPPool
EIPPool对象支持两种EIP资源管理方式:动态管理EIP资源(EIP资源由CCI自动创建)、静态管理EIP资源(EIP资源由用户提前创建)。 约束与限制 一个Pod只能绑定一个EIP。 绑定EIP的Pod,如果要被公网成功访问,需要添加放通相应公网请求流量的安全组规则。
size of the PublicIP id String The ID of the PublicIP ipv4 String The ipv4 address of the PublicIP ipv6 String The ipv6 address of the PublicIP
创建Pod时,可指定annotation属性,创建完成后,更新EIP相关的annotation均无效。 EIP随Pod创建的优先级高于使用EIPPool创建的EIP。 绑定已有EIP创建的优先级高于EIP随Pod创建的EIP。
39m 以静态创建的eippool-demo2为例,更新EIPPool就是增加或减少EIPPool中纳管的公网IP。
使用EIPPool 在命名空间下创建完成EIPPool对象后,用户可在Pod模板中添加指定的Annotation: yangtse.io/eip-pool 使用对应EIPPool中的EIP资源,指定后,Pod在创建时将会自动从EIPPool中获取一个可用的EIP并绑定至Pod。
为Pod动态创建EIP EIP随Pod创建 创建Pod时,填写pod-with-eip的annotation后,EIP会随Pod自动创建并绑定至该Pod。 以下示例创建一个名为nginx的无状态负载,EIP将随Pod自动创建并绑定至Pod。具体字段含义见表1。
EIPPool 查询指定namespace下的EIPPools 创建EIPPool 删除指定的EIPPool 查询指定的EIPPool 更新EIPPool 替换EIPPool 查询指定的EIPPool 父主题: API
EIPPool EIPPool概述 创建EIPPool 使用EIPPool 管理EIPPool
为Pod绑定已有EIP 为Pod指定EIP的ID 创建Pod时,填写yangtse.io/eip-id的annotation后,EIP会随Pod自动完成绑定。 以下示例创建一个名为nginx的实例数为1的无状态负载,EIP将随Pod自动绑定至Pod。具体字段含义见表1。
EIP EIP概述 为Pod动态创建EIP 为Pod绑定已有EIP
size of the PublicIP id String The ID of the PublicIP ipv4 String The ipv4 address of the PublicIP ipv6 String The ipv6 address of the PublicIP
size of the PublicIP id String The ID of the PublicIP ipv4 String The ipv4 address of the PublicIP ipv6 String The ipv6 address of the PublicIP
size of the PublicIP id String The ID of the PublicIP ipv4 String The ipv4 address of the PublicIP ipv6 String The ipv6 address of the PublicIP
size of the PublicIP id String The ID of the PublicIP ipv4 String The ipv4 address of the PublicIP ipv6 String The ipv6 address of the PublicIP
删除指定的EIPPool 功能介绍 删除指定的EIPPool。 调用方法 请参见如何调用API。
size of the PublicIP id String The ID of the PublicIP ipv4 String The ipv4 address of the PublicIP ipv6 String The ipv6 address of the PublicIP