feat: Provision k8s-wheatley cluster through ArgoCD
This commit is contained in:
parent
dc268db7b4
commit
ea771272e9
10 changed files with 56 additions and 36 deletions
30
k8s-peterg/argocd/clusters.yaml
Normal file
30
k8s-peterg/argocd/clusters.yaml
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
---
|
||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: k8s-wheatley-cluster
|
||||||
|
spec:
|
||||||
|
secretStoreRef:
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
name: 1password-wheatley
|
||||||
|
target:
|
||||||
|
name: k8s-wheatley-cluster
|
||||||
|
creationPolicy: Owner
|
||||||
|
template:
|
||||||
|
engineVersion: v2
|
||||||
|
type: Opaque
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
argocd.argoproj.io/secret-type: cluster
|
||||||
|
data:
|
||||||
|
name: k8s-wheatley
|
||||||
|
server: "{{ .endpoint }}"
|
||||||
|
project: argocd
|
||||||
|
config: "{{ .config }}"
|
||||||
|
data:
|
||||||
|
- secretKey: endpoint
|
||||||
|
remoteRef:
|
||||||
|
key: k8s-wheatley_clusterdefinition/endpoint
|
||||||
|
- secretKey: config
|
||||||
|
remoteRef:
|
||||||
|
key: k8s-wheatley_clusterdefinition/config
|
||||||
|
|
@ -6,6 +6,7 @@ resources:
|
||||||
- install.yaml
|
- install.yaml
|
||||||
- repository.yaml
|
- repository.yaml
|
||||||
- namespace.yaml
|
- namespace.yaml
|
||||||
|
- clusters.yaml
|
||||||
|
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
||||||
---
|
|
||||||
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
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
resources:
|
|
||||||
- argocd
|
|
||||||
- cilium
|
|
||||||
- metrics-server
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
---
|
|
||||||
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
|
|
||||||
17
k8s-wheatley/cilium/gateways.yaml
Normal file
17
k8s-wheatley/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
|
||||||
|
|
@ -10,7 +10,7 @@ spec:
|
||||||
namespace: kube-system
|
namespace: kube-system
|
||||||
sectionName: http
|
sectionName: http
|
||||||
hostnames:
|
hostnames:
|
||||||
- "hubble.k8s-test.wheatley.in"
|
- "hubble.k8s.wheatley.in"
|
||||||
rules:
|
rules:
|
||||||
- backendRefs:
|
- backendRefs:
|
||||||
- name: hubble-ui
|
- name: hubble-ui
|
||||||
|
|
@ -4,6 +4,7 @@ kind: Kustomization
|
||||||
namespace: kube-system
|
namespace: kube-system
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
|
- namespace.yaml
|
||||||
- ip-pool.yaml
|
- ip-pool.yaml
|
||||||
- gateways.yaml
|
- gateways.yaml
|
||||||
- httproute.yaml
|
- httproute.yaml
|
||||||
5
k8s-wheatley/cilium/namespace.yaml
Normal file
5
k8s-wheatley/cilium/namespace.yaml
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: kube-system
|
||||||
Loading…
Add table
Add a link
Reference in a new issue