add k3s cluster
This commit is contained in:
parent
82d8eb59dc
commit
e0743f2a68
17
clusters/k3s-cluster/apps.yaml
Normal file
17
clusters/k3s-cluster/apps.yaml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: apps
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
interval: 10m0s
|
||||||
|
dependsOn:
|
||||||
|
- name: infra-configs
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
name: flux-system
|
||||||
|
path: ./apps
|
||||||
|
prune: true
|
||||||
|
wait: true
|
||||||
|
timeout: 5m0s
|
7
clusters/k3s-cluster/argo-rollouts/kustomization.yaml
Normal file
7
clusters/k3s-cluster/argo-rollouts/kustomization.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
namespace: argo-rollouts
|
||||||
|
resources:
|
||||||
|
- namespace.yaml
|
||||||
|
- https://github.com/argoproj/argo-rollouts/releases/download/v1.7.2/install.yaml
|
5
clusters/k3s-cluster/argo-rollouts/namespace.yaml
Normal file
5
clusters/k3s-cluster/argo-rollouts/namespace.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: argo-rollouts
|
18
clusters/k3s-cluster/argocd/kustomization.yaml
Normal file
18
clusters/k3s-cluster/argocd/kustomization.yaml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
namespace: argocd
|
||||||
|
resources:
|
||||||
|
- namespace.yaml
|
||||||
|
- https://raw.githubusercontent.com/argoproj/argo-cd/v2.13.3/manifests/install.yaml
|
||||||
|
patches:
|
||||||
|
- patch: |
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: argocd-server
|
||||||
|
spec:
|
||||||
|
type: LoadBalancer
|
||||||
|
target:
|
||||||
|
kind: Service
|
||||||
|
labelSelector: app.kubernetes.io/name=argocd-server
|
5
clusters/k3s-cluster/argocd/namespace.yaml
Normal file
5
clusters/k3s-cluster/argocd/namespace.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: argocd
|
0
clusters/k3s-cluster/flux-system/gotk-sync.yaml
Normal file
0
clusters/k3s-cluster/flux-system/gotk-sync.yaml
Normal file
25
clusters/k3s-cluster/flux-system/kustomization.yaml
Normal file
25
clusters/k3s-cluster/flux-system/kustomization.yaml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- gotk-components.yaml
|
||||||
|
- gotk-sync.yaml
|
||||||
|
patches:
|
||||||
|
- patch: |
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: all
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: manager
|
||||||
|
env:
|
||||||
|
- name: "HTTPS_PROXY"
|
||||||
|
value: "http://proxy-lb.lab.kill0.net.:3128"
|
||||||
|
- name: "NO_PROXY"
|
||||||
|
value: ".cluster.local.,.cluster.local,.svc,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16"
|
||||||
|
target:
|
||||||
|
kind: Deployment
|
||||||
|
labelSelector: app.kubernetes.io/part-of=flux
|
60
clusters/k3s-cluster/infrastructure.yaml
Normal file
60
clusters/k3s-cluster/infrastructure.yaml
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
---
|
||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: infra-loadbalancer
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
interval: 1h
|
||||||
|
retryInterval: 1m
|
||||||
|
timeout: 5m
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
name: flux-system
|
||||||
|
path: ./infrastructure/loadbalancer
|
||||||
|
prune: true
|
||||||
|
wait: true
|
||||||
|
patches:
|
||||||
|
- patch: |
|
||||||
|
- op: replace
|
||||||
|
path: /spec/addresses
|
||||||
|
value:
|
||||||
|
- 10.100.101.16/28
|
||||||
|
target:
|
||||||
|
kind: IPAddressPool
|
||||||
|
name: first-pool
|
||||||
|
---
|
||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: infra-controllers
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
dependsOn:
|
||||||
|
- name: infra-loadbalancer
|
||||||
|
interval: 1h
|
||||||
|
retryInterval: 1m
|
||||||
|
timeout: 5m
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
name: flux-system
|
||||||
|
path: ./infrastructure/controllers
|
||||||
|
prune: true
|
||||||
|
wait: true
|
||||||
|
---
|
||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: infra-configs
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
dependsOn:
|
||||||
|
- name: infra-controllers
|
||||||
|
interval: 1h
|
||||||
|
retryInterval: 1m
|
||||||
|
timeout: 5m
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
name: flux-system
|
||||||
|
path: ./infrastructure/configs
|
||||||
|
prune: true
|
Loading…
x
Reference in New Issue
Block a user