diff --git a/README.md b/README.md index 8ead328..68aec54 100644 --- a/README.md +++ b/README.md @@ -327,6 +327,7 @@ Annotations can be added to the Gitea pod. | extraVolumes | Additional volumes to mount to the Gitea statefulset | {} | | extraVolumeMounts | Additional volumes mounts for the Gitea containers | {} | | initPreScript | Bash script copied verbatim to start of init container | | +| securityContext | Run as a specific securityContext | {} | ### Image diff --git a/templates/gitea/statefulset.yaml b/templates/gitea/statefulset.yaml index 410eed8..13ee503 100644 --- a/templates/gitea/statefulset.yaml +++ b/templates/gitea/statefulset.yaml @@ -87,6 +87,8 @@ spec: failureThreshold: 3 resources: {{- toYaml .Values.resources | nindent 12 }} + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} volumeMounts: - name: data mountPath: /data diff --git a/values.yaml b/values.yaml index 574cafb..b739146 100644 --- a/values.yaml +++ b/values.yaml @@ -13,6 +13,8 @@ image: imagePullSecrets: [] +securityContext: {} + service: http: type: ClusterIP