Admin interface included is nicer!
This commit is contained in:
22
templates/BInd/0/docker-compose.yml
Normal file
22
templates/BInd/0/docker-compose.yml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
version: '2'
|
||||||
|
services:
|
||||||
|
bind:
|
||||||
|
image: sameersbn/bind
|
||||||
|
environment:
|
||||||
|
WEBMIN_ENABLED: ${WEBMIN_ENABLED}
|
||||||
|
{{- if eq .Values.WEBMIN_ENABLED "true"}}
|
||||||
|
ROOT_PASSWORD: ${WEBMIN_ROOT_PASS}
|
||||||
|
{{- end}}
|
||||||
|
labels:
|
||||||
|
{{- if (.Values.HOST_LABEL)}}
|
||||||
|
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
||||||
|
{{- end}}
|
||||||
|
ports:
|
||||||
|
- "53:53/tcp"
|
||||||
|
- "53:53/udp"
|
||||||
|
{{- if eq .Values.WEBMIN_ENABLED "true"}}
|
||||||
|
- "${WEBMIN_PORT}:10000"
|
||||||
|
{{- end}}
|
||||||
|
restart: on-failure
|
||||||
|
volumes:
|
||||||
|
- ${STORAGE_BASE_DIR}${DATA_DIR}:/data
|
||||||
69
templates/BInd/0/rancher-compose.yml
Normal file
69
templates/BInd/0/rancher-compose.yml
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
version: '2'
|
||||||
|
catalog:
|
||||||
|
name: Bind
|
||||||
|
version: latest
|
||||||
|
# description:
|
||||||
|
# minimum_rancher_version:
|
||||||
|
# maximum_rancher_version:
|
||||||
|
# upgrade_from:
|
||||||
|
questions:
|
||||||
|
|
||||||
|
- variable: "HOST_LABEL"
|
||||||
|
label: "Host Label Key/Value Pair"
|
||||||
|
description: |
|
||||||
|
The Key/Value pair on the host which Bind should be deployed.
|
||||||
|
default: "host.id=0000"
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
|
||||||
|
- variable: "WEBMIN_ENABLED"
|
||||||
|
label: "Enable Webmin"
|
||||||
|
description: |
|
||||||
|
Enable or Disable Webmin.
|
||||||
|
default: true
|
||||||
|
required: true
|
||||||
|
type: boolean
|
||||||
|
|
||||||
|
- variable: "WEBMIN_ROOT_PASS"
|
||||||
|
label: "Webmin Password"
|
||||||
|
description: |
|
||||||
|
The password for the Webmin "root" user. If unset, it will be "password".
|
||||||
|
If Webmin is disabled, this will not have any effect.
|
||||||
|
# default:
|
||||||
|
required: false
|
||||||
|
type: password
|
||||||
|
|
||||||
|
- variable: "WEBMIN_PORT"
|
||||||
|
label: "Webmin Port"
|
||||||
|
description: |
|
||||||
|
The port that the Webmin interface will be accessible on.
|
||||||
|
default: "10000"
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
|
||||||
|
- variable: "STORAGE_BASE_DIR"
|
||||||
|
label: "Base Storage Directory"
|
||||||
|
description: |
|
||||||
|
The base path of where persistent storage should be kept at.
|
||||||
|
default: "/RancherStorage/Bind"
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
|
- variable: "DATA_DIR"
|
||||||
|
label: "Data Directory"
|
||||||
|
description: |
|
||||||
|
The path of where persistent data should be kept at.
|
||||||
|
default: "/Data"
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
|
bind:
|
||||||
|
scale: 1
|
||||||
|
health_check:
|
||||||
|
port: 53
|
||||||
|
interval: 2000
|
||||||
|
initializing_timeout: 20000
|
||||||
|
unhealthy_threshold: 3
|
||||||
|
strategy: recreate
|
||||||
|
healthy_threshold: 2
|
||||||
|
response_timeout: 2000
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
name: Bind9
|
name: Bind
|
||||||
description: |
|
description: |
|
||||||
Status: NOT READY
|
Status: NOT READY
|
||||||
# version:
|
version: latest
|
||||||
category: Networking
|
category: Networking
|
||||||
maintainer: WilliamMiceli
|
maintainer: WilliamMiceli
|
||||||
# license:
|
# license:
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
bind9:
|
|
||||||
image: digitallumberjack/docker-bind9:v1.2.0
|
|
||||||
ports:
|
|
||||||
- ${BIND9_PORT}:53/tcp
|
|
||||||
- ${BIND9_PORT}:53/udp
|
|
||||||
environment:
|
|
||||||
BIND9_ROOTDOMAIN: ${BIND9_ROOTDOMAIN}
|
|
||||||
BIND9_KEYNAME: ${BIND9_KEYNAME}
|
|
||||||
BIND9_KEY: ${BIND9_KEY}
|
|
||||||
BIND9_FORWARDERS: ${BIND9_FORWARDERS}
|
|
||||||
RANCHER_ENV: "true"
|
|
||||||
@@ -1,52 +0,0 @@
|
|||||||
version: '2'
|
|
||||||
catalog:
|
|
||||||
name: Bind9
|
|
||||||
version: latest
|
|
||||||
# description:
|
|
||||||
# minimum_rancher_version:
|
|
||||||
# maximum_rancher_version:
|
|
||||||
# upgrade_from:
|
|
||||||
questions:
|
|
||||||
|
|
||||||
- variable: "BIND9_ROOTDOMAIN"
|
|
||||||
label: "The root domain to manage in bind9"
|
|
||||||
description: "This root domain will be managed by the Bind9 server. Updates and axfr requests will be made on this domain"
|
|
||||||
type: "string"
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- variable: "BIND9_KEYNAME"
|
|
||||||
label: "Bind9 TSIG Keyname"
|
|
||||||
description: "The TSIG keyname"
|
|
||||||
type: "string"
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- variable: "BIND9_KEY"
|
|
||||||
label: "Bind9 TSIG Key (base64 encoded)"
|
|
||||||
description: "The TSIG key. Must be base64 encoded"
|
|
||||||
type: "string"
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- variable: "BIND9_PORT"
|
|
||||||
label: "Bind9 port"
|
|
||||||
description: "Bind9 port to expose on host. Will be used to bind both TCP and UDP"
|
|
||||||
type: "string"
|
|
||||||
default: 53
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- variable: "BIND9_FORWARDERS"
|
|
||||||
label: "Bind9 dns forwarders"
|
|
||||||
description: "The DNS forwarders"
|
|
||||||
type: "string"
|
|
||||||
default: 8.8.8.8;8.8.4.4;
|
|
||||||
required: true
|
|
||||||
|
|
||||||
bind9:
|
|
||||||
scale: 1
|
|
||||||
health_check:
|
|
||||||
port: ${BIND9_PORT}
|
|
||||||
interval: 2000
|
|
||||||
initializing_timeout: 20000
|
|
||||||
unhealthy_threshold: 3
|
|
||||||
strategy: recreate
|
|
||||||
healthy_threshold: 2
|
|
||||||
response_timeout: 2000
|
|
||||||
Reference in New Issue
Block a user