1
0
Fork 0
mirror of https://gitlab.com/shouptech/flux.git synced 2026-02-04 00:19:45 +00:00
flux/workloads/nip-io.yml

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