Set hub to port 80

This commit is contained in:
2024-01-27 16:43:48 -05:00
parent 180ca039bf
commit 67f18a0c69
2 changed files with 4 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine AS base FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine AS base
WORKDIR /app WORKDIR /app
EXPOSE 8080 EXPOSE 80
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
WORKDIR /src WORKDIR /src
@@ -13,4 +13,5 @@ RUN dotnet publish "Service.csproj" -c Release -o /app
FROM base AS final FROM base AS final
WORKDIR /app WORKDIR /app
COPY --from=build /app . COPY --from=build /app .
ENV ASPNETCORE_HTTP_PORTS=80
ENTRYPOINT ["dotnet", "ChrisKaczor.HomeMonitor.Hub.Service.dll"] ENTRYPOINT ["dotnet", "ChrisKaczor.HomeMonitor.Hub.Service.dll"]

View File

@@ -38,7 +38,7 @@ metadata:
spec: spec:
ports: ports:
- name: client - name: client
port: 8080 port: 80
selector: selector:
app: hub-service app: hub-service
type: ClusterIP type: ClusterIP
@@ -62,7 +62,7 @@ spec:
- kind: Service - kind: Service
name: hub-service name: hub-service
namespace: home-monitor namespace: home-monitor
port: 8080 port: 80
--- ---
apiVersion: traefik.containo.us/v1alpha1 apiVersion: traefik.containo.us/v1alpha1
kind: Middleware kind: Middleware