first commit

This commit is contained in:
2025-12-18 15:01:53 +11:00
commit 8be7b1a299
5 changed files with 2339 additions and 0 deletions

2288
0-metallb-native.yaml Normal file

File diff suppressed because it is too large Load Diff

8
1-address-pool.yaml Normal file
View File

@@ -0,0 +1,8 @@
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
name: lab
namespace: metallb-system
spec:
addresses:
- 192.168.0.240-192.168.0.245

5
2-advertise.yaml Normal file
View File

@@ -0,0 +1,5 @@
apiVersion: metallb.io/v1beta1
kind: L2Advertisement
metadata:
name: l2-advert
namespace: metallb-system

38
3-webapp-test.yaml Normal file
View File

@@ -0,0 +1,38 @@
apiVersion: v1
kind: Namespace
metadata:
name: web
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: web-server
namespace: web
spec:
selector:
matchLabels:
app: web
template:
metadata:
labels:
app: web
spec:
containers:
- name: httpd
image: docker.io/httpd:alpine
ports:
- containerPort: 1180
---
apiVersion: v1
kind: Service
metadata:
name: web-server-service
namespace: web
spec:
selector:
app: web
ports:
- protocol: TCP
port: 80
targetPort: 1180
type: LoadBalancer

0
README.md Normal file
View File