aboutsummaryrefslogblamecommitdiffstats
path: root/kubernetes/unbound/unbound-deployment.yaml
blob: 1831e0933fc0744ad7433e5d225aee4e5b2b712b (plain) (tree)
1
2
3
4
5
6
7
8
9
10



                   
         


                

                


















                                
                


                   





                            
                    
                     
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