feat: Add base configuration
This commit is contained in:
parent
bb3daa1962
commit
67621c6409
12 changed files with 28363 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
.envrc
|
||||||
17
k8s-wheatley/base/argocd/httproute.yaml
Normal file
17
k8s-wheatley/base/argocd/httproute.yaml
Normal 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
|
||||||
28229
k8s-wheatley/base/argocd/install.yaml
Normal file
28229
k8s-wheatley/base/argocd/install.yaml
Normal file
File diff suppressed because it is too large
Load diff
21
k8s-wheatley/base/argocd/kustomization.yaml
Normal file
21
k8s-wheatley/base/argocd/kustomization.yaml
Normal 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
|
||||||
6
k8s-wheatley/base/argocd/namespace.yaml
Normal file
6
k8s-wheatley/base/argocd/namespace.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: argocd
|
||||||
14
k8s-wheatley/base/argocd/repository.yaml
Normal file
14
k8s-wheatley/base/argocd/repository.yaml
Normal 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
|
||||||
17
k8s-wheatley/base/cilium/gateways.yaml
Normal file
17
k8s-wheatley/base/cilium/gateways.yaml
Normal 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
|
||||||
17
k8s-wheatley/base/cilium/httproute.yaml
Normal file
17
k8s-wheatley/base/cilium/httproute.yaml
Normal 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
|
||||||
15
k8s-wheatley/base/cilium/ip-pool.yaml
Normal file
15
k8s-wheatley/base/cilium/ip-pool.yaml
Normal 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
|
||||||
9
k8s-wheatley/base/cilium/kustomization.yaml
Normal file
9
k8s-wheatley/base/cilium/kustomization.yaml
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
namespace: kube-system
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- ip-pool.yaml
|
||||||
|
- gateways.yaml
|
||||||
|
- httproute.yaml
|
||||||
7
k8s-wheatley/base/kustomization.yaml
Normal file
7
k8s-wheatley/base/kustomization.yaml
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- argocd
|
||||||
|
- cilium
|
||||||
|
- metrics-server
|
||||||
10
k8s-wheatley/base/metrics-server/kustomization.yaml
Normal file
10
k8s-wheatley/base/metrics-server/kustomization.yaml
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue