mirror of https://github.com/fluxcd/flux2.git
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			29 lines
		
	
	
		
			634 B
		
	
	
	
		
			YAML
		
	
			
		
		
	
	
			29 lines
		
	
	
		
			634 B
		
	
	
	
		
			YAML
		
	
| apiVersion: apps/v1
 | |
| kind: Deployment
 | |
| metadata:
 | |
|   name: credentials-sync
 | |
|   namespace: flux-system
 | |
| spec:
 | |
|   template:
 | |
|     spec:
 | |
|       initContainers:
 | |
|       - image: ghcr.io/fluxcd/flux-cli:v0.17.2
 | |
|         name: copy-kubectl
 | |
|         # it's okay to do this because kubectl is a statically linked binary
 | |
|         command:
 | |
|         - sh
 | |
|         - -ceu
 | |
|         - cp $(which kubectl) /kbin/
 | |
|         resources: {}
 | |
|         volumeMounts:
 | |
|         - name: kbin
 | |
|           mountPath: /kbin
 | |
|       containers:
 | |
|       - name: sync
 | |
|         volumeMounts:
 | |
|         - name: kbin
 | |
|           mountPath: /kbin
 | |
|       volumes:
 | |
|       - name: kbin
 | |
|         emptyDir: {}
 |