1
0
Fork 0
mirror of https://gitlab.com/shouptech/flux.git synced 2026-02-03 17:09:45 +00:00

Add nip.io workload

This commit is contained in:
Emma 2020-02-02 09:18:22 -07:00
parent 0948927bc1
commit b01691077a
No known key found for this signature in database
GPG key ID: 68434BFE85360755

45
workloads/nip-io.yml Normal file
View file

@ -0,0 +1,45 @@
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