45 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| apiVersion: apps/v1
 | |
| kind: Deployment
 | |
| metadata:
 | |
|   name: lighttpd
 | |
|   namespace: lighttpd
 | |
|   labels:
 | |
|     app: lighttpd
 | |
| spec:
 | |
|   replicas: 1
 | |
|   selector:
 | |
|     matchLabels:
 | |
|       app: lighttpd
 | |
|   template:
 | |
|     metadata:
 | |
|       labels:
 | |
|         app: lighttpd
 | |
|     spec:
 | |
|       containers:
 | |
|       - name: lighttpd-php-pwsh
 | |
|         image: djpbessems/lighttpd-php-powershell
 | |
|         ports:
 | |
|           - name: web
 | |
|             containerPort: 8080
 | |
|         volumeMounts:
 | |
|         - name: configmap-lighttpd-conf
 | |
|           mountPath: /etc/lighttpd/lighttpd.conf
 | |
|           subPath: lighttpd.conf
 | |
|         - name: configmap-lighttpd-conf
 | |
|           mountPath: /etc/lighttpd/.htpasswd
 | |
|           subPath: .htpasswd
 | |
|         - name: configmap-lighttpd-vhosts
 | |
|           mountPath: /etc/lighttpd/vhosts.d
 | |
|         - name: csismb-lighttpd-websites
 | |
|           mountPath: /var/www/
 | |
|       volumes:
 | |
|       - name: configmap-lighttpd-conf
 | |
|         configMap:
 | |
|           name: configmap-lighttpd-conf
 | |
|       - name: configmap-lighttpd-vhosts
 | |
|         configMap:
 | |
|           name: configmap-lighttpd-vhosts
 | |
|       - name: csismb-lighttpd-websites
 | |
|         persistentVolumeClaim:
 | |
|           claimName: csismb-lighttpd-websites
 |