chart-unifi_network_application: set PUID/PGID instead of runAsUser

This commit is contained in:
2024-08-25 23:49:44 +02:00
parent 6408e471c3
commit 5c86431dd1
3 changed files with 22 additions and 7 deletions

View File

@ -16,6 +16,7 @@ Unifi Controller application using linuxservers Docker image. This chart was or
| Key | Type | Default | Description | | Key | Type | Default | Description |
|-----|------|---------|-------------| |-----|------|---------|-------------|
| extraEnv | object | `{}` | set extra environment variables for the app |
| fullnameOverride | string | `""` | can be used to override the main app name; incorporates release name by default | | fullnameOverride | string | `""` | can be used to override the main app name; incorporates release name by default |
| global.storageClass | string | `""` | globally set the storage class for PVCs | | global.storageClass | string | `""` | globally set the storage class for PVCs |
| image.pullPolicy | string | `"IfNotPresent"` | | | image.pullPolicy | string | `"IfNotPresent"` | |
@ -30,12 +31,13 @@ Unifi Controller application using linuxservers Docker image. This chart was or
| mongodb.cacheSizeGB | string | `"0.25"` | | | mongodb.cacheSizeGB | string | `"0.25"` | |
| mongodb.dbname | string | `"unifi"` | main database name | | mongodb.dbname | string | `"unifi"` | main database name |
| mongodb.dbname_stat | string | `"unifi_stat"` | stat database name | | mongodb.dbname_stat | string | `"unifi_stat"` | stat database name |
| mongodb.extraEnv | object | `{}` | set extra environment variables for the db |
| mongodb.image | string | `"mongo"` | image to pull and use; for arm64 (eg Raspberry Pi 4), use "arm64v8/mongo" | | mongodb.image | string | `"mongo"` | image to pull and use; for arm64 (eg Raspberry Pi 4), use "arm64v8/mongo" |
| mongodb.imageTag | string | `"7.0"` | | | mongodb.imageTag | string | `"7.0"` | |
| mongodb.password | string | `""` | | | mongodb.password | string | `""` | |
| mongodb.persistence.accessModes | object | `{}` | | | mongodb.persistence.accessModes[0] | string | `"ReadWriteOnce"` | |
| mongodb.persistence.annotations | object | `{}` | | | mongodb.persistence.annotations | object | `{}` | |
| mongodb.persistence.claimSuffix | string | `"config-claim"` | suffix string that will be appended to fullname | | mongodb.persistence.claimSuffix | string | `"db-claim"` | suffix string that will be appended to fullname |
| mongodb.persistence.create | bool | `true` | whether to create PVCs | | mongodb.persistence.create | bool | `true` | whether to create PVCs |
| mongodb.persistence.enabled | bool | `true` | whether to deal with persistence at all | | mongodb.persistence.enabled | bool | `true` | whether to deal with persistence at all |
| mongodb.persistence.labels | object | `{}` | | | mongodb.persistence.labels | object | `{}` | |
@ -45,7 +47,7 @@ Unifi Controller application using linuxservers Docker image. This chart was or
| mongodb.podSecurityContext | object | `{}` | | | mongodb.podSecurityContext | object | `{}` | |
| mongodb.username | string | `""` | credentials for "normal" and admin user; MUST BE SET! | | mongodb.username | string | `""` | credentials for "normal" and admin user; MUST BE SET! |
| nameOverride | string | `""` | | | nameOverride | string | `""` | |
| persistence.accessModes | object | `{}` | | | persistence.accessModes[0] | string | `"ReadWriteOnce"` | |
| persistence.annotations | object | `{}` | | | persistence.annotations | object | `{}` | |
| persistence.claimSuffix | string | `"config-claim"` | suffix string that will be appended to fullname | | persistence.claimSuffix | string | `"config-claim"` | suffix string that will be appended to fullname |
| persistence.create | bool | `true` | whether to create PVCs | | persistence.create | bool | `true` | whether to create PVCs |
@ -54,6 +56,7 @@ Unifi Controller application using linuxservers Docker image. This chart was or
| persistence.size | string | `"128Mi"` | size limit for the PVC | | persistence.size | string | `"128Mi"` | size limit for the PVC |
| persistence.storageClass | string | `""` | override storage class | | persistence.storageClass | string | `""` | override storage class |
| persistence.volumeName | string | `""` | | | persistence.volumeName | string | `""` | |
| podSecurityContext | object | `{}` | |
| replicaCount | int | `1` | how many app replicas to run; only ever tested with 1 | | replicaCount | int | `1` | how many app replicas to run; only ever tested with 1 |
| resources | object | `{}` | | | resources | object | `{}` | |
| service.annotations | object | `{}` | | | service.annotations | object | `{}` | |

View File

@ -45,6 +45,7 @@ spec:
value: {{ .Values.mongodb.password }} value: {{ .Values.mongodb.password }}
- name: MONGO_DBNAME - name: MONGO_DBNAME
value: {{ .Values.mongodb.dbname }} value: {{ .Values.mongodb.dbname }}
{{- toYaml .Values.mongodb.extraEnv | nindent 12 }}
ports: ports:
- name: 'mongo' - name: 'mongo'
@ -105,6 +106,7 @@ spec:
value: {{ .Values.mongodb.dbname }} value: {{ .Values.mongodb.dbname }}
- name: MONGO_AUTHSOURCE - name: MONGO_AUTHSOURCE
value: admin value: admin
{{- toYaml .Values.extraEnv | nindent 12 }}
ports: ports:
- name: 'l2-discoverable' - name: 'l2-discoverable'

View File

@ -63,8 +63,13 @@ persistence:
podSecurityContext: {} podSecurityContext: {}
# Settings for NFS running as nobody(65534): # Settings for NFS running as nobody(65534):
# runAsUser: 65534 # fsGroup: 65534
# runAsGroup: 65534
# -- set extra environment variables for the app
extraEnv: {}
# Settings for NFS running as nobody(65534):
# PUID: 65534
# PGID: 65534
mongodb: mongodb:
# -- image to pull and use; for arm64 (eg Raspberry Pi 4), use "arm64v8/mongo" # -- image to pull and use; for arm64 (eg Raspberry Pi 4), use "arm64v8/mongo"
@ -100,5 +105,10 @@ mongodb:
podSecurityContext: {} podSecurityContext: {}
# Settings for NFS running as nobody(65534): # Settings for NFS running as nobody(65534):
# runAsUser: 65534 # fsGroup: 65534
# runAsGroup: 65534
# -- set extra environment variables for the db
extraEnv: {}
# Settings for NFS running as nobody(65534):
# PUID: 65534
# PGID: 65534