Admin interface included is nicer!

This commit is contained in:
WilliamMiceli
2018-06-29 17:53:09 -04:00
parent 6da33305e5
commit aeed17008f
6 changed files with 93 additions and 65 deletions

View File

@@ -0,0 +1 @@
# Bind9

View 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

View 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

View File

@@ -0,0 +1,8 @@
name: Bind
description: |
Status: NOT READY
version: latest
category: Networking
maintainer: WilliamMiceli
# license:
# projectURL: