Cloud Native应用交付

  • 首页
  • 关于本站
  • 个人介绍
  • Downloads
  • Repo
    • Github
    • Container
  • F5
    • 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日 9548点热度 1人点赞 0条评论

YAML
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
[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."
        }

YAML
1
2
3
4
5
6
7
8
9
10
[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

相关文章

  • F5常见log日志解释
  • F5 TMOS系统操作手册
  • BIGIP DNS (GTM)V12变化速览
  • TMOS/LTM V12.0 行为变化列表 (Release notes)
  • F5 SSL forward proxy
本作品采用 知识共享署名-非商业性使用 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
    • 我的工作
    • 我的生活
    • 网站技术
    • 路由器技术
    • 项目案例
    标签聚合
    nginx envoy DNS F5 irule flannel network api docker gtm k8s neutron openstack bigip istio
    最近评论
    汤姆 发布于 8 个月前(09月10日) 嗨,楼主,里面的json怎么下载啊,怎么收费啊?
    汤姆 发布于 8 个月前(09月09日) 大佬,kib的页面可以分享下吗?谢谢
    zhangsha 发布于 1 年前(05月12日) 资料发给我下,谢谢纳米同志!!!!lyx895@qq.com
    李成才 发布于 1 年前(01月02日) 麻烦了,谢谢大佬
    纳米 发布于 1 年前(01月02日) 你好。是的,因为以前下载系统插件在一次升级后将所有的下载生成信息全弄丢了。所以不少文件无法下载。DN...
    浏览次数
    • Downloads - 183,676 views
    • 联系我 - 118,966 views
    • 迄今为止最全最深入的BIGIP-DNS/GTM原理及培训资料 - 116,205 views
    • Github - 103,555 views
    • F5常见log日志解释 - 79,729 views
    • 从传统ADC迈向CLOUD NATIVE ADC - 下载 - 74,509 views
    • Sniffer Pro 4 70 530抓包软件 中文版+视频教程 - 74,320 views
    • 迄今为止最全最深入的BIGIP-DNS/GTM原理及培训资料 - 67,770 views
    • 关于本站 - 60,804 views
    • 这篇文档您是否感兴趣 - 55,463 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号