Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use deployment instead of pod #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ Get logs with:

Clean up with:

kubectl delete pod dns-tester
kubectl delete -f kubernetes/deployment.yml
35 changes: 21 additions & 14 deletions kubernetes/deployment.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
apiVersion: v1
kind: Pod
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: dns-tester
labels:
app: dns-tester
spec:
containers:
- name: dns-tester
image: thomaschaaf/dns-tester:latest
env:
- name: DNS_NAME
value: 'kubernetes.default.svc.cluster.local'
- name: DNS_NAME_TIMEOUT
value: '300'
- name: WAIT_BETWEEN_REQUESTS
value: '50'
replicas: 1
selector:
matchLabels:
run: dns-tester
template:
metadata:
labels:
run: dns-tester
spec:
containers:
- name: dns-tester
image: thomaschaaf/dns-tester:latest
env:
- name: DNS_NAME
value: 'kubernetes.default.svc.cluster.local'
- name: DNS_NAME_TIMEOUT
value: '300'
- name: WAIT_BETWEEN_REQUESTS
value: '1'