install metallb first
This commit is contained in:
		@@ -1,10 +1,37 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
 | 
					apiVersion: kustomize.toolkit.fluxcd.io/v1
 | 
				
			||||||
kind: Kustomization
 | 
					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.100.220-10.100.100.229
 | 
				
			||||||
 | 
					      target:
 | 
				
			||||||
 | 
					        kind: IPAddressPool
 | 
				
			||||||
 | 
					        name: first-pool
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
 | 
					apiVersion: kustomize.toolkit.fluxcd.io/v1
 | 
				
			||||||
 | 
					kind: Kustomization
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: infra-controllers
 | 
					  name: infra-controllers
 | 
				
			||||||
  namespace: flux-system
 | 
					  namespace: flux-system
 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
 | 
					  dependsOn:
 | 
				
			||||||
 | 
					    - name: infra-loadbalancer
 | 
				
			||||||
  interval: 1h
 | 
					  interval: 1h
 | 
				
			||||||
  retryInterval: 1m
 | 
					  retryInterval: 1m
 | 
				
			||||||
  timeout: 5m
 | 
					  timeout: 5m
 | 
				
			||||||
@@ -31,12 +58,3 @@ spec:
 | 
				
			|||||||
    name: flux-system
 | 
					    name: flux-system
 | 
				
			||||||
  path: ./infrastructure/configs
 | 
					  path: ./infrastructure/configs
 | 
				
			||||||
  prune: true
 | 
					  prune: true
 | 
				
			||||||
  patches:
 | 
					 | 
				
			||||||
    - patch: |
 | 
					 | 
				
			||||||
        - op: replace
 | 
					 | 
				
			||||||
          path: /spec/addresses
 | 
					 | 
				
			||||||
          value:
 | 
					 | 
				
			||||||
            - 10.100.100.220-10.100.100.229
 | 
					 | 
				
			||||||
      target:
 | 
					 | 
				
			||||||
        kind: IPAddressPool
 | 
					 | 
				
			||||||
        name: first-pool
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,10 +1,37 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
 | 
					apiVersion: kustomize.toolkit.fluxcd.io/v1
 | 
				
			||||||
kind: Kustomization
 | 
					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.100.210-10.100.100.219
 | 
				
			||||||
 | 
					      target:
 | 
				
			||||||
 | 
					        kind: IPAddressPool
 | 
				
			||||||
 | 
					        name: first-pool
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
 | 
					apiVersion: kustomize.toolkit.fluxcd.io/v1
 | 
				
			||||||
 | 
					kind: Kustomization
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: infra-controllers
 | 
					  name: infra-controllers
 | 
				
			||||||
  namespace: flux-system
 | 
					  namespace: flux-system
 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
 | 
					  dependsOn:
 | 
				
			||||||
 | 
					    - name: infra-loadbalancer
 | 
				
			||||||
  interval: 1h
 | 
					  interval: 1h
 | 
				
			||||||
  retryInterval: 1m
 | 
					  retryInterval: 1m
 | 
				
			||||||
  timeout: 5m
 | 
					  timeout: 5m
 | 
				
			||||||
@@ -31,12 +58,3 @@ spec:
 | 
				
			|||||||
    name: flux-system
 | 
					    name: flux-system
 | 
				
			||||||
  path: ./infrastructure/configs
 | 
					  path: ./infrastructure/configs
 | 
				
			||||||
  prune: true
 | 
					  prune: true
 | 
				
			||||||
  patches:
 | 
					 | 
				
			||||||
    - patch: |
 | 
					 | 
				
			||||||
        - op: replace
 | 
					 | 
				
			||||||
          path: /spec/addresses
 | 
					 | 
				
			||||||
          value:
 | 
					 | 
				
			||||||
            - 10.100.100.210-10.100.100.219
 | 
					 | 
				
			||||||
      target:
 | 
					 | 
				
			||||||
        kind: IPAddressPool
 | 
					 | 
				
			||||||
        name: first-pool
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +0,0 @@
 | 
				
			|||||||
---
 | 
					 | 
				
			||||||
apiVersion: kustomize.config.k8s.io/v1beta1
 | 
					 | 
				
			||||||
kind: Kustomization
 | 
					 | 
				
			||||||
resources:
 | 
					 | 
				
			||||||
  - metallb-native.yaml
 | 
					 | 
				
			||||||
@@ -1,5 +1,7 @@
 | 
				
			|||||||
 | 
					---
 | 
				
			||||||
apiVersion: kustomize.config.k8s.io/v1beta1
 | 
					apiVersion: kustomize.config.k8s.io/v1beta1
 | 
				
			||||||
kind: Kustomization
 | 
					kind: Kustomization
 | 
				
			||||||
resources:
 | 
					resources:
 | 
				
			||||||
 | 
					  - metallb-native.yaml
 | 
				
			||||||
  - ip-address-pool.yaml
 | 
					  - ip-address-pool.yaml
 | 
				
			||||||
  - l2-advertisement.yaml
 | 
					  - l2-advertisement.yaml
 | 
				
			||||||
		Reference in New Issue
	
	Block a user