# Token for App agents that join the cluster via the GCE/GKE metadata server.
# Pin projectIDs and serviceAccounts to the exact identity the agent presents.
apiVersion: almaforge.com/v1
kind: Token
metadata:
  name: app-agent
spec:
  roles:
    - system:app # Token is only valid for agents joining as App services.
  gcp: # Presence of this block selects the GCE/GKE metadata-server join method.
    allow:
      - projectIDs:
          - 'my-project' # GCP project hosting the agent.
        serviceAccounts:
          - 'agent@my-project.iam.gserviceaccount.com' # Service account the agent runs as (Workload Identity on GKE).
