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:
parent
a07fae2d1e
commit
89b3398036
@ -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
|
Loading…
Reference in New Issue
Block a user