mirror of
				https://github.com/optim-enterprises-bv/homelab.git
				synced 2025-10-31 01:47:53 +00:00 
			
		
		
		
	fix(netbird-dashboard): harden security
This commit is contained in:
		| @@ -12,23 +12,38 @@ spec: | |||||||
|       labels: |       labels: | ||||||
|         app.kubernetes.io/name: dashboard |         app.kubernetes.io/name: dashboard | ||||||
|     spec: |     spec: | ||||||
|  |       securityContext: | ||||||
|  |         seccompProfile: | ||||||
|  |           type: RuntimeDefault | ||||||
|       containers: |       containers: | ||||||
|       - name: dashboard |         - name: dashboard | ||||||
|         image: docker.io/netbirdio/dashboard:v2.8.2 # renovate: docker=docker.io/netbirdio/dashboard |           image: docker.io/netbirdio/dashboard:v2.8.2 # renovate: docker=docker.io/netbirdio/dashboard | ||||||
|         envFrom: |           securityContext: | ||||||
|           - configMapRef: |             allowPrivilegeEscalation: false | ||||||
|               name: dashboard-config |             readOnlyRootFilesystem: false | ||||||
|         ports: |             capabilities: | ||||||
|         - name: http |               drop: [ ALL ] | ||||||
|           containerPort: 80 |               add: [ NET_BIND_SERVICE, CHOWN, SETGID, SETUID, DAC_OVERRIDE ] | ||||||
|         readinessProbe: |           envFrom: | ||||||
|           httpGet: |             - configMapRef: | ||||||
|             path: / |                 name: dashboard-config | ||||||
|             port: http |           ports: | ||||||
|         resources: |             - name: http | ||||||
|           requests: |               containerPort: 80 | ||||||
|             memory: 32Mi |           volumeMounts: | ||||||
|             cpu: 10m |             - name: tmp | ||||||
|           limits: |               mountPath: /tmp | ||||||
|             memory: 128Mi |           readinessProbe: | ||||||
|             cpu: 2000m |             httpGet: | ||||||
|  |               path: / | ||||||
|  |               port: http | ||||||
|  |           resources: | ||||||
|  |             requests: | ||||||
|  |               memory: 32Mi | ||||||
|  |               cpu: 10m | ||||||
|  |             limits: | ||||||
|  |               memory: 128Mi | ||||||
|  |               cpu: 2000m | ||||||
|  |       volumes: | ||||||
|  |         - name: tmp | ||||||
|  |           emptyDir: { } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Vegard Hagen
					Vegard Hagen