- move authsign secret to signer and make port configurable - rename storages to more general ops-configs - put 'storages.json' path into env var - rename backend secret to backend-auth - cronjobs: don't keep succeeded jobs around, triggers operator update
		
			
				
	
	
		
			31 lines
		
	
	
		
			601 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			601 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| apiVersion: batch/v1
 | |
| kind: CronJob
 | |
| metadata:
 | |
|   name: "{{ id }}"
 | |
|   labels:
 | |
|     btrix.crawlconfig: "{{ cid }}"
 | |
|     role: "cron-job"
 | |
| 
 | |
| spec:
 | |
|   concurrencyPolicy: Forbid
 | |
|   successfulJobsHistoryLimit: 0
 | |
|   failedJobsHistoryLimit: 2
 | |
| 
 | |
|   schedule: "{{ schedule }}"
 | |
| 
 | |
|   jobTemplate:
 | |
|     metadata:
 | |
|       labels:
 | |
|         btrix.crawlconfig: "{{ cid }}"
 | |
|         role: "scheduled-crawljob"
 | |
| 
 | |
|     spec:
 | |
|       suspend: true
 | |
|       template:
 | |
|         spec:
 | |
|           restartPolicy: Never
 | |
|           containers:
 | |
|             - name: noop
 | |
|               image: "docker.io/tianon/true"
 | |
|               imagePullPolicy: IfNotPresent
 |