first commit
This commit is contained in:
2288
0-metallb-native.yaml
Normal file
2288
0-metallb-native.yaml
Normal file
File diff suppressed because it is too large
Load Diff
8
1-address-pool.yaml
Normal file
8
1-address-pool.yaml
Normal 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
5
2-advertise.yaml
Normal 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
38
3-webapp-test.yaml
Normal 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
|
||||
Reference in New Issue
Block a user