Skip to content

Commit

Permalink
Kubernetes components files added: ready to deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
akiltipu committed Mar 11, 2024
1 parent 7e78bfd commit e0085c1
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
25 changes: 25 additions & 0 deletions kubernetes/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: $APP_NAME
name: $APP_NAME
namespace: secureapp
spec:
replicas: 2
selector:
matchLabels:
app: $APP_NAME
template:
metadata:
labels:
app: $APP_NAME
spec:
containers:
- image: $IMAGE_REPO:$IMAGE_NAME
imagePullPolicy: Always
name: $APP_NAME
ports:
- containerPort: 8070
imagePullSecrets:
- name: ecr-secret-registry-key
13 changes: 13 additions & 0 deletions kubernetes/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: $APP_NAME
namespace: secureapp
spec:
selector:
app: $APP_NAME
ports:
- protocol: TCP
port: 80
targetPort: 8070
type: LoadBalancer

0 comments on commit e0085c1

Please sign in to comment.