Skip to content

Commit

Permalink
added ClusterIP
Browse files Browse the repository at this point in the history
  • Loading branch information
akannan1087 authored Oct 31, 2024
1 parent b69a8e3 commit cb5cd49
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions eks-deploy-from-ecr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: my-python-app-deployment
namespace: python-app-ns # Namespace where the deployment will be created
spec:
replicas: 5
replicas: 3
selector:
matchLabels:
app: python-app
Expand All @@ -14,7 +15,7 @@ spec:
spec:
containers:
- name: my-python-app
image: 211223789150.dkr.ecr.us-east-1.amazonaws.com/my-python-repo
image: 211223789150.dkr.ecr.us-east-1.amazonaws.com/devopscoach/my-python-repo:${BUILD_NUMBER}
imagePullPolicy: Always
ports:
- containerPort: 5000
Expand All @@ -24,11 +25,12 @@ apiVersion: v1
kind: Service
metadata:
name: python-app-svc
namespace: python-app-ns # Namespace where the deployment will be created
spec:
selector:
app: python-app
ports:
- protocol: TCP
port: 80
targetPort: 5000
type: LoadBalancer
type: ClusterIP

0 comments on commit cb5cd49

Please sign in to comment.