summaryrefslogtreecommitdiffhomepage
path: root/cmd/k8s-operator/deploy/manifests/nameserver/deploy.yaml
blob: c3a16e03e9a42d01909a39a88a3ac8c17c4933b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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:
        - name: dnsrecords
          mountPath: /config
      restartPolicy: Always
      serviceAccount: nameserver
      serviceAccountName: nameserver
      volumes:
      - name: dnsrecords
        configMap:
          name: dnsrecords