@ -34,7 +34,8 @@ COPY --from=build /app/publish .
ENV ASPNETCORE_ENVIRONMENT=Production
# Expose the port the application will run on
EXPOSE 7033
EXPOSE 80
EXPOSE 443
# Set the entry point for the container
ENTRYPOINT ["dotnet", "Expedience.Api.dll"]
@ -53,6 +53,8 @@ if (app.Environment.IsDevelopment())
app.UseSwaggerUI();
}
app.UseHttpsRedirection();
app.UseAuthorization();
app.MapControllers();
@ -6,6 +6,7 @@ metadata:
annotations:
kubernetes.io/ingress.class: "nginx"
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/proxy-redirect-from-ssl: "true"
spec:
tls:
- hosts:
@ -20,4 +21,4 @@ spec:
service:
name: expedience-api-service
port:
number: 7033
number: 80
@ -8,6 +8,6 @@ spec:
app: expedience-api
ports:
- protocol: TCP
port: 7033
port: 80
targetPort: 80
type: ClusterIP