- On this machine. It runs as a container named
rk-observeron a Linux host you already have, and reads with the Google Cloud credentials on that host. - A new Compute Engine instance. The installer creates an
e2-microinstance, a service account and the network it needs.
Install
In the console, open Environments, click Connect and pick Google Cloud. Copy the key from step 2 of the dialog. Then follow one path.- On this machine
- A new Compute Engine instance
You need a Linux host with outbound access to The dialog shows the command without
api.rubixkube.ai:443, nats.rubixkube.ai:4222, ghcr.io:443 and the Google APIs. The installer installs Docker if it’s missing, on systems with apt-get, dnf or yum.This path doesn’t create a service account or enable any APIs. Enable the APIs under Permissions, and give the credentials the roles listed there.1
Sign in as root
The installer runs as root and mounts root’s
~/.config/gcloud into the container.2
Run the installer as root
sudo. Add it unless you’re already root.3
Answer the questions
Paste your RubixKube key, then:
4
Check the container
What the observer watches
It refreshes the inventory every 10 minutes, metrics every 2 minutes and logs every 5 minutes.
Permissions
The observer needs these roles on the project. A new instance gets them on its service account:roles/compute.viewerroles/monitoring.viewerroles/logging.viewerroles/cloudsql.viewerroles/run.viewerroles/cloudfunctions.viewerroles/container.viewerroles/pubsub.viewerRKObserverStorageViewer, a custom role withstorage.buckets.getandstorage.buckets.list
roles/logging.viewer lets it read log contents, so check that fits your rules.
These are the APIs the new-instance path enables. Run this yourself if you install on your own machine:
More than one project
Connect each project as its own source. Rubix can read across all of them, and you can put them under one environment label.Troubleshooting
The container isn't running
The container isn't running
/etc/rk-observer/observer.env, and that outbound api.rubixkube.ai:443 and nats.rubixkube.ai:4222 are open.The installer warned about gcloud credentials
The installer warned about gcloud credentials
It found nothing at
~/.config/gcloud, so the container has nothing to sign in with. Run sudo gcloud auth application-default login, then run the installer again.The installer can't pull the image
The installer can't pull the image
The host can’t reach
ghcr.io. The image is ghcr.io/rubixkube-io/observer-agent:gcp-latest. Allow outbound HTTPS to ghcr.io and run the installer again.Permission errors
Permission errors
Uninstall
Run the installer with--uninstall, so it doesn’t ask for a key. Which steps you follow depends on where the observer runs.
On this machine:
/etc/rk-observer.
On a new Compute Engine instance:
Related pages
Environments
The source page, labels and links.
Kubernetes
See inside your GKE clusters.
Observers
What an observer does and where it runs.
Your first incident
Follow an incident from start to finish.