DSS Preflight Container
Summary
Pulls Knowledge Modules artifacts from cloud storage buckets, to saturate OpenCDS per-instance in-memory database prior to accepting incoming requests for optimal performance and stability.
Attributes
Type
Init
Name
dss-preflight
Image
dss-preflight
Image Pull Policy
Always
Command
Arguments
Port
Security Context
Allow Privilege Escalation:
false
Endpoints
External-to-Cluster
This container does not have any external-to-cluster exposed endpoints.
Internal
This container does not have any internal endpoints.
Environment Variables
All environment variables, unless otherwise indicated, are considered required.
OpenCDS-related Configuration
POD_UID Downward API
To uniquely identify DSS pods in the Document database, which is leveraged for maintaining synchronization of authored Knowledge Modules between the authoring and reportability environments, we use the Kubernetes Downward API to consistently provide a unique identifier to multiple containers.
Accepted Value
Please refer to this Terraform Kubernetes Pod Resource stub for the desired Downward API field to set for this environment variable:
WORKLOAD_VARIANT
Not all Knowledge Modules are required in all environments. This variable influences which Knowledge Modules are pulled from the attached cloud storage bucket, and are ultimately populated in the primary DSS Container.
Accepted Values
productionremoves allTESTartifacts from the volume mount.This value should be set in all production reportability environments.
stagingremoves allTESTartifacts from the volume mount.While the end result is the same as
production, this value is reserved for potential future use cases, and should only be set in non-production reportability environments.
authoringincludes allTESTandPRODUCTIONartifacts from the volume mount.This value should be set in all authoring environments.
Knowledge Module Storage Bucket Connectivity
MOUNTED_VOLUME_PATH
Define the container-relative path for Knowledge Module artifacts to be populated into.
Accepted Values
Should exactly match the Volume Mount for this container.
AWS-specific Configuration
AWS_DEFAULT_REGION
Required by the AWS CLI. Sets the default region for CLI invocations.
Refer to document on configuration via environment variables for more information.
Accepted Values
Any valid AWS region slug, e.g.
us-east-1; should correspond with the region of the Knowledge Module storage bucket on AWS.
AWS_ACCESS_KEY_ID
IAM access key ID, used to programmatically authenticate against AWS resources.
Refer to document on configuration via environment variables for more information.
Accepted Values
Any active access key associated with an IAM role or principal.
AWS_SECRET_ACCESS_KEY Secret
IAM access key secret, used to programmatically authenticate against AWS resources.
Refer to document on configuration via environment variables for more information.
Accepted Values
Any active access key associated with an IAM role or principal.
GCP-specific Configuration
GKE_WORKLOAD_IDENTITY_ENABLED
Feature flag for GCP-specific sync script. With GKE Workload Identity enabled, we do not need to define additional environment variables related to authenticating against the Knowledge Module storage bucket.
Accepted Values
trueto disable deprecated way of authenticating with Cloud Storage buckets.An empty string or otherwise undefined value will require defining
GCP_PROJECT_ID,GCP_SA_KEYFILE, andGCP_SA_NAMEvariables, which is no longer the preferred approach given the many benefits of using Workload Identity.
Intra-mesh Connectivity
OUS_REGISTRATION_ENDPOINT
Define the Kubernetes Service endpoint for OUS interactions.
Accepted Values
Any valid URL, including protocol, hostname, port (optionally inferred by protocol), and path set to
/dss-init. For example,http://ous.prd.svc.cluster.local:80/dss-initwould be considered an acceptable value for a service resource namedous, in theprdnamespace, with a service port of80and the proper path value of/dss-init.
Probes
Liveness
This container does not utilize liveness probes.
Readiness
This container does not utilize readiness probes.
Startup
This container does not utilize startup probes.
Resources
250
512
N/A
500
512
N/A
Technology Stack
A simple container containing 2 bash scripts that invoke cloud-platform specific CLIs to perform read operations on cloud storage buckets.
Volume Mounts
dss-pf
/data/dss-preflight-sync
Workload Identity
Container does not require access to external-to-cluster resources.
Code Owners
Last updated