Cloud Native应用交付

  • 首页
  • 关于本站
  • 个人介绍
  • Downloads
  • Repo
    • Github
    • Container
  • F5
    • F5 In AI Agent Arch
    • F5 AI Infrastructure Blueprint
    • F5 Python SDK
    • F5-container
    • F5-LBaaS
  • 社交
    • 联系我
    • 微信/微博
    • 公众号
    • 打赏赞助
行至水穷处 坐看云起时
Cloud Native Application Services: cnadn.net
  1. 首页
  2. F5-Tech tips
  3. 正文

openstack heat模板之配置基本LB到F5 BIGIP

2017年10月11日 11674点热度 1人点赞 0条评论

Warning: Array to string conversion in /home/wwwroot/myf5/wp-content/plugins/wpjam-basic/public/wpjam-utils.php on line 496
[root@controller heat(keystone_fulladmin)]$ more deploy-lb.yaml 
description: >
  This heat template demonstrates a basic load-balancing scenario on an F5 Device.

heat_template_version: 2016-04-08

parameters:
  bigip_un:
    description: BigIP Username
    label: BigIP Login Username
    type: string
    default: admin
  bigip_pw:
    description: BigIP Password
    label: BigIP Login Password
    type: string
    hidden: True
  vs_name:
    description: Virtual Server Name
    label: Virtual Server Name
    type: string
    default: virtual_server1
  pool_name:
    description: Pool Name
    label: Pool Name
    type: string
    default: pool1
  bigip_fip:
    description: BigIP Floating IP
    label: BigIP FIP
    type: string
  vs_vip:
    description: Virtual Server Virtual IP
    label: Virtual Server VIP
    type: string
  vs_port:
    description: Virtual Server Port
    label: Virtual Server Port
    type: number
    default: 443
  pool_member_port:
    description: Pool Member Port
    label: Pool Member Port
    type: number
    default: 8080

parameter_groups:
  - label: BigIP Parameters 
    parameters:
      - bigip_fip
      - bigip_un
      - bigip_pw
  - label: Load Balancing Parameters
    parameters:
      - vs_name
      - vs_vip
      - vs_port
      - pool_name
      - pool_member_port

resources:
  bigip:
    type: F5::BigIP::Device
    properties:
      ip: { get_param: bigip_fip }
      username: { get_param: bigip_un }
      password: { get_param: bigip_pw }
  partition:
    type: F5::Sys::Partition
    depends_on: bigip
    properties:
      name: Common
      bigip_server: { get_resource: bigip }
  iapp_service:
    type: F5::Sys::iAppService
    depends_on: iapp_template
    properties:
      name: lb_service
      bigip_server: { get_resource: bigip }
      partition: { get_resource: partition }
      template_name: alb_templ
      traffic_group: /Common/traffic-group-local-only
  iapp_template:
    type: F5::Sys::iAppCompositeTemplate
    depends_on: partition
    properties:
      name: alb_templ
      bigip_server: { get_resource: bigip }
      partition: { get_resource: partition }
      requires_modules: [ ltm ]
      implementation:
        str_replace:
          params:
            __partition__: Common
            __pool_name__: { get_param: pool_name }
            __vs_name__: { get_param: vs_name }
            __vip__: { get_param: vs_vip }
            __vs_port__: { get_param: vs_port }
            __rs_port__: { get_param: pool_member_port }
            __rs_ip__: 11.0.0.10
          template: |
            tmsh::create {
                ltm pool /__partition__/__pool_name__
                    load-balancing-mode least-connections-node
                    members replace-all-with {
                        __rs_ip__:__rs_port__ {
                            address __rs_ip__
                        }
                    }
            }

            tmsh::create {
                ltm virtual /__partition__/__vs_name__
                    connection-limit 1
                    destination /__partition__/__vip__:__vs_port__
                    mask 255.255.255.255
                    pool /__partition__/__pool_name__
                    profiles replace-all-with {
                        /Common/clientssl {
                            context clientside
                        }
                    }
                    source 0.0.0.0/0
                    source-address-translation {
                        type automap
                    }
                    translate-address enabled
                    translate-port enabled
                    vlans replace-all-with {
                        /Common/external
                    }
                    vlans-enabled
            }

            tmsh::create {
                ltm virtual-address /__partition__/__vip__
                    address __vip__
                    arp enabled
                    icmp-echo enabled
                    mask 255.255.255.255
                    traffic-group traffic-group-1
            }
      presentation: |
        section say_hello {
            message intro "This template deploys a virtual server and a pool with two members."
        }
