Helm: Running commands

Once the Zulip pod is running, you can interact with it using kubectl exec.

Getting a shell

kubectl exec zulip-0 -c zulip -- bash

Running management commands

Some parts of the Zulip documentation may reference running management commands. These must be run as the zulip user:

kubectl exec zulip-0 -c zulip -- \
    runuser -u zulip -- \
    /home/zulip/deployments/current/manage.py list_realms

Viewing logs

# Stream the main container logs
kubectl logs zulip-0 -c zulip -f

# View Zulip's error log
kubectl exec zulip-0 -c zulip -- \
    cat /var/log/zulip/errors.log

Checking pod health

kubectl get pods -l app.kubernetes.io/name=zulip
kubectl describe pod -l app.kubernetes.io/name=zulip

Restarting the deployment

kubectl rollout restart statefulset/zulip
kubectl rollout status statefulset/zulip

Port-forwarding for local access

To access Zulip from your local machine without an Ingress:

kubectl port-forward svc/zulip 8080:80

Then visit http://localhost:8080 in your browser.

See also