Skip to content

Commit

Permalink
Kubernetes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanveer143s authored Nov 30, 2023
1 parent 447871e commit 59b6131
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions k8s/cluster.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: nginx
spec:
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.14.2
ports:
- containerPort: 80

apiVersion: v1
kind: Pod
metadata:
name: pod1
spec:
containers:
- name: main
image: alpine
command: ["/bin/sleep", "999999"]

0 comments on commit 59b6131

Please sign in to comment.