0
0
mirror of https://github.com/alex289/CleanArchitecture.git synced 2025-06-30 02:31:08 +00:00
CleanArchitecture/k8s-deployments/clean-architecture.yml
2023-09-03 09:49:57 +02:00

34 lines
666 B
YAML

apiVersion: v1
kind: Service
metadata:
name: clean-architecture
spec:
selector:
app: clean-architecture-app
ports:
- protocol: TCP
port: 80
targetPort: 80
type: LoadBalancer
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: clean-architecture-deployment
spec:
replicas: 1
selector:
matchLabels:
app: clean-architecture-app
template:
metadata:
labels:
app: clean-architecture-app
spec:
containers:
- name: clean-architecture-app
# Replace this with the path to your built image
image: alexdev28/clean-architecture:latest
ports:
- containerPort: 80