[root@controller heat(keystone_fulladmin)]$ cat deploy-lb-params.yaml 
parameters:
  bigip_un: admin
  bigip_pw: admin
  vs_name: virtual_server_heat
  pool_name: pool_heat
  bigip_fip: 192.168.214.253
  vs_vip: 6.7.8.9
  vs_port: 443
  pool_member_port: 8080

openstack stack create -t deploy-lb.yaml -e deploy-lb-params.yaml f5-heat-stack

Array
本作品采用 知识共享署名-非商业性使用 4.0 国际许可协议 进行许可
标签: bigp F5 heat openstack
最后更新:2017年10月11日

纳米

linjing.io

打赏 点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理。

页面AI聊天助手

纳米

linjing.io

☁️迈向Cloud Native ADC ☁️

认证获得:
TOGAF: ID 152743
Kubernetes: CKA #664
Microsoft: MCSE MCDBA
Cisco: CCNP
Juniper: JNCIS
F5:
F5 Certified Solution Expert, Security
F5 Certified Technology Specialist, LTM/GTM/APM/ASM
F5 Certified BIG-IP Administrator
  • 点击查看本博技术要素列表
  • 归档
    分类
    • AI
    • Automation
    • Avi Networks
    • Cisco ACI
    • CISCO资源
    • F5 with ELK
    • F5-Tech tips
    • F5技术
    • Juniper
    • Linux
    • NGINX
    • SDN
    • ServiceMesh
    • WEB编程
    • WINDOWS相关
    • 业界文章
    • 交换机技术
    • 化云为雨/Openstack
    • 协议原理
    • 容器/k8s
    • 我的工作
    • 我的生活
    • 网站技术
    • 路由器技术
    • 项目案例
    标签聚合
    k8s envoy neutron openstack DNS flannel network irule gtm F5 nginx api bigip docker istio
    最近评论
    Abeny 发布于 8 个月前(02月20日) Very good!
    lz 发布于 2 年前(02月26日) 66666666666666
    汤姆 发布于 2 年前(09月10日) 嗨,楼主,里面的json怎么下载啊,怎么收费啊?
    汤姆 发布于 2 年前(09月09日) 大佬,kib的页面可以分享下吗?谢谢
    zhangsha 发布于 3 年前(05月12日) 资料发给我下,谢谢纳米同志!!!!lyx895@qq.com
    浏览次数
    • Downloads - 196,943 views
    • 联系我 - 138,139 views
    • 迄今为止最全最深入的BIGIP-DNS/GTM原理及培训资料 - 128,090 views
    • Github - 115,736 views
    • Sniffer Pro 4 70 530抓包软件 中文版+视频教程 - 92,122 views
    • F5常见log日志解释 - 91,008 views
    • 迄今为止最全最深入的BIGIP-DNS/GTM原理及培训资料 - 89,644 views
    • 从传统ADC迈向CLOUD NATIVE ADC - 下载 - 88,300 views
    • 关于本站 - 77,301 views
    • F5利用Elastic stack(ELK)进行应用数据挖掘系列(2)-DNS - 65,264 views
    链接表
    • F5SE创新
    • Jimmy Song‘s Blog
    • SDNlab
    • Service Mesh社区
    • 三斗室
    • 个人profile
    • 云原生社区

    COPYRIGHT © 2023 Cloud Native 应用交付. ALL RIGHTS RESERVED.

    Theme Kratos Made By Seaton Jiang

    京ICP备14048088号-1

    京公网安备 11010502041506号