troubleshooting
How to work around permission denied error when running playground on a K8s cluster without root access?
Ralph encountered a permission denied error when trying to run the playground on a K8s cluster without root access. Tianxiao suggested using an environment variable RW_QUERY_LOG_PATH
to specify the log path. Ralph confirmed that setting it to /tmp
resolved the issue.
Ra
Ralph Matthias Debusmann
Asked on Jun 21, 2023
- Set the
RW_QUERY_LOG_PATH
environment variable to specify the log path.
apiVersion: apps/v1
kind: Deployment
metadata:
name: risingwave
labels:
app: risingwave
spec:
replicas: 1
selector:
matchLabels:
app: risingwave
template:
metadata:
labels:
app: risingwave
spec:
containers:
- name: risingwave
image: risingwavelabs/risingwave:latest
imagePullPolicy: Always
args: ["playground"]
ports:
- containerPort: 4566
- containerPort: 5691
resources:
limits:
memory: "2048Mi"
cpu: "800m"
requests:
memory: "2048Mi"
cpu: "400m"
securityContext:
capabilities:
drop:
- ALL
runAsNonRoot: true
runAsUser: 2000
readOnlyRootFilesystem: false
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
env:
- name: RW_QUERY_LOG_PATH
value: "/tmp"
Jun 21, 2023Edited by