feat: Add base configuration

This commit is contained in:
Peter 2025-10-31 22:37:39 +01:00
parent bb3daa1962
commit 67621c6409
Signed by: Peter
SSH key fingerprint: SHA256:B5tYaxBExaDm74r1px9iVeZ6F/ZDiyiy9SbBqfZYrvg
12 changed files with 28363 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.envrc

View file

@ -0,0 +1,17 @@
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: argocd-route
namespace: argocd
spec:
parentRefs:
- name: internal
namespace: kube-system
sectionName: http
hostnames:
- "argocd.k8s-test.wheatley.in"
rules:
- backendRefs:
- name: argocd-server
port: 80

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,21 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- httproute.yaml
- install.yaml
- repository.yaml
- namespace.yaml
namespace: argocd
configMapGenerator:
- name: argocd-cmd-params-cm
behavior: replace
literals:
- server.insecure=true
- reposerver.enable.git.submodule=false
- name: argocd-cm
behavior: merge
literals:
- kustomize.buildOptions=--enable-helm

View file

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

View file

@ -0,0 +1,14 @@
---
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: argocd-private-repo
namespace: argocd
annotations:
managed-by: argocd.argoproj.io
labels:
argocd.argoproj.io/secret-type: repository
stringData:
type: git
url: https://code.peterg.nl/wheatley/kubernetes.git

View file

@ -0,0 +1,17 @@
---
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: internal
spec:
gatewayClassName: cilium
addresses:
- type: IPAddress
value: 10.13.38.10
listeners:
- allowedRoutes:
namespaces:
from: All
name: http
port: 80
protocol: HTTP

View file

@ -0,0 +1,17 @@
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: hubble-route
namespace: kube-system
spec:
parentRefs:
- name: internal
namespace: kube-system
sectionName: http
hostnames:
- "hubble.k8s-test.wheatley.in"
rules:
- backendRefs:
- name: hubble-ui
port: 80

View file

@ -0,0 +1,15 @@
---
apiVersion: "cilium.io/v2alpha1"
kind: CiliumLoadBalancerIPPool
metadata:
name: internal-pool
spec:
blocks:
- cidr: "10.13.38.10/32"
---
apiVersion: "cilium.io/v2alpha1"
kind: CiliumL2AnnouncementPolicy
metadata:
name: l2adv
spec:
loadBalancerIPs: true

View file

@ -0,0 +1,9 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: kube-system
resources:
- ip-pool.yaml
- gateways.yaml
- httproute.yaml

View file

@ -0,0 +1,7 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- argocd
- cilium
- metrics-server

View file

@ -0,0 +1,10 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
helmCharts:
- name: metrics-server
repo: https://kubernetes-sigs.github.io/metrics-server/
namespace: kube-system
releaseName: metrics-server
version: 3.13.0