Filing a Support Request

If you have a support plan with Posit and would like to file a request for help with your Posit Connect deployment on Kubernetes, please execute the following script and attach the resulting diagnostics to your ticket.

Note

Using this script requires that the deployment was created with the helm upgrade --install command.

#!/usr/bin/env bash
# Copyright (C) 2020 by Posit Software, PBC.

set -euxo pipefail

NAMESPACE="${1:-rstudio-connect}"
RELEASE_NAME=$(helm list -n $NAMESPACE -o yaml | grep "chart: rstudio-connect-[0-9]" -A1 | grep name | awk '{print $2}')

echo "### Kubernetes version ###"
kubectl version
echo

echo "### Helm version ###"
helm version
echo

echo "### Helm releases (namespace: $NAMESPACE) ###"
helm list -n $NAMESPACE
echo

echo "### values.yaml (release: $RELEASE_NAME) ###"
helm get values -n $NAMESPACE $RELEASE_NAME | grep -v "Password:"
echo

echo "### Posit Connect Pod describe ###"
kubectl describe pod -n $NAMESPACE -l app.kubernetes.io/name=rstudio-connect
echo

echo "### Posit Connect server logs ###"
kubectl logs -n $NAMESPACE $(kubectl get pod -n $NAMESPACE -l app.kubernetes.io/name=rstudio-connect -o=jsonpath='{.items[0].metadata.name}')

To produce a diagnostic file for your support ticket:

  1. Save the above script to a file called posit-connect-run-diagnostics-k8s.sh

  2. Make the script executable:

    chmod 750 ./posit-connect-run-diagnostics-k8s.sh
  3. Invoke the script and save the output to a file:

    ./posit-connect-run-diagnostics-k8s.sh > posit-connect-diagnostic-info-k8s.txt
  4. Attach the output file posit-connect-diagnostic-info-k8s.txt to your support ticket.

    Note

    posit-connect-run-diagnostics-k8s.sh accepts an optional argument which can be used to provide a namespace other than rstudio-connect. This allows you to invoke the script with a non-default namespace:

    ./posit-connect-run-diagnostics-k8s.sh my-custom-namespace > posit-connect-diagnostic-info-k8s.txt