2024-04-30 19:18:23 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: nameserver
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
revisionHistoryLimit: 5
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: nameserver
|
|
|
|
strategy:
|
|
|
|
type: Recreate
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: nameserver
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- imagePullPolicy: IfNotPresent
|
|
|
|
name: nameserver
|
|
|
|
ports:
|
|
|
|
- name: tcp
|
|
|
|
protocol: TCP
|
|
|
|
containerPort: 1053
|
|
|
|
- name: udp
|
|
|
|
protocol: UDP
|
|
|
|
containerPort: 1053
|
|
|
|
volumeMounts:
|
2024-05-02 16:29:46 +00:00
|
|
|
- name: dnsrecords
|
2024-04-30 19:18:23 +00:00
|
|
|
mountPath: /config
|
|
|
|
restartPolicy: Always
|
|
|
|
serviceAccount: nameserver
|
|
|
|
serviceAccountName: nameserver
|
|
|
|
volumes:
|
2024-05-02 16:29:46 +00:00
|
|
|
- name: dnsrecords
|
2024-04-30 19:18:23 +00:00
|
|
|
configMap:
|
2024-05-02 16:29:46 +00:00
|
|
|
name: dnsrecords
|