cleanup and adding in k3s folder

This commit is contained in:
talksik
2023-11-20 12:37:35 -08:00
parent e5d307cdf0
commit db750f1832
7 changed files with 8 additions and 8 deletions
+4
View File
@@ -0,0 +1,4 @@
#!/bin/bash
# servicelb disabled so that metallb can work
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--disable=servicelb --cluster-init" sh -
+16
View File
@@ -0,0 +1,16 @@
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
name: first-pool
# namespace: metallb-system
spec:
addresses:
- 192.168.50.101-192.168.50.110
---
apiVersion: metallb.io/v1beta1
kind: L2Advertisement
metadata:
name: example
# namespace: metallb-system
+20
View File
@@ -0,0 +1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: sample-app-deployment
spec:
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: public.ecr.aws/nginx/nginx:1.23
ports:
- name: tcp
containerPort: 80
+15
View File
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: sample-app-service
annotations:
metallb.universe.tf/address-pool: first-pool
spec:
ports:
- port: 80
targetPort: 80
protocol: TCP
type: LoadBalancer
selector:
app: nginx