aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/unbound/unbound-deployment.yaml
blob: 1831e0933fc0744ad7433e5d225aee4e5b2b712b (plain) (blame)
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
38
39
40
41
apiVersion: apps/v1
kind: Deployment
metadata:
  name: unbound
  labels:
    app: unbound
spec:
  replicas: 1
  selector:
    matchLabels:
      app: unbound
  template:
    metadata:
      labels:
        app: unbound
    spec:
      containers:
      - name: unbound
        image: klutchell/unbound
        ports:
        - containerPort: 53
---
apiVersion: v1
kind: Service
metadata:
  name: unbound-service
spec:
  selector:
    app: unbound
  type: NodePort
  ports:
    - protocol: UDP
      port: 53
      name: "unbound-udp-53"
      targetPort: 53
      nodePort: 30853
    - protocol: TCP
      port: 53
      name: "unbound-tcp-53"
      targetPort: 53
      nodePort: 30853