kubernetes: ajouter deployment.yaml et service.yaml #20

Merged
vlbeaudoin merged 1 commit from vlbeaudoin/deployment/kubernetes into main 2025-02-04 17:34:40 -05:00 AGit
2 changed files with 34 additions and 0 deletions
Showing only changes of commit 61046f4690 - Show all commits

View file

@ -0,0 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: babillard-deployment
labels:
app: babillard
spec:
replicas: 1
selector:
matchLabels:
app: babillard
template:
metadata:
labels:
app: babillard
spec:
containers:
- name: babillard
image: git.agecem.com/agecem/babillard:latest
ports:
- containerPort: 8080

13
kubernetes/service.yaml Normal file
View file

@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: babillard-service
spec:
type: NodePort
selector:
app: babillard
ports:
- protocol: TCP
port: 8080
targetPort: 8080
nodePort: 30001