arreglado el cluster

This commit is contained in:
2025-08-09 01:12:18 +02:00
parent 8c9a501fdf
commit 8f6ddb699a
5 changed files with 41 additions and 14 deletions

38
metallb/test-lb.yaml Normal file
View File

@@ -0,0 +1,38 @@
apiVersion: v1
kind: Namespace
metadata:
name: lb-test
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: test-lb
namespace: lb-test
spec:
replicas: 1
selector:
matchLabels:
app: test-lb
template:
metadata:
labels:
app: test-lb
spec:
containers:
- name: test-lb
image: nginx:alpine
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: test-lb
namespace: lb-test
spec:
type: LoadBalancer
selector:
app: test-lb
ports:
- port: 80
targetPort: 80