diff --git a/Dockerfile.source b/Dockerfile.source index 442775bc..6cea2782 100644 --- a/Dockerfile.source +++ b/Dockerfile.source @@ -148,8 +148,8 @@ ENV RUSTFS_ADDRESS=":9000" \ RUSTFS_OBS_LOG_DIRECTORY="/logs" \ RUSTFS_USERNAME="rustfs" \ RUSTFS_GROUPNAME="rustfs" \ - RUSTFS_UID="1000" \ - RUSTFS_GID="1000" + RUSTFS_UID="10001" \ + RUSTFS_GID="10001" # Note: We don't COPY source here because we expect it to be mounted at /app # We rely on cargo run to build and run @@ -187,8 +187,8 @@ RUN set -eux; \ # Create a conventional runtime user/group (final switch happens in entrypoint via chroot --userspec) RUN set -eux; \ - groupadd -g 1000 rustfs; \ - useradd -u 1000 -g rustfs -M -s /usr/sbin/nologin rustfs + groupadd -g 10001 rustfs; \ + useradd -u 10001 -g rustfs -M -s /usr/sbin/nologin rustfs WORKDIR /app @@ -212,8 +212,8 @@ ENV RUSTFS_ADDRESS=":9000" \ RUST_LOG="warn" \ RUSTFS_USERNAME="rustfs" \ RUSTFS_GROUPNAME="rustfs" \ - RUSTFS_UID="1000" \ - RUSTFS_GID="1000" + RUSTFS_UID="10001" \ + RUSTFS_GID="10001" EXPOSE 9000 VOLUME ["/data"] diff --git a/helm/rustfs/Chart.yaml b/helm/rustfs/Chart.yaml index 68118e54..9f1b44f8 100644 --- a/helm/rustfs/Chart.yaml +++ b/helm/rustfs/Chart.yaml @@ -15,10 +15,10 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.0.76 +version: 0.0.77 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "1.0.0-alpha.73" +appVersion: "1.0.0-alpha.77" diff --git a/helm/rustfs/templates/deployment.yaml b/helm/rustfs/templates/deployment.yaml index 1a2672b3..64bd0826 100644 --- a/helm/rustfs/templates/deployment.yaml +++ b/helm/rustfs/templates/deployment.yaml @@ -66,7 +66,7 @@ spec: - -c - | mkdir -p /data /logs - chown -R 10001:10001 /data /logs + chown 10001:10001 /data /logs volumeMounts: - name: data mountPath: /data diff --git a/helm/rustfs/templates/statefulset.yaml b/helm/rustfs/templates/statefulset.yaml index 5fcfcc7d..84ecdfa0 100644 --- a/helm/rustfs/templates/statefulset.yaml +++ b/helm/rustfs/templates/statefulset.yaml @@ -87,7 +87,7 @@ spec: mkdir -p /data fi mkdir -p {{ $logDir }} - chown -R 10001:10001 /data {{ $logDir }} + chown 10001:10001 /data {{ $logDir }} volumeMounts: {{- if eq (int .Values.replicaCount) 4 }} {{- range $i := until (int .Values.replicaCount) }}