Twoja przestrzeń robocza
Każde konto ma własną, odizolowaną przestrzeń roboczą, w której działają twoje aplikacje, bazy danych i narzędzia. Ta strona wyjaśnia, co to oznacza w praktyce: do czego masz dostęp przez kubectl, gdzie jest twój kod i co platforma nadal robi za ciebie.
Ostatnia aktualizacja: 2026-11-19
Zobacz to
Film po angielsku, z angielskimi napisami.
Transkrypcja
The third tab is for people who like the command line. Open Work with kubectl. First, the workspace API address. That is where kubectl connects. Access is limited to your own space. The file expires on its own, so you can download a new one any time. Download kubeconfig gives you that file. It is a key, so we do not download it in this video. Show commands lists what to type. First, point kubectl at the file you downloaded. Then kubectl get pods lists your workloads, only in your own namespace. A namespace is your own fenced-off part of the cluster. kubectl rollout restart restarts one app. You put its name where it says name. Asking for another namespace is denied. That is on purpose: your space stays isolated. That is Setup: devices, moving in, and kubectl.
Transkrypcja
This is Harbour Bikes, a real bike rental site. It runs on a small rented server, a VPS. Its bookings and bikes live in a Postgres database on that server. We will move all of it without taking the site down. In my-app.engineer, open your workspace and go to Setup. Choose Move something you run. Pick the card for apps on a VPS or server. It gives you one command. You run it on the server, over SSH. Here it runs on the real server. It installs the Observer, a small program that only looks. It has no AI and changes nothing. When it is done, it prints a private link to open.
Open that link, and your server draws itself in 3D. Each shape is something that runs there: the web app, the database and their storage. This panel says what the Observer may do. It only reads, it has no AI, and your data stays on the machine. Back in the platform, make a pairing code. It works once, for fifteen minutes. Type the code into the Observer. Pairing sends a list of your apps, never passwords or data. One more click lets this machine carry out the steps you approve. A restart makes it read only again. The platform now sees your server, and everything it found there. Open the migration plan. It shows what moves: the web app, its database and its uploaded files, kept together as one group. And what stays behind, with the reason for each. Choose where it goes: your private workspace. Type the address the shop keeps. Visitors use this one address the whole time. Approve the plan, and the move starts. Now it works through the steps on its own. We cut out the waiting. First the database is copied and loaded into your workspace. Then the uploaded files. The app starts in your workspace. It is sealed, so it cannot reach the outside world yet. Then it tests the copy itself. It answers, and it holds the data. Now the cutover, in four careful steps. First your address goes through the platform, which hands every visit straight back to the old server. Then shadow. Real visits are replayed on the copy and its answers are thrown away. Visitors still get the old server. Then canary. A small share of real visitors is served by the copy, then more, and every step is watched. Any trouble rolls it back on its own. Then the flip. Your workspace now serves the shop. Shutting down the original is the one step that waits for you. Nothing that big happens on its own. Open the site. At the bottom you can see it is served from your workspace now. The same thirty seven bookings came along. Book a bike, and the new booking is saved in its new home. The old server still runs, untouched. It is your way back until you retire it.
Transkrypcja
This is Harbour Bikes, a real bike rental site. This time it runs on a small Kubernetes cluster of its own, k3s, on one rented machine. Its bookings and bikes live in Postgres, inside that cluster, with their own storage. We will move all of it without taking the site down. In my-app.engineer, open your workspace and go to Setup. Choose Move something you run. Pick the card for your own k3s or k8s cluster. It gives you the same one command. You run it where kubectl works. Here it runs on the cluster's machine. It finds the cluster and gives the Observer a view that can only look. It has no AI and changes nothing. When it is done, it prints a private link to open. Open that link, and your cluster draws itself in 3D. Each shape is something that runs there: the web app, the database and their storage. This panel says what the Observer may do. It only reads, it has no AI, and your data stays on the machine. Back in the platform, make a pairing code. It works once, for fifteen minutes. Type the code into the Observer. Pairing sends a list of your apps, never passwords or data. One more click lets this machine carry out the steps you approve. A restart makes it read only again. The platform now sees your cluster, and everything it found there. Open the migration plan. It shows what moves: the web app, its database and its uploaded files, kept together as one group. And what stays behind, with the reason for each. Choose where it goes: your private workspace. Type the address the shop keeps. Visitors use this one address the whole time. Approve the plan, and the move starts. Now it works through the steps on its own. We cut out the waiting. First the database is copied and loaded into your workspace. Then the uploaded files. The app starts in your workspace. It is sealed, so it cannot reach the outside world yet. Then it tests the copy itself. It answers, and it holds the data. Now the cutover, in four careful steps. First your address goes through the platform, which hands every visit straight back to your cluster. Then shadow. Real visits are replayed on the copy and its answers are thrown away. Visitors are still served by your cluster. Then canary. A small share of real visitors is served by the copy, then more, and every step is watched. Any trouble rolls it back on its own. Then the flip. Your workspace now serves the shop. Scaling down the original is the one step that waits for you. Nothing that big happens on its own. Open the site. At the bottom you can see it is served from your workspace now. The same fifty two bookings came along. Book a bike, and the new booking is saved in its new home. And your own cluster still runs, untouched. It is your way back until you retire it.
Czym jest twoja przestrzeń robocza od strony technicznej
Technicznie każda przestrzeń robocza to odizolowana przestrzeń nazw Kubernetes w naszym klastrze, a od planu Solo może być osobnym, dedykowanym klastrem k3s. Są dwa poziomy, a panel pokazuje, na którym jesteś.
- Wspólny sprzęt (domyślnie, w każdym planie). Twoje aplikacje działają w przestrzeni nazw Kubernetes, która w klastrze platformy należy tylko do ciebie. Dostajesz kubeconfig ograniczony do tej przestrzeni nazw z uprawnieniami
edit: wyświetlanie i sprawdzanie podów oraz ich logów, skalowanie i restartowanie wdrożeń, stosowanie własnych manifestów, przy sprawdzalnym braku dostępu do innych najemców, węzłów klastra i czegokolwiek, co pozwoliłoby podnieść uprawnienia. Izolację sprawdzono przed udostępnieniem. - Prywatna przestrzeń robocza (od planu Solo). W pełni oddzielny klaster k3s z własnym serwerem API i własnymi węzłami, dostępny przez twoje prywatne połączenie Tailscale. Nic nie jest z nikim współdzielone. Na tym poziomie twoje urządzenia dołączają jako pełnoprawne węzły (zobacz Maszyny) i tu
kubectl get nodespokazuje maszyny, które podłączasz samodzielnie.
W obu przypadkach to standardowy Kubernetes dostępny przez standardowy kubeconfig, a nie zamknięte pudełko z API przypominającym Kubernetes.
Pobierz kubeconfig
- Otwórz zakładkę Przestrzeń robocza w panelu.
- Otwórz Konfigurację i wybierz „Pracuj z kubectl”. To trzecia opcja u góry strony.
- Kliknij Pobierz kubeconfig. Dostaniesz plik
my-app.kubeconfig. Nie udostępniaj go nikomu: to twoje dane uwierzytelniające.
$ export KUBECONFIG=~/Downloads/my-app.kubeconfig
$ kubectl get deploy,svc,pvc
$ kubectl logs deploy/<your-app> -f
$ kubectl scale deploy/<your-app> --replicas=2
W swojej przestrzeni możesz zrobić wszystko, co potrafi kubectl: przeskalować wdrożenie, czytać logi, przekierować port do bazy danych, stosować własne manifesty. Helm też działa: potrzebuje tylko kubeconfig. W prywatnej przestrzeni roboczej ten sam plik daje też widok całego klastra (kubectl get nodes).
Z dużymi możliwościami wiąże się zwykłe zastrzeżenie: jeśli usuniesz wdrożenie utworzone przez agentów, aplikacja nie będzie działać, dopóki ty albo agenci jej nie odtworzycie. Platforma nie cofa po cichu tego, co robisz przez kubectl.
Co jest w twojej przestrzeni nazw
- Twoje aplikacje: po jednym obiekcie Deployment i Service na aplikację, z Ingressem, który odpowiada pod adresem
<app>.<your-username>.my-app.engineeri pod każdą podłączoną własną domeną. - Bazy danych: gdy aplikacja potrzebuje bazy, agenci dodają w twojej przestrzeni nazw Postgresa z trwałym woluminem. Możesz się do niego podłączyć przez
psql, przekierowując port. - Zainstalowane narzędzia: każde narzędzie przestrzeni roboczej działa w twojej przestrzeni, pod własnym bezpiecznym adresem dostępnym tylko dla ciebie.
- Sekrety: klucze API przekazane aplikacji są przechowywane jako obiekty Secret Kubernetes w twojej przestrzeni nazw. Sekrety platformy przypisane do użytkownika są szyfrowane w spoczynku (zobacz politykę prywatności).
Gdzie jest twój kod
Każda aplikacja to prywatne repozytorium git pod adresem gitlab.my-app.engineer/tenants/<your-username>/<app>. Agenci zapisują tam commity w trakcie budowania; możesz je sklonować, czytać i wypychać do niego zmiany. Przestrzeń robocza, w której pracują agenci (pliki widoczne w IDE w przeglądarce), jest przechowywana na zaszyfrowanym magazynie blokowym i odzwierciedlana w tym repozytorium.
Odejście albo zabranie wszystkiego ze sobą
Twój kod jest w standardowych repozytoriach git. Twoja aplikacja to standardowe manifesty Kubernetes w przestrzeni nazw, którą możesz przeglądać przez kubectl. Twoja baza danych to zwykły Postgres, z którego zrzut zrobisz znanymi ci narzędziami. Między tobą a twoją pracą nie ma żadnego zamkniętego formatu. Rekordy konta można po zalogowaniu wyeksportować jako JSON pod adresem GET /api/me/export, a Usuń przestrzeń roboczą na zawsze w panelu usuwa całe środowisko konta.