metallb and argocd rdy
This commit is contained in:
@ -1,11 +1,7 @@
|
||||
#! /bin/bash
|
||||
|
||||
# Install MetalLB and configure ip ranges (local homelab)
|
||||
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.14.3/config/manifests/metallb-native.yaml
|
||||
-f ./01-metallb-pool.yml
|
||||
-f ./01-metallb-advert.yml
|
||||
kubectl apply -k ./01-metallb
|
||||
|
||||
# Install argoCD for deployment and secret management
|
||||
kubectl create namespace argocd
|
||||
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
|
||||
|
||||
kustomize apply -f ./02-argocd
|
||||
|
@ -2,4 +2,3 @@ apiVersion: metallb.io/v1beta1
|
||||
kind: L2Advertisement
|
||||
metadata:
|
||||
name: sirnix-advert
|
||||
namespace: metallb-system
|
@ -2,7 +2,6 @@ apiVersion: metallb.io/v1beta1
|
||||
kind: IPAddressPool
|
||||
metadata:
|
||||
name: my-pool
|
||||
namespace: metallb-system
|
||||
spec:
|
||||
addresses:
|
||||
- 192.168.178.101-192.168.178.255
|
||||
- 192.168.178.101-192.168.178.105
|
8
infrastructure/01-metallb/kustomization.yaml
Normal file
8
infrastructure/01-metallb/kustomization.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
namespace: metallb-system
|
||||
|
||||
resources:
|
||||
- base/01-metallb-advert.yaml
|
||||
- base/01-metallb-pool.yaml
|
6
infrastructure/02-argocd/base/argo-cd-k-with-helm.yaml
Normal file
6
infrastructure/02-argocd/base/argo-cd-k-with-helm.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: argocd-cm-helm
|
||||
data:
|
||||
kustomize.buildOptions: --enable-helm
|
4
infrastructure/02-argocd/base/argo-cd-namespace.yaml
Normal file
4
infrastructure/02-argocd/base/argo-cd-namespace.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: argocd
|
16
infrastructure/02-argocd/base/argo-cd-ui-ingress.yaml
Normal file
16
infrastructure/02-argocd/base/argo-cd-ui-ingress.yaml
Normal file
@ -0,0 +1,16 @@
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: argocd-ui
|
||||
spec:
|
||||
entryPoints:
|
||||
- web
|
||||
- websecure
|
||||
routes:
|
||||
- match: Host(`argocd.steffenillium.de`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: argocd-server
|
||||
port: 80
|
||||
tls:
|
||||
certResolver: myresolver
|
14
infrastructure/02-argocd/kustomization.yaml
Normal file
14
infrastructure/02-argocd/kustomization.yaml
Normal file
@ -0,0 +1,14 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
namespace: argocd
|
||||
|
||||
# - base/argo-cd-ui-ingress.yaml
|
||||
resources:
|
||||
- base/argo-cd-k-with-helm.yaml
|
||||
- https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
|
||||
- base/argo-cd-namespace.yaml
|
||||
|
||||
patches:
|
||||
- path: patches/argocd-cmd-params-cm-patch.yaml
|
||||
- path: patches/argocd-server-service-type.yaml
|
@ -0,0 +1,6 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: argocd-cmd-params-cm
|
||||
data:
|
||||
server.insecure: "true"
|
@ -0,0 +1,6 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: argocd-server
|
||||
spec:
|
||||
type: LoadBalancer
|
@ -1,22 +0,0 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: argocd-server
|
||||
namespace: argocd
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: traefik
|
||||
traefik.ingress.kubernetes.io/router.entrypoints: "websecure,web"
|
||||
|
||||
spec:
|
||||
ingressClassName: traefik
|
||||
rules:
|
||||
- host: argocd.steffenillium.de
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: argocd-server
|
||||
port:
|
||||
number: 80
|
Reference in New Issue
Block a user