Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion deploy_studio_ocp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,13 @@ EOF

export POSTGRES_PASSWORD=devPostgresql123

./deployment-scripts/install-postgres.sh UPDATE_STORAGE DISABLE_PV DO_NOT_SET_SCC
# For CRC, we need volume permissions enabled, so don't use DO_NOT_SET_SCC
# For other OpenShift environments, storage may be pre-configured
if [[ "$DEPLOYMENT_ENV" == "crc" ]] || [[ "$DEPLOYMENT_ENV" == "crc-local" ]]; then
./deployment-scripts/install-postgres.sh UPDATE_STORAGE DISABLE_PV
else
./deployment-scripts/install-postgres.sh UPDATE_STORAGE DISABLE_PV DO_NOT_SET_SCC
fi

kubectl_wait_with_retry $KUBECTL_WAIT_RETRY_ATTEMPTS $KUBECTL_WAIT_RETRY_DELAY --for=condition=ready pod/postgresql-0 -n ${OC_PROJECT} --timeout=300s

Expand Down
21 changes: 21 additions & 0 deletions docs/deployment/crc_deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,29 @@ crc status
crc delete
crc setup
crc start

# Errors with libvirt services and inotify file watch limit:
## Check status
sudo systemctl status libvirtd

## If you see "Too many open files":
## Increase the inotify limit temporarily
sudo sysctl fs.inotify.max_user_instances=512
sudo sysctl fs.inotify.max_user_watches=524288

## Make it permanent
echo "fs.inotify.max_user_instances=512" | sudo tee -a /etc/sysctl.conf
echo "fs.inotify.max_user_watches=524288" | sudo tee -a /etc/sysctl.conf
sudo sysctl -p

## Then restart libvirtd
sudo systemctl stop libvirtd
sudo systemctl restart libvirtd

# Now do crc cleanup, and start
```


**Network issues:**
```bash
# Check DNS resolution
Expand Down
Loading
Loading