Add deploy_sample

This commit is contained in:
2024-10-23 11:44:05 +02:00
parent 29744a8549
commit 71482b50b5
11 changed files with 2144 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-app-deployment
labels:
app: my-app
spec:
replicas: 3
selector:
matchLabels:
app: my-app
template:
metadata:
labels:
app: my-app
spec:
containers:
- name: my-app-container
image: rmontanana/my-app:1.0
ports:
- containerPort: 8080

View File

@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: my-app-service
labels:
app: my-app
spec:
type: LoadBalancer
ports:
- protocol: TCP
port: 80
targetPort: 8080
selector:
app: my-app
type: LoadBalancer