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

add Kubernetes Deployment example #218

Merged
merged 1 commit into from
Feb 14, 2024
Merged
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
45 changes: 45 additions & 0 deletions docs/kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,48 @@ and then check the output using
```
kubectl logs dnspyre
```

You might want to test the performance from multiple instances/pods, this can be easily achieved by deploying *dnspyre* in multiple pods,
for example using Kubernetes Deployment :

```
apiVersion: apps/v1
kind: Deployment
metadata:
name: dnspyre-deployment
spec:
replicas: 2
selector:
matchLabels:
app: dnspyre
template:
metadata:
labels:
app: dnspyre
spec:
containers:
- name: dnspyre
image: ghcr.io/tantalor93/dnspyre
command:
- "/dnspyre"
args:
- "https://raw.githubusercontent.com/Tantalor93/dnspyre/master/data/top-1m"
- "--server"
- "kube-dns.kube-system.svc.cluster.local"
- "--duration"
- "1m"
- "-c"
- "100"
resources:
limits:
cpu: "1"
memory: "900Mi"
requests:
cpu: "0.1"
memory: "128Mi"
```
and then applying this Deployment to your cluster:

```
kubectl apply -f dnspyre-deployment.yml
```
Loading