| 
									
										
										
										
											2025-04-12 19:31:19 +01:00
										 |  |  | apiVersion: apps/v1
 | 
					
						
							|  |  |  | kind: Deployment
 | 
					
						
							|  |  |  | metadata:
 | 
					
						
							|  |  |  |   name: hexound
 | 
					
						
							|  |  |  | spec:
 | 
					
						
							| 
									
										
										
										
											2025-04-13 18:50:31 +00:00
										 |  |  |   replicas: 1
 | 
					
						
							| 
									
										
										
										
											2025-04-12 19:31:19 +01:00
										 |  |  |   selector:
 | 
					
						
							|  |  |  |     matchLabels:
 | 
					
						
							|  |  |  |       app: hexound
 | 
					
						
							|  |  |  |   template:
 | 
					
						
							|  |  |  |     metadata:
 | 
					
						
							|  |  |  |       labels:
 | 
					
						
							|  |  |  |         app: hexound
 | 
					
						
							|  |  |  |     spec:
 | 
					
						
							|  |  |  |       volumes:
 | 
					
						
							|  |  |  |         - name: hexound-repo
 | 
					
						
							|  |  |  |           emptyDir: {}
 | 
					
						
							| 
									
										
										
										
											2025-04-13 11:49:35 +00:00
										 |  |  |         - name: tmp-dir
 | 
					
						
							|  |  |  |           emptyDir: {}
 | 
					
						
							| 
									
										
										
										
											2025-04-13 11:51:31 +00:00
										 |  |  |         - name: run-dir
 | 
					
						
							|  |  |  |           emptyDir: {}
 | 
					
						
							|  |  |  |         - name: nginx-logs
 | 
					
						
							|  |  |  |           emptyDir: {}
 | 
					
						
							| 
									
										
										
										
											2025-04-12 19:31:19 +01:00
										 |  |  |       initContainers:
 | 
					
						
							|  |  |  |         - name: git-cloner
 | 
					
						
							|  |  |  |           image: alpine/git
 | 
					
						
							| 
									
										
										
										
											2025-07-18 13:46:54 +03:00
										 |  |  |           resources:
 | 
					
						
							|  |  |  |             requests:
 | 
					
						
							|  |  |  |               memory: "32Mi"
 | 
					
						
							|  |  |  |               cpu: "50m"
 | 
					
						
							|  |  |  |             limits:
 | 
					
						
							|  |  |  |               memory: "128Mi"
 | 
					
						
							|  |  |  |               cpu: "200m"
 | 
					
						
							| 
									
										
										
										
											2025-04-12 19:31:19 +01:00
										 |  |  |           command:
 | 
					
						
							|  |  |  |             - git
 | 
					
						
							|  |  |  |             - clone
 | 
					
						
							|  |  |  |             - --depth=1
 | 
					
						
							|  |  |  |             - https://github.com/house-of-vanity/hexound.ru.git
 | 
					
						
							|  |  |  |             - /repo
 | 
					
						
							|  |  |  |           volumeMounts:
 | 
					
						
							|  |  |  |             - name: hexound-repo
 | 
					
						
							|  |  |  |               mountPath: /repo
 | 
					
						
							|  |  |  |       containers:
 | 
					
						
							|  |  |  |         - name: hexound
 | 
					
						
							|  |  |  |           image: trafex/php-nginx:3.8.0
 | 
					
						
							| 
									
										
										
										
											2025-07-18 13:46:54 +03:00
										 |  |  |           resources:
 | 
					
						
							|  |  |  |             requests:
 | 
					
						
							|  |  |  |               memory: "64Mi"
 | 
					
						
							|  |  |  |               cpu: "50m"
 | 
					
						
							|  |  |  |             limits:
 | 
					
						
							|  |  |  |               memory: "256Mi"
 | 
					
						
							|  |  |  |               cpu: "200m"
 | 
					
						
							| 
									
										
										
										
											2025-04-12 19:31:19 +01:00
										 |  |  |           volumeMounts:
 | 
					
						
							|  |  |  |             - name: hexound-repo
 | 
					
						
							|  |  |  |               mountPath: /var/www/html
 | 
					
						
							| 
									
										
										
										
											2025-04-13 11:46:58 +00:00
										 |  |  |               readOnly: true
 | 
					
						
							| 
									
										
										
										
											2025-04-13 11:49:35 +00:00
										 |  |  |             - name: tmp-dir
 | 
					
						
							|  |  |  |               mountPath: /tmp
 | 
					
						
							| 
									
										
										
										
											2025-04-13 11:51:31 +00:00
										 |  |  |             - name: run-dir
 | 
					
						
							|  |  |  |               mountPath: /run
 | 
					
						
							|  |  |  |             - name: nginx-logs
 | 
					
						
							|  |  |  |               mountPath: /var/lib/nginx/logs
 | 
					
						
							| 
									
										
										
										
											2025-04-13 11:46:58 +00:00
										 |  |  |           securityContext:
 | 
					
						
							|  |  |  |             readOnlyRootFilesystem: true
 | 
					
						
							|  |  |  |             allowPrivilegeEscalation: false
 | 
					
						
							|  |  |  |             runAsNonRoot: true
 | 
					
						
							|  |  |  |             runAsUser: 101
 | 
					
						
							|  |  |  |             runAsGroup: 101
 | 
					
						
							| 
									
										
										
										
											2025-04-12 19:31:19 +01:00
										 |  |  |           ports:
 | 
					
						
							|  |  |  |             - name: http
 | 
					
						
							|  |  |  |               containerPort: 8080
 | 
					
						
							| 
									
										
										
										
											2025-04-13 19:33:38 +01:00
										 |  |  |               protocol: TCP
 |