-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Oguzhan Yilmaz
committed
Nov 1, 2023
1 parent
7f3f1d8
commit 667e875
Showing
3 changed files
with
54 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +0,0 @@ | ||
```bash | ||
|
||
cat <<EOF | kubectl apply -f - | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: dnsutils | ||
namespace: default | ||
spec: | ||
containers: | ||
- name: dnsutils | ||
image: registry.k8s.io/e2e-test-images/jessie-dnsutils:1.3 | ||
command: | ||
- sleep | ||
- "infinity" | ||
imagePullPolicy: IfNotPresent | ||
restartPolicy: Always | ||
# nodeName: ip-105-64-46-249.eu-central-1.compute.internal | ||
EOF | ||
```bash | ||
``` | ||
k exec dnsutils -- nslookup kube-dns.kube-system | ||
k exec dnsutils -- nslookup kubernetes.default | ||
k exec dnsutils -- nslookup google.com | ||
k exec dnsutils -- dig kubernetes.default | grep SERVER | ||
k exec dnsutils -- dig kubernetes.default @kube-dns.kube-system | grep SERVER | ||
|
||
|
||
k exec dnsutils -- nslookup karpenter.karpenter.svc | ||
``` | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters