Skip to content

Commit

Permalink
chore: add deploy/k8s/deployment.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
clementnuss committed Nov 11, 2022
1 parent 1387ee3 commit 199b3fb
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions deploy/k8s/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: hostlookuper
spec:
selector:
matchLabels:
app: hostlookuper
template:
metadata:
labels:
app: hostlookuper
spec:
containers:
- name: hostlookuper
image: postfinance/hostlookuper:latest
imagePullPolicy: Always
resources:
limits:
memory: "128Mi"
cpu: "100m"
env:
- name: HOSTLOOKUPER_INTERVAL
value: 5s
- name: HOSTLOOKUPER_DNS_SERVERS
value: "udp://1.1.1.1:53"
- name: HOSTLOOKUPER_HOSTS
value: "google.ch,postfinance.ch,ch.ch"
ports:
- containerPort: 9090
---
apiVersion: v1
kind: Service
metadata:
name: hostlookuper
annotations:
prometheus.io/port: "9090"
prometheus.io/scrape: "true"
spec:
selector:
app: hostlookuper
ports:
- port: 9090
targetPort: 9090

0 comments on commit 199b3fb

Please sign in to comment.