Skip to content
This repository was archived by the owner on Nov 27, 2025. It is now read-only.

Commit 9e92666

Browse files
committed
update deploy.yaml
Signed-off-by: Stephanie <yangcao@redhat.com>
1 parent d74c2ef commit 9e92666

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

devfile.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ components:
5353
deployment/container-port: 8081
5454
kubernetes:
5555
uri: kubernetes/deployment.yaml
56+
endpoints:
57+
- name: http-8081
58+
targetPort: 8081
59+
path: /
5660
- name: kubernetes-service
5761
attributes:
5862
deployment/replicas: 1

kubernetes/deployment.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,14 @@ spec:
1414
spec:
1515
containers:
1616
- name: main
17-
image: "{{CONTAINER_IMAGE}}"
17+
image: "dotnet-image:latest"
1818
imagePullPolicy: Always
19-
resources: {}
19+
ports:
20+
- name: http
21+
containerPort: 8081
22+
protocol: TCP
23+
resources:
24+
limits:
25+
memory: "1024Mi"
26+
cpu: "500m"
2027

0 commit comments

Comments
 (0)