forked from k-space/kube
		
	
		
			
				
	
	
		
			45 lines
		
	
	
		
			875 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			875 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| ---
 | |
| apiVersion: apps/v1
 | |
| kind: Deployment
 | |
| metadata:
 | |
|   name: clamav
 | |
| spec:
 | |
|   replicas: 1
 | |
|   selector:
 | |
|     matchLabels:
 | |
|       app.kubernetes.io/name: clamav
 | |
|   template:
 | |
|     metadata:
 | |
|       labels:
 | |
|         app.kubernetes.io/name: clamav
 | |
|     spec:
 | |
|       containers:
 | |
|         - name: clamd
 | |
|           image: mirror.gcr.io/clamav/clamav:1.4
 | |
|           imagePullPolicy: IfNotPresent
 | |
|           ports:
 | |
|             - containerPort: 3310
 | |
|               name: api
 | |
|           volumeMounts:
 | |
|             - mountPath: /var/lib/clamav
 | |
|               name: avdata
 | |
|             - mountPath: /tmp
 | |
|               name: tmp
 | |
|       volumes:
 | |
|         - name: avdata
 | |
|           emptyDir: {}
 | |
|         - name: tmp
 | |
|           emptyDir:
 | |
|             medium: Memory
 | |
| ---
 | |
| apiVersion: v1
 | |
| kind: Service
 | |
| metadata:
 | |
|   name: clamav
 | |
| spec:
 | |
|   selector:
 | |
|     app.kubernetes.io/name: clamav
 | |
|   ports:
 | |
|     - port: 3310
 | |
|       name: clamav
 |