apiVersion: v1 kind: ConfigMap metadata: name: nip-io data: backend.conf: | [main] domain=lcl.home.shoup.io ttl=432000 ipaddress=127.0.0.1 [soa] id=1 hostmaster=hostmaster@lcl.home.shoup.io ns=ns1.lcl.home.shoup.io [nameservers] ns1.lcl.home.shoup.io=127.0.0.1 ns2.lcl.home.shoup.io=127.0.0.1 [blacklist] --- apiVersion: apps/v1 kind: Deployment metadata: name: nip-io spec: replicas: 1 selector: matchLabels: app: nip-io template: metadata: labels: app: nip-io spec: containers: - image: shouptech/nip.io imagePullPolicy: IfNotPresent name: nip-io volumeMounts: - name: config mountPath: /usr/local/bin/backend.conf subPath: backend.conf ports: - containerPort: 53 name: dns-tcp protocol: TCP - containerPort: 53 name: dns-udp protocol: UDP volumes: - name: config configMap: name: nip-io --- kind: Service apiVersion: v1 metadata: name: nip-io spec: type: NodePort selector: app: nip-io ports: - name: dns-tcp protocol: TCP port: 53 nodePort: 31053 targetPort: dns-tcp - name: dns-udp protocol: UDP port: 53 nodePort: 31053 targetPort: dns-udp