restructure repository
This commit is contained in:
		
							
								
								
									
										42
									
								
								clusters/k8s-cluster/infrastructure.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								clusters/k8s-cluster/infrastructure.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,42 @@
 | 
				
			|||||||
 | 
					---
 | 
				
			||||||
 | 
					apiVersion: kustomize.toolkit.fluxcd.io/v1
 | 
				
			||||||
 | 
					kind: Kustomization
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: infra-controllers
 | 
				
			||||||
 | 
					  namespace: flux-system
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  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
 | 
				
			||||||
 | 
					  patches:
 | 
				
			||||||
 | 
					    - patch: |
 | 
				
			||||||
 | 
					        - op: replace
 | 
				
			||||||
 | 
					          path: /spec/addresses
 | 
				
			||||||
 | 
					          value:
 | 
				
			||||||
 | 
					            - 10.100.100.220-10.100.100.229
 | 
				
			||||||
 | 
					      target:
 | 
				
			||||||
 | 
					        kind: IPAddressPool
 | 
				
			||||||
 | 
					        name: first-pool
 | 
				
			||||||
@@ -6,6 +6,8 @@ metadata:
 | 
				
			|||||||
  namespace: flux-system
 | 
					  namespace: flux-system
 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
  interval: 10m0s
 | 
					  interval: 10m0s
 | 
				
			||||||
 | 
					  dependsOn:
 | 
				
			||||||
 | 
					    - name: infra-configs
 | 
				
			||||||
  sourceRef:
 | 
					  sourceRef:
 | 
				
			||||||
    kind: GitRepository
 | 
					    kind: GitRepository
 | 
				
			||||||
    name: flux-system
 | 
					    name: flux-system
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										42
									
								
								clusters/my-cluster/infrastructure.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								clusters/my-cluster/infrastructure.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,42 @@
 | 
				
			|||||||
 | 
					---
 | 
				
			||||||
 | 
					apiVersion: kustomize.toolkit.fluxcd.io/v1
 | 
				
			||||||
 | 
					kind: Kustomization
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: infra-controllers
 | 
				
			||||||
 | 
					  namespace: flux-system
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  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
 | 
				
			||||||
 | 
					  patches:
 | 
				
			||||||
 | 
					    - patch: |
 | 
				
			||||||
 | 
					        - op: replace
 | 
				
			||||||
 | 
					          path: /spec/addresses
 | 
				
			||||||
 | 
					          value:
 | 
				
			||||||
 | 
					            - 10.100.100.210-10.100.100.219
 | 
				
			||||||
 | 
					      target:
 | 
				
			||||||
 | 
					        kind: IPAddressPool
 | 
				
			||||||
 | 
					        name: first-pool
 | 
				
			||||||
							
								
								
									
										5
									
								
								infrastructure/configs/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								infrastructure/configs/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
				
			|||||||
 | 
					apiVersion: kustomize.config.k8s.io/v1beta1
 | 
				
			||||||
 | 
					kind: Kustomization
 | 
				
			||||||
 | 
					resources:
 | 
				
			||||||
 | 
					  - ip-address-pool.yaml
 | 
				
			||||||
 | 
					  - l2-advertisement.yaml
 | 
				
			||||||
		Reference in New Issue
	
	Block a user