DemandFlow Support Centre

K8SSA: K8s Service Account

ReferenceEntity Reference16/04/2026Updated 16/04/2026
A Kubernetes ServiceAccount providing an identity for processes running in pods, with associated secrets and RBAC bindings.

K8SSA: K8s Service Account

A Kubernetes ServiceAccount providing an identity for processes running in pods, with associated secrets and RBAC bindings.

Default definition. This article describes the default K8SSA definition shipped with DemandFlow. Administrators can add, remove, rename, or re-type fields, change which ones are required, and alter the layout from the Definitions screen in Settings. Your tenant's current schema may differ from what is shown here. To read the current definition at any time, GET the DEFINITION object whose id matches K8SSA.

Entity properties

PropertyValue
Entity codeK8SSA
Display nameK8s Service Account
PluralK8s Service Accounts
Level413

Use cases

K8SSA models the Kubernetes ServiceAccount resource. It links to a namespace via objectLookup. The automountToken checkbox controls whether pods using this SA automatically mount the API token.

Fields

Service Account Information

FieldTypeRequiredNotes
nametextYesName
namespacereference → K8SNAMESPACEYesNamespace
descriptiontext (multi-line)Description
automountTokenbooleanAutomount API Token

Metadata

FieldTypeRequiredNotes
labelstext (multi-line)Labels
annotationstext (multi-line)Annotations

Secrets

FieldTypeRequiredNotes
secretstext (multi-line)JSON array of secret references
secretCountnumberSecret Count Read only.

Image Pull Secrets

FieldTypeRequiredNotes
imagePullSecretstext (multi-line)JSON array of image pull secret names

Relationships

  • Lookups: namespace points at a K8SNAMESPACE record.
  • Related lists: K8SROLEBINDING (format SUB|K8SSA), K8SWORKLOAD.

Creating a K8s Service Account via the API

POST /v1/objects
Authorization: Bearer <your-pat>
Content-Type: application/json

{
  "entity":   "K8SSA",
  "level":    413,
  "comboKey": "SUB:<your-sub-id>|ENT:",
  "name": "Example",
  "namespace": "",
  "description": "Example text.",
  "automountToken": false
}

Listing K8s Service Accounts records

# All k8s service accounts in your tenant
GET /v1/entities/K8SSA/SUB

See also

k8ssak8sserviceaccountaccountsentity reference

Was this article helpful?

← Back to Knowledge Base