45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
namespace: technitium
|
|
name: technitium
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: technitium
|
|
serviceName: technitium
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: technitium
|
|
spec:
|
|
restartPolicy: Always
|
|
terminationGracePeriodSeconds: 10
|
|
containers:
|
|
- name: technitium
|
|
image: technitium/dns-server:15.0.0
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 256Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 512Mi
|
|
volumeMounts:
|
|
- name: technitium-volume
|
|
mountPath: /etc/dns
|
|
ports:
|
|
- containerPort: 5380
|
|
env:
|
|
- name: DNS_SERVER_DOMAIN
|
|
value: jsme.be
|
|
- name: DNS_SERVER_FORWARDERS
|
|
value: 9.9.9.9
|
|
- name: DNS_SERVER_LOG_USING_LOCAL_TIME
|
|
value: "true"
|
|
volumes:
|
|
- name: technitium-volume
|
|
persistentVolumeClaim:
|
|
claimName: technitium-pvc
|