argocd & metallb installation, change whoami service

This commit is contained in:
Mans Ziesel 2024-09-22 11:14:23 +02:00
parent f7b1f2f3ac
commit 5e218fd023
12 changed files with 59 additions and 33 deletions

View File

@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: argocd
labels:
name: argocd

View File

@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: argocd
resources:
- base/argo-cd-namespace.yaml
- https://raw.githubusercontent.com/argoproj/argo-cd/master/manifests/ha/install.yaml

View File

@ -1,20 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: ip_mziesel_nl
spec:
replicas: 3
revisionHistoryLimit: 3
selector:
matchLabels:
app: ip_mziesel_nl
template:
metadata:
labels:
app: ip_mziesel_nl
spec:
containers:
- image: git.mziesel.nl/mans/ip-svc:2024-06-03
name: ip_mziesel_nl
ports:
- containerPort: 8080

View File

@ -1,12 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: ip_mziesel_nl
spec:
type: NodePort
ports:
- port: 8080
targetPort: 8080
nodePort: 31339
selector:
app: ip_mziesel_nl

View File

@ -0,0 +1,8 @@
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
name: first-pool
namespace: metallb-system
spec:
addresses:
- 192.168.10.160-192.168.10.199

View File

@ -0,0 +1,8 @@
apiVersion: metallb.io/v1beta1
kind: L2Advertisement
metadata:
name: l2-advertisement
namespace: metallb-system
spec:
ipAddressPools:
- first-pool

View File

View File

@ -0,0 +1,7 @@
namespace: metallb-system
resources:
- base/metallb-namespace.yaml
- github.com/metallb/metallb/config/native?ref=v0.14.8
- base/metallb-ip-address-pool.yaml
- base/metallb-l2-advertisement.yaml

0
traefik/traefik.yaml Normal file
View File

View File

@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: whoami
namespace: whoami
spec:
replicas: 3
revisionHistoryLimit: 3

View File

@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: whoami
labels:
pod-security.kubernetes.io/enforce: privileged

View File

@ -1,7 +1,8 @@
apiVersion: v1
kind: Service
metadata:
name: whoami
name: whoami-nodeport
namespace: whoami
spec:
type: NodePort
ports:
@ -10,3 +11,16 @@ spec:
nodePort: 31338
selector:
app: whoami
---
apiVersion: v1
kind: Service
metadata:
name: whoami-loadbalancer
namespace: whoami
spec:
type: LoadBalancer
ports:
- port: 80
targetPort: 80
selector:
app: whoami