arreglado el cluster
This commit is contained in:
38
metallb/test-lb.yaml
Normal file
38
metallb/test-lb.yaml
Normal 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
|
||||
Reference in New Issue
Block a user