Using Studio without ngrok (kubernetes)

I’d like to use Replicated Studio with k8s but without ngrok. How do I do this?

If you need to customize your configuration, follow these three steps. You’ll need to install Studio onto your development server (not your development machine like you would do w/ ngrok).

  1. Install Replicated with Kubernetes.

  2. Run Studio in a Docker container.

    mkdir $HOME/replicated

    docker run --name studio -d \
         --restart always \
         -v $HOME/replicated:/replicated \
         -p 8006:8006 \
         replicated/studio:latest
  1. Update the Replicated deployment in Kubernetes to point to the studio container.
    cat > /tmp/patch.yml <<EOF
spec:
  template:
    spec:
      containers:
      - name: replicated
        env:
        - name: MARKET_BASE_URL
          value: http://172.17.0.1:8006
EOF
    kubectl patch deployment/replicated --patch "$(cat /tmp/patch.yml)"

From there you’ll need to iterate on your YAML: