Skip to content

Commit

Permalink
Create EKS-Deployment.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Aahil13 authored May 7, 2024
1 parent 534e3cd commit 59fd92f
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions EKS-Deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-httpd-deployment
spec:
replicas: 2
selector:
matchLabels:
app: my-httpd
template:
metadata:
labels:
app: my-httpd
spec:
containers:
- name: my-httpd-container
image: httpd:alpine
ports:
- containerPort: 80
volumeMounts:
- name: html
mountPath: /usr/local/apache2/htdocs
volumes:
- name: html
emptyDir: {}

---
apiVersion: v1
kind: Service
metadata:
name: my-httpd-service
spec:
selector:
app: my-httpd
ports:
- protocol: TCP
port: 80
targetPort: 80
type: LoadBalancer

0 comments on commit 59fd92f

Please sign in to comment.