1
0
Fork 0
mirror of https://gitlab.com/shouptech/flux.git synced 2026-02-03 17:09:45 +00:00
flux/workloads/nip-io.yml
2020-02-02 09:18:22 -07:00

45 lines
779 B
YAML

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
ports:
- containerPort: 53
name: dns_tcp
protocol: TCP
- containerPort: 53
name: dns_udp
protocol: UDP
---
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