DemandFlow Support Centre

K8SCONFIGURATION: K8s Configuration

ReferenceEntity Reference16/04/2026Updated 16/04/2026
A Kubernetes ConfigMap or Secret storing configuration data, credentials, or certificates consumed by workloads.

K8SCONFIGURATION: K8s Configuration

A Kubernetes ConfigMap or Secret storing configuration data, credentials, or certificates consumed by workloads.

Default definition. This article describes the default K8SCONFIGURATION 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 K8SCONFIGURATION.

Entity properties

PropertyValue
Entity codeK8SCONFIGURATION
Display nameK8s Configuration
PluralK8s Configurations
Level405

Use cases

K8SCONFIGURATION unifies ConfigMaps and Secrets into a single entity because they share the same lifecycle concerns: creation, mounting, referencing, versioning, and access control. The configType select distinguishes them, while secretType provides the finer-grained Kubernetes secret type taxonomy (Opaque, TLS, docker-config, etc.) only relevant when configType is Secret. The immutable checkbox mirrors the Kubernetes immutable field that prevents accidental changes to critical configs.

Fields

Configuration Information

FieldTypeRequiredNotes
nametextYesConfiguration Name.
namespacereference → K8SNAMESPACEYesNamespace.
configTypeenumYesValid ids: 1 (ConfigMap), 2 (Secret), 3 (PodPreset).
secretTypeenumValid ids: 1 (Opaque), 2 (kubernetes.io/service-account-token), 3 (kubernetes.io/dockercfg), 4 (kubernetes.io/dockerconfigjson), 5 (kubernetes.io/basic-auth), 6 (kubernetes.io/ssh-auth), 7 (kubernetes.io/tls), 8 (bootstrap.kubernetes.io/token).
immutablebooleanPrevent updates to data

Metadata

FieldTypeRequiredNotes
descriptiontext (multi-line)Purpose and usage notes
labelstext (multi-line)Key-value pairs (JSON)
annotationstext (multi-line)Key-value pairs (JSON)
dataCountnumberData Items.
sizeKBnumberSize (KB).

Configuration Data

FieldTypeRequiredNotes
datatext (multi-line)Key-value pairs (JSON or YAML format)
binaryDatatext (multi-line)Base64 encoded binary data (JSON format)
stringDatatext (multi-line)Plain text data (for Secrets, will be encoded)

Used By

FieldTypeRequiredNotes
usedBytext (multi-line)Resources using this configuration
mountedAsarray of enumsValid ids: 1 (Environment Variables), 2 (Volume Mount), 3 (Environment From), 4 (Projected Volume).
lastAccessTimedatetimeLast Accessed.

References

FieldTypeRequiredNotes
referencedWorkloadsarray of textWorkloads.
referencedServicesarray of textServices.
referencedIngressesarray of textIngresses.
volumeMountPathtextWhen mounted as volume

Access Control

FieldTypeRequiredNotes
ownerreference → USOwner.
createdByreference → userCreated By.
createdDatedatetimeCreated Date.
lastModifiedByreference → userLast Modified By.
lastModifieddatetimeLast Modified.

Security Settings

FieldTypeRequiredNotes
encryptionEnabledbooleanEncrypted in etcd
rbacRulestext (multi-line)Access control rules
allowedNamespacesarray of textAllowed Namespaces.
sensitiveDatabooleanContains Sensitive Data.
complianceLevelenumValid ids: 1 (None), 2 (Low), 3 (Medium), 4 (High), 5 (Critical).

Version History

FieldTypeRequiredNotes
versiontextCurrent Version.
revisionNumbernumberRevision Number.
previousVersiontextPrevious Version.
versionHistorytext (multi-line)Change history log
rollbackEnabledbooleanRollback Enabled.
maxVersionsnumberMax Versions to Keep.

Data Validation

FieldTypeRequiredNotes
validationSchematext (multi-line)JSON Schema for validation
validationEnabledbooleanValidation Enabled.
validationStatusenumValid ids: 1 (Valid), 2 (Invalid), 3 (Not Validated).
lastValidationTimedatetimeLast Validation.
validationErrorstext (multi-line)Validation Errors.

External Synchronization

FieldTypeRequiredNotes
externalSourceenumValid ids: 1 (None), 2 (Git Repository), 3 (HashiCorp Vault), 4 (AWS Secrets Manager), 5 (Azure Key Vault), 6 (Google Secret Manager), 7 (External API).
sourceURLtext (URL)Source URL.
syncEnabledbooleanAuto Sync Enabled.
syncIntervalnumberSync Interval (min).
lastSyncTimedatetimeLast Sync Time.
syncStatusenumValid ids: 1 (In Sync), 2 (Out of Sync), 3 (Syncing), 4 (Failed).

Relationships

  • Lookups: namespace points at a K8SNAMESPACE record; owner points at a US record; createdBy points at a user; lastModifiedBy points at a user.
  • Related lists: K8SWORKLOAD.

Creating a K8s Configuration via the API

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

{
  "entity":   "K8SCONFIGURATION",
  "level":    405,
  "comboKey": "SUB:<your-sub-id>|ENT:",
  "name": "Example",
  "namespace": "",
  "configType": "1",
  "secretType": "1"
}

Listing K8s Configurations

# All records in your tenant
GET /v1/entities/K8SCONFIGURATION/SUB:<your-sub-id>

See also

k8sconfigurationk8sconfigurationconfigurations

Was this article helpful?

← Back to Knowledge Base