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

Commit cafef6f

Browse files
committed
revise use port 8080
Signed-off-by: Stephanie <yangcao@redhat.com>
1 parent 057cd9a commit cafef6f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

devfile.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ metadata:
99
tags:
1010
- dotnet
1111
attributes:
12-
alpha.dockerimage-port: 8081
13-
parent:
14-
id: dotnet60
15-
registryUrl: "https://registry.devfile.io"
12+
alpha.dockerimage-port: 8080
13+
# parent:
14+
# id: dotnet60
15+
# registryUrl: "https://registry.devfile.io"
1616
components:
1717
- name: outerloop-build
1818
image:

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ RUN dotnet publish -c Release
55

66

77
FROM registry.access.redhat.com/ubi8/dotnet-60:6.0
8-
EXPOSE 8081
8+
EXPOSE 8080
99
COPY --from=builder /opt/app-root/src/bin /opt/app-root/src/bin
1010
WORKDIR /opt/app-root/src/bin/Release/net6.0/publish
1111
CMD ["dotnet", "app.dll"]

kubernetes/service.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ metadata:
66
name: devfile-dotnet-deploy
77
spec:
88
ports:
9-
- name: http-8081
10-
port: 8081
9+
- name: http-8080
10+
port: 8080
1111
protocol: TCP
12-
targetPort: 8081
12+
targetPort: 8080
1313
selector:
1414
app: devfile-dotnet-deploy
1515
type: LoadBalancer

0 commit comments

Comments
 (0)