Public ungleich kubernetes repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

65 lines
1.5 KiB

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: test-knot-deployment
spec:
selector:
matchLabels:
app: test-knot-deployment
replicas: 2
template:
metadata:
labels:
app: test-knot-deployment
spec:
containers:
- name: knot
image: cznic/knot:3.0
ports:
- name: udp-53
containerPort: 53
protocol: UDP
- name: tcp-53
containerPort: 53
protocol: TCP
volumeMounts:
- name: config
mountPath: "/config"
args:
- knotd
volumes:
- name: config
configMap:
name: test-knot-config-deployment
---
apiVersion: v1
kind: ConfigMap
metadata:
name: test-knot-config-deployment
data:
knot.conf: |
server:
listen: 0.0.0.0@53
listen: ::@53
log:
- target: stdout
zone:
- domain: example.com
file: /config/example.com
example.com: |
$TTL 60
@ IN SOA dns3.ungleich.ch. root.ungleich.ch. (
2021021800 ; serial number of this zone file
1d ; slave refresh (1 day)
2h ; slave retry time in case of a problem (2 hours)
4w ; slave expiration time (4 weeks)
1w ; maximum caching time in case of failed lookups (1 hour)
)
NS dns1.ungleich.ch.
test AAAA 2a0a:e5c0:13::42