Skip to content

Commit

Permalink
Update ecran deployment and add service definition (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregkonush authored Apr 22, 2024
1 parent 3481ba9 commit 9937ed1
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 7 deletions.
21 changes: 14 additions & 7 deletions apps/ecran/kustomize/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,26 @@ metadata:
name: ecran-deployment
namespace: ecran
labels:
app: ecran
app.kubernetes.io/name: ecran
spec:
replicas: 1
selector:
matchLabels:
app: ecran
app.kubernetes.io/name: ecran
template:
metadata:
labels:
app: ecran
app.kubernetes.io/name: ecran
spec:
containers:
- name: ecran
image: gitea.proompteng.ai/gitbot/lab/ecran:latest
ports:
- containerPort: 3000
- name: ecran
image: gitea.proompteng.ai/gitbot/lab/ecran:latest
ports:
- containerPort: 3000
resources:
limits:
cpu: "1"
memory: "1Gi"
requests:
cpu: "100m"
memory: "100Mi"
1 change: 1 addition & 0 deletions apps/ecran/kustomize/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ namespace: ecran
resources:
- namespace.yaml
- deployment.yaml
- service.yaml
12 changes: 12 additions & 0 deletions apps/ecran/kustomize/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: ecran
namespace: ecran
spec:
selector:
app.kubernetes.io/name: ecran
ports:
- name: http
port: 80
targetPort: 3000

0 comments on commit 9937ed1

Please sign in to comment.