added cloudflare from catalog

This commit is contained in:
Bill Maxwell 2016-03-23 21:26:34 -07:00
parent 4ba17efe58
commit 0bab879f36
6 changed files with 278 additions and 0 deletions

View File

@ -0,0 +1,13 @@
cloudflare:
image: rancher/external-dns:v0.1.9
command: -provider=cloudflare
expose:
- 1000
environment:
CLOUDFLARE_EMAIL: ${CLOUDFLARE_EMAIL}
CLOUDFLARE_KEY: ${CLOUDFLARE_KEY}
ROOT_DOMAIN: ${ROOT_DOMAIN}
TTL: ${TTL}
labels:
io.rancher.container.create_agent: "true"
io.rancher.container.agent.role: "external-dns"

View File

@ -0,0 +1,36 @@
.catalog:
name: "CloudFlare DNS"
version: "v0.1.9-rancher1"
description: "Rancher External DNS service powered by CloudFlare. Requires Rancher version 0.44.0"
minimum_rancher_version: v0.44.0
questions:
- variable: "CLOUDFLARE_EMAIL"
label: "CloudFlare email address"
description: "Email address associated with your CloudFlare account"
type: "string"
required: true
- variable: "CLOUDFLARE_KEY"
label: "CloudFlare API key"
description: "API key for your CloudFlare account"
type: "string"
required: true
- variable: "ROOT_DOMAIN"
label: "Domain"
description: "The DNS zone (domain) managed by CloudFlare. DNS entries will be created for <service>.<stack>.<environment>.<domain>"
type: "string"
required: true
- variable: "TTL"
label: "TTL"
description: "The resource record cache time to live (TTL), in seconds (minimum 120)"
type: "int"
default: 300
required: false
cloudflare:
health_check:
port: 1000
interval: 2000
unhealthy_threshold: 3
request_line: GET / HTTP/1.0
healthy_threshold: 2
response_timeout: 2000

View File

@ -0,0 +1,13 @@
cloudflare:
image: rancher/external-dns:v0.2.1
command: -provider=cloudflare
expose:
- 1000
environment:
CLOUDFLARE_EMAIL: ${CLOUDFLARE_EMAIL}
CLOUDFLARE_KEY: ${CLOUDFLARE_KEY}
ROOT_DOMAIN: ${ROOT_DOMAIN}
TTL: ${TTL}
labels:
io.rancher.container.create_agent: "true"
io.rancher.container.agent.role: "external-dns"

View File

@ -0,0 +1,36 @@
.catalog:
name: "CloudFlare DNS"
version: "v0.2.1-rancher1"
description: "Rancher External DNS service powered by CloudFlare. Requires Rancher version 0.44.0"
minimum_rancher_version: v0.44.0
questions:
- variable: "CLOUDFLARE_EMAIL"
label: "CloudFlare email address"
description: "Email address associated with your CloudFlare account"
type: "string"
required: true
- variable: "CLOUDFLARE_KEY"
label: "CloudFlare API key"
description: "API key for your CloudFlare account"
type: "string"
required: true
- variable: "ROOT_DOMAIN"
label: "Domain"
description: "The DNS zone (domain) managed by CloudFlare. DNS entries will be created for <service>.<stack>.<environment>.<domain>"
type: "string"
required: true
- variable: "TTL"
label: "TTL"
description: "The resource record cache time to live (TTL), in seconds (minimum 120)"
type: "int"
default: 300
required: false
cloudflare:
health_check:
port: 1000
interval: 2000
unhealthy_threshold: 3
request_line: GET / HTTP/1.0
healthy_threshold: 2
response_timeout: 2000

View File

