Skip to content

Commit

Permalink
Added DNS Examples
Browse files Browse the repository at this point in the history
  • Loading branch information
qtsathish committed Jul 7, 2021
1 parent 285390c commit 1f99c6f
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
20 changes: 20 additions & 0 deletions DNS/nginx-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: deployment-example
spec:
replicas: 2
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.14
ports:
- containerPort: 80
name: http
13 changes: 13 additions & 0 deletions DNS/nginx-svc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
kind: Service
apiVersion: v1
metadata:
name: service-example
spec:
ports:
# Accept traffic sent to port 80
- name: http
port: 80
targetPort: 80
selector:
app: nginx
type: ClusterIP
11 changes: 11 additions & 0 deletions DNS/testpod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
apiVersion: v1
kind: Pod
metadata:
name: test
spec:
containers:
- image: alpine
name: alpine
args: ["sleep", "1d"]

0 comments on commit 1f99c6f

Please sign in to comment.