argocd & metallb installation, change whoami service
This commit is contained in:
parent
f7b1f2f3ac
commit
5e218fd023
6
argocd/base/argo-cd-namespace.yaml
Normal file
6
argocd/base/argo-cd-namespace.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: argocd
|
||||
labels:
|
||||
name: argocd
|
8
argocd/kustomization.yaml
Normal file
8
argocd/kustomization.yaml
Normal 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
|
@ -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
|
@ -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
|
8
metallb/base/metallb-ip-address-pool.yaml
Normal file
8
metallb/base/metallb-ip-address-pool.yaml
Normal 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
|
8
metallb/base/metallb-l2-advertisement.yaml
Normal file
8
metallb/base/metallb-l2-advertisement.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
apiVersion: metallb.io/v1beta1
|
||||
kind: L2Advertisement
|
||||
metadata:
|
||||
name: l2-advertisement
|
||||
namespace: metallb-system
|
||||
spec:
|
||||
ipAddressPools:
|
||||
- first-pool
|
0
metallb/base/metallb-namespace.yaml
Normal file
0
metallb/base/metallb-namespace.yaml
Normal file
7
metallb/kustomization.yaml
Normal file
7
metallb/kustomization.yaml
Normal 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
0
traefik/traefik.yaml
Normal file
@ -2,6 +2,7 @@ apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: whoami
|
||||
namespace: whoami
|
||||
spec:
|
||||
replicas: 3
|
||||
revisionHistoryLimit: 3
|
||||
|
6
whoami/whoami-namespace.yaml
Normal file
6
whoami/whoami-namespace.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: whoami
|
||||
labels:
|
||||
pod-security.kubernetes.io/enforce: privileged
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user