@ -0,0 +1,175 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="-106 584.4 505.9 331.1" style="enable-background:new -106 584.4 505.9 331.1;" xml:space="preserve">
<style type="text/css">
.st0{fill:#3D3D3D;}
.st1{fill:#FFFFFF;}
.st2{fill:#F7C94A;}
.st3{fill:#313131;}
.st4{fill:#0D5E8C;}
.st5{fill:#0071BC;}
.st6{fill:#E6E6E6;}
.st7{fill:#414042;}
.st8{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_1_);}
.st9{fill:#F68B1F;}
.st10{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_2_);}
.st11{fill-rule:evenodd;clip-rule:evenodd;fill:#F68B1F;}
.st12{fill:url(#SVGID_3_);}
.st13{fill:url(#SVGID_4_);}
.st14{fill:url(#SVGID_5_);}
.st15{fill:url(#SVGID_6_);}
.st16{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_7_);}
</style>
<g>
<g>
<path class="st0" d="M35.3,674.1l7.2-7.8c3.4-3.7,7.6-4.6,11.1-1.3c2.8,2.6,2.8,6.2,1.6,8.6c1-0.1,2,0.1,3,0.3
c2.3,0.7,4.6,1.8,6.1,0.1c0.4-0.4,0.6-0.9,0.6-0.9l3,3.5c0,0-0.7,1.2-1.5,2.1c-2.1,2.3-4.2,2.7-8.4,1.3c-1.9-0.7-5-2.1-5.9-1
l-1,1.1l7.5,7l-4.3,4.7L35.3,674.1z M43.1,672.5l4.7,4.3l1.6-1.7c1.2-1.4,2.3-3.3,0.3-5.2c-1.7-1.5-3.2-1-4.4,0.3L43.1,672.5z"/>
<path class="st0" d="M58.5,651.5l5.2-3.9l22.7,15.3l-5.2,3.9l-4.3-2.9l-6.9,5.3l1.7,4.9l-4.5,3.4L58.5,651.5z M68.3,664.4l4.4-3.4
l-4.7-3.3c-1.6-1.1-3.4-3-3.4-3l-0.1,0.1c0,0,1.3,2.3,1.9,4.1L68.3,664.4z"/>
<path class="st0" d="M74.9,639.7l6.1-3.1l11.9,8.4c1,0.7,2.6,2.1,3.8,3.2l0.1-0.1c-0.7-1.3-1.8-3-2.5-4.4l-5.6-11.1l4.7-2.4
l11.8,23.2l-6,3l-12.1-8.2c-1.1-0.7-2.5-1.9-3.6-2.9l-0.1,0.1c0.8,1.2,1.7,2.7,2.4,4l5.6,11.1l-4.7,2.4L74.9,639.7z"/>
<path class="st0" d="M102.8,640.3c-2.7-9,0.7-14,7.6-16.1c7.3-2.1,11.3,1,12.1,6.6l-5.6,2.2c-0.5-4.1-2.6-5.3-5.3-4.4
c-2.7,0.8-4.3,3.4-2.4,9.8c2,6.8,4.9,7.8,7.6,7c2.5-0.7,4.1-2.9,2.7-6.1l5.5-1c1.9,4.9-0.7,9.7-7.3,11.7
C111,652,105.5,649.3,102.8,640.3z"/>
<path class="st0" d="M126.1,620.7l6.4-0.7l1,9.7l7.8-0.8l-1-9.7l6.4-0.7l2.7,25.8L143,645l-1.1-10.9l-7.8,0.8l1.1,10.9l-6.4,0.7
L126.1,620.7z"/>
<path class="st0" d="M153.7,618.6l17.1,1.1l-0.3,4.8l-10.7-0.7l-0.4,5.6l9,0.6l-0.3,4.8l-9-0.6l-0.4,6.1l11.1,0.7l-0.3,4.8
l-17.5-1.3L153.7,618.6z"/>
<path class="st0" d="M176.8,620.6l10.4,2.4c4.9,1.1,7.7,4.3,6.6,8.9c-0.9,3.8-4,5.5-6.7,5.7c0.6,0.8,1,1.8,1.2,2.8
c0.6,2.4,0.7,4.9,2.9,5.4c0.6,0.1,1.1,0,1.1,0l-1.5,4.3c0,0-1.4,0-2.6-0.2c-3-0.7-4.4-2.3-5.3-6.7c-0.3-2-0.6-5.4-2-5.7l-1.4-0.3
l-2.3,10l-6.2-1.5L176.8,620.6z M182,626.5l-1.4,6.2l2.2,0.5c1.8,0.4,4,0.3,4.6-2.4c0.5-2.2-0.7-3.3-2.5-3.7L182,626.5z"/>
<path class="st0" d="M208.8,629.6l8.9,4.4c5.8,2.8,8.6,8.4,4.6,16.6c-3.9,8-10,9.7-16,6.7l-8.9-4.4L208.8,629.6z M207.8,652.8
c2.6,1.2,5.8,0.9,8.7-5.1c2.9-6,1.2-8.5-1.4-9.8l-2.6-1.3l-7.3,14.9L207.8,652.8z"/>
<path class="st0" d="M233.2,642.3l5.5,4.1l-2.2,14.4c-0.2,1.2-0.8,3.3-1.2,4.9l0.1,0.1c0.8-1.2,1.9-3,2.8-4.2l7.4-10l4.2,3.1
l-15.5,20.8l-5.4-4l2-14.5c0.2-1.3,0.6-3.1,1-4.5l-0.1-0.1c-0.8,1.2-1.7,2.7-2.5,3.9l-7.4,10l-4.2-3.1L233.2,642.3z"/>
<path class="st0" d="M245.4,674.6c-1.8,1.1-3,3.3-0.2,6.3c1.8,2,3.3,1.9,4.3,0.9c1.6-1.5,0.5-3.4-0.6-5.9
c-1.7-3.7-3.5-8.3,0.4-12.1c3.5-3.3,8.2-2.6,12.5,2.1c5.2,5.7,3.4,10.5-0.1,12.6l-4.4-3.9c2.4-1.8,2.9-3.7,0.8-5.9
c-1.4-1.5-2.7-1.8-3.9-0.7c-1.6,1.5-0.6,3.4,0.5,5.9c1.7,3.7,3.8,8.2-0.1,11.9c-3.4,3.2-8.2,3-12.8-1.9c-4.3-4.6-5.2-9.8-0.6-12.9
L245.4,674.6z"/>
</g>
</g>
<g>
<g>
<g>
<path class="st4" d="M191,710.1l-2.2-13.7c-0.7-4.3-2.2-8-3.6-8s-2.3,3.5-2.3,7.8v3.5c0,4.4-3.9,8.6-8.3,8.6h-3.5
c-0.3,0-0.2-0.6-0.2-0.6v9.7c0,0,0,0.9,0.2,0.9h13.2C188.8,718.4,191.7,714.4,191,710.1z"/>
</g>
</g>
<g>
<path class="st4" d="M113,710.1l2.2-13.7c0.7-4.3,2.7-8,4-8s2.7,3.5,2.7,7.8v3.5c0,4.4,3.1,8.6,7.4,8.6h3.5c0.3,0,1-0.6,1-0.6v9.7
c0,0-0.8,0.9-1,0.9h-13.2C115.3,718.4,112.3,714.4,113,710.1z"/>
</g>
<path class="st5" d="M171.6,751.4c0,2.8-2.2,5-5,5h-28c-2.8,0-5-2.2-5-5v-48c0-2.8,2.2-5,5-5h28c2.8,0,5,2.2,5,5V751.4z"/>
</g>
<g>
<path class="st7" d="M311.9,803.3h-9l-8.8,15.9h-11.8v-15.9h-6.1v19h22.5l2-3.6h13.7l2.1,3.6h6.2L311.9,803.3z M302.1,816l5.4-9.9
h0.1l5.5,9.9H302.1z"/>
<path class="st7" d="M341.6,816c4.7-0.5,6.5-2,6.5-6.1c0-5.3-2.8-6.6-11.3-6.6h-14v19h6.1v-15.9h8c4.6,0,5.2,0.7,5.2,3.4
c0,2.6-0.8,3.1-4.8,3.2h-6.9l11,9.3h7.7L341.6,816z"/>
<path class="st7" d="M357.1,811.2h14.9v3h-14.9v5.1h15.8v3.1H351v-19h21.8v3.1h-15.7V811.2z"/>
</g>
<g>
<path class="st7" d="M137.1,818.8h-11.6c-4.7,0-6.2-2.5-6.2-5v-5.2c0-3.6,2-4.6,7.3-4.6h9v0h3.3v-3.6h-12.3
c-10.1,0-14.4,2.2-14.4,8.1v5.2c0,4.6,2.1,8.6,13.2,8.6H139v-3.6L137.1,818.8L137.1,818.8z"/>
</g>
<g>
<path class="st7" d="M147.4,819.2h14.8v3.1h-20.9v-19h6.1V819.2z"/>
</g>
<g>
<path class="st7" d="M188.9,810.1v5.1c0,6.1-3.9,7.3-13.5,7.3c-9.8,0-13.4-1-13.4-7.3v-5.1c0-5.9,3.3-7,13.4-7
C184.5,803.1,188.9,804,188.9,810.1z M168.1,810.1v5.1c0,3.8,1.2,4.1,7.3,4.1c5.5,0,7.4-0.5,7.4-4.1v-5.1c0.1-3.6-2-3.8-7.4-3.8
C168.8,806.2,168.2,807.1,168.1,810.1z"/>
</g>
<g>
<path class="st7" d="M217.6,803.3v13.5c0,5.3-5.5,5.7-13.2,5.7c-7.4,0-13.2-0.3-13.2-5.7v-13.5h6.1v13.5c0,2,1.2,2.5,7.1,2.5
c5.6,0,7.2-0.5,7.2-2.5v-13.5H217.6z"/>
</g>
<g>
<path class="st7" d="M220.8,803.3H236c8.8,0,12.5,1.9,12.5,7.1v4.5c0,4-1.9,7.5-11.5,7.5h-16.2V803.3z M237,819.2
c4.1,0,5.4-2.2,5.4-4.3v-4.5c0-3.2-1.7-4-6.4-4h-9.1v12.8H237z"/>
</g>
<g>
<path class="st7" d="M257.6,810h16v3.4h-16v8.9h-6.9v-21.6h23.8v3.5h-16.9V810z"/>
</g>
<path class="st7" d="M377.7,803c0.9,0,1.6,0.7,1.6,1.6s-0.7,1.6-1.6,1.6c-0.9,0-1.6-0.7-1.6-1.6S376.8,803,377.7,803z M377.7,805.9
c0.7,0,1.2-0.6,1.2-1.3c0-0.7-0.5-1.3-1.2-1.3c-0.7,0-1.2,0.6-1.2,1.3C376.5,805.3,377,805.9,377.7,805.9z M377.1,803.7h0.6
c0.4,0,0.8,0.1,0.8,0.5c0,0.3-0.2,0.5-0.4,0.5l0.4,0.7H378l-0.4-0.7h-0.1v0.7h-0.4V803.7z M377.5,804.4h0.2c0.1,0,0.3,0,0.3-0.2
c0-0.2-0.2-0.2-0.3-0.2h-0.2V804.4z"/>
<radialGradient id="SVGID_1_" cx="63.4912" cy="813.2974" r="32.463" fx="62.6966" fy="814.9673" gradientUnits="userSpaceOnUse">
<stop offset="0" style="stop-color:#FFFFFF"/>
<stop offset="0.1902" style="stop-color:#FCE800"/>
<stop offset="0.8593" style="stop-color:#EC8F27"/>
</radialGradient>
<polygon class="st8" points="60.8,792.5 64.7,779 65.2,779.1 65.6,793.2 72.9,781.3 73.5,781.6 70.1,795.2 80.4,785.5 80.9,785.9
74,798.2 86.4,791.6 86.8,792.1 77,802.2 90.7,799.1 91,799.7 78.8,806.8 92.9,807.3 92.9,807.9 79.3,811.7 92.9,815.7 92.9,816.3
78.7,816.5 90.7,824 90.4,824.6 76.8,821.2 86.4,831.4 86,832 73.8,825 80.4,837.3 79.8,837.8 69.7,827.9 73,841.5 72.4,841.9
65.2,829.8 65,843.8 64.3,843.9 60.4,830.4 56.4,843.9 55.7,843.8 55.7,829.8 55.3,829.6 47.5,841.3 50.9,827.8 40.6,837.4
40,836.9 47,824.7 34.5,831.2 34.1,830.7 43.9,820.8 30.1,823.8 30,823.3 42.2,816.1 28.2,815.6 28,815 41.5,811.2 28.1,807.2
28.2,806.6 42.3,806.3 30.4,799.1 30.5,798.5 44.2,801.9 34.5,791.6 35,791.1 47.3,797.8 40.6,785.6 41,785.1 51.3,795 48,781.3
47.8,781 56,793.2 56.2,779 57,779 "/>
<path class="st6" d="M326.7,769.4c-1.3-95.1-79.1-172-174.5-172s-173.1,76.9-174.5,172h-61.8v10h70.8c3.9-4.1,8.5-7.5,13.5-10h-12.5
c1.3-89.6,74.6-162,164.5-162c89.9,0,163.1,72.4,164.5,162h-49.5c-1.3-62.3-52.4-112.5-115-112.5c-62.2,0-113,49.6-114.9,111.3
c6.2,2.5,11.7,6.4,16.3,11.2h334.4v-10H326.7z M47.2,769.4c1.3-56.7,47.9-102.5,105-102.5c57.1,0,103.6,45.8,105,102.5H47.2z"/>
<path class="st9" d="M98.9,838c0-13.5-10.9-24.4-24.4-24.4c-5.4,0-10.5,1.8-14.5,4.8c0.5-2.6,0.8-5.2,0.8-7.9
c0-22.5-18.2-40.7-40.7-40.7c-17.9,0-33.1,11.5-38.5,27.6c-3.1-2.3-6.9-3.7-11-3.7c-10.1,0-18.3,8.2-18.3,18.3
c0,1.6,0.2,3.1,0.6,4.5c-14,0.4-25.2,11.9-25.2,26c0,1.6,0.2,3.2,0.4,4.8H97.1C98.3,844.5,98.9,841.3,98.9,838z"/>
<linearGradient id="SVGID_2_" gradientUnits="userSpaceOnUse" x1="20.158" y1="802.0308" x2="20.158" y2="770.1898">
<stop offset="0" style="stop-color:#F68B1F"/>
<stop offset="1" style="stop-color:#FFFFFF"/>
</linearGradient>
<path class="st10" d="M56,810.5c0,19.8-16.1,32.3-35.9,32.3c-19.8,0-35.8-12.5-35.8-32.3s16.1-35.9,35.9-35.9
C40,774.6,56,790.7,56,810.5"/>
<path class="st11" d="M50.5,810.7c0,12.1-13.7,21.9-30.6,21.9c-16.9,0-30.6-9.8-30.6-21.9c0-12.1,13.7-21.9,30.6-21.9
C36.8,788.8,50.5,798.6,50.5,810.7"/>
<linearGradient id="SVGID_3_" gradientUnits="userSpaceOnUse" x1="100.0179" y1="800.0533" x2="110.1432" y2="810.1786" gradientTransform="matrix(0.9642 0.2653 -0.2653 0.9642 79.281 1.3461)">
<stop offset="0" style="stop-color:#FFFFFF"/>
<stop offset="4.820809e-02" style="stop-color:#FEF6ED"/>
<stop offset="0.2569" style="stop-color:#FBD0A5"/>
<stop offset="0.4442" style="stop-color:#F9B26B"/>
<stop offset="0.6034" style="stop-color:#F79D42"/>
<stop offset="0.7282" style="stop-color:#F69028"/>
<stop offset="0.8033" style="stop-color:#F68B1F"/>
</linearGradient>
<circle class="st12" cx="-29.2" cy="812.1" r="13.5"/>
<path class="st11" d="M-18.2,807c2.3,4-0.6,9.9-6.4,13.3c-5.8,3.4-12.4,2.9-14.7-1.1c-2.3-4,0.6-9.9,6.4-13.3
C-27.1,802.5-20.5,803-18.2,807"/>
<linearGradient id="SVGID_4_" gradientUnits="userSpaceOnUse" x1="-70.3798" y1="802.4201" x2="-32.0835" y2="861.3842">
<stop offset="0" style="stop-color:#FFFFFF"/>
<stop offset="4.820809e-02" style="stop-color:#FEF6ED"/>
<stop offset="0.2569" style="stop-color:#FBD0A5"/>
<stop offset="0.4442" style="stop-color:#F9B26B"/>
<stop offset="0.6034" style="stop-color:#F79D42"/>
<stop offset="0.7282" style="stop-color:#F69028"/>
<stop offset="0.8033" style="stop-color:#F68B1F"/>
</linearGradient>
<path class="st13" d="M-25,842.5c0-11.8-9.6-21.4-21.4-21.4c-11.8,0-21.4,9.6-21.4,21.4c0,0,0,0.1,0,0.1H-25
C-25,842.6-25,842.6-25,842.5z"/>
<linearGradient id="SVGID_5_" gradientUnits="userSpaceOnUse" x1="81.672" y1="817.2772" x2="75.7959" y2="834.5002">
<stop offset="0" style="stop-color:#FFFFFF"/>
<stop offset="4.820809e-02" style="stop-color:#FEF6ED"/>
<stop offset="0.2569" style="stop-color:#FBD0A5"/>
<stop offset="0.4442" style="stop-color:#F9B26B"/>
<stop offset="0.6034" style="stop-color:#F79D42"/>
<stop offset="0.7282" style="stop-color:#F69028"/>
<stop offset="0.8033" style="stop-color:#F68B1F"/>
</linearGradient>
<path class="st14" d="M94.2,837.8c0-10.8-8.7-19.5-19.5-19.5c-10.8,0-19.5,8.7-19.5,19.5c0,1.5,0.2,3,0.5,4.4h37.9
C94,840.8,94.2,839.3,94.2,837.8z"/>
<linearGradient id="SVGID_6_" gradientUnits="userSpaceOnUse" x1="13.701" y1="825.1458" x2="13.701" y2="843.9667">
<stop offset="0" style="stop-color:#F68B1F"/>
<stop offset="0.5308" style="stop-color:#CB672F"/>
<stop offset="1" style="stop-color:#A1453F"/>
</linearGradient>
<polygon class="st15" points="95,842.9 94.3,841.4 93.5,840.1 92.4,838.3 91.3,836.9 89.9,835.2 88.5,833.7 86.9,832.2 85.4,830.9
83.7,829.7 82,828.7 80.2,827.6 78.6,826.8 77,826.2 75.5,825.8 74.1,825.4 72.6,825.2 70.9,825 -39.4,825.3 -41.2,825.4
-42.9,825.4 -44.9,825.7 -46.5,826 -48.6,826.5 -50,827 -51.5,827.5 -53.1,828.1 -55,829.1 -56.4,829.8 -58.3,831 -60,832.3
-61.7,833.7 -63.2,835.2 -64.5,836.7 -65.7,838.4 -66.7,840.1 -67.4,841.5 -67.8,842.9 -68.1,844 95.5,844 "/>
<radialGradient id="SVGID_7_" cx="36.2359" cy="822.964" r="43.4509" fx="63.1889" fy="815.0864" gradientUnits="userSpaceOnUse">
<stop offset="0" style="stop-color:#FFFFFF"/>
<stop offset="0.1334" style="stop-color:#FCE800"/>
<stop offset="0.8593" style="stop-color:#EC8F27"/>
</radialGradient>
<polygon class="st16" points="63.2,815.2 78,834.5 77.4,834.9 60.2,819.4 -6.1,831.5 -6.1,830.8 55.4,816.7 21.6,805.1 22,804.6 "/>
</svg>

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -0,0 +1,5 @@
name: CloudFlare DNS
description: |
Rancher External DNS service powered by CloudFlare
version: v0.2.1-rancher1
category: Rancher Services