0
0
mirror of https://github.com/alex289/CleanArchitecture.git synced 2025-07-01 02:52:56 +00:00

Use my image for the k8s file

This commit is contained in:
Alexander Konietzko 2023-07-15 14:23:29 +02:00
parent a07fae2d1e
commit 89b3398036
No known key found for this signature in database
GPG Key ID: BA6905F37AEC2B5B

View File

@ -14,17 +14,9 @@ spec:
spec: spec:
containers: containers:
- name: clean-architecture-app - name: clean-architecture-app
image: mcr.microsoft.com/dotnet/sdk:7.0 image: alexdev28/clean-architecture
workingDir: /app
command: ["dotnet", "CleanArchitecture.Api.dll"]
ports: ports:
- containerPort: 80 - containerPort: 80
volumeMounts:
- name: app-volume
mountPath: /app
volumes:
- name: app-volume
emptyDir: {}
--- ---
apiVersion: v1 apiVersion: v1
@ -65,3 +57,17 @@ spec:
value: "Password123!#" value: "Password123!#"
ports: ports:
- containerPort: 1433 - containerPort: 1433
---
apiVersion: v1
kind: Service
metadata:
name: clean-architecture-db-service
spec:
selector:
app: sql-server
ports:
- protocol: TCP
port: 1433
targetPort: 1433
type: ClusterIP