61 lines
1.2 KiB
YAML
61 lines
1.2 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: bind
|
|
labels:
|
|
app: bind
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: bind
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: bind
|
|
spec:
|
|
priorityClassName: system-node-critical
|
|
containers:
|
|
- name: bind
|
|
image: cytopia/bind
|
|
imagePullPolicy: "Always"
|
|
env:
|
|
- name: DNS_A
|
|
value: "*.{{ .Values.homey.url }}={{ .Values.homey.ip }}, {{ .Values.homey.url }}={{ .Values.homey.ip }}, *.{{ .Values.homey.internal_url }}={{ .Values.homey.ip }}, {{ .Values.homey.internal_url }}={{ .Values.homey.ip}}"
|
|
- name: DNS_FORWARDER
|
|
value: "8.8.8.8,8.8.4.4"
|
|
- name: ALLOW_RECURSION
|
|
value: "any"
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: bind-dns-udp
|
|
spec:
|
|
type: NodePort
|
|
selector:
|
|
app: bind
|
|
ports:
|
|
- port: 53
|
|
targetPort: 53
|
|
protocol: UDP
|
|
name: dns-udp
|
|
nodePort: 32053
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: bind-dns-tcp
|
|
spec:
|
|
type: NodePort
|
|
selector:
|
|
app: bind
|
|
ports:
|
|
- port: 53
|
|
targetPort: 53
|
|
protocol: TCP
|
|
name: dns-tcp
|
|
nodePort: 32054
|
|
---
|