Skip to content

K8sPolicy

Contexts

Context Relationship Object Path Package File Path
Database.Shard.Dap.Instances Package -> Database -> Shard -> Dap -> Instances -> K8sPolicy $.databases[*].shards[*].daps.instances.*.k8sPolicy {package-root}/databases/{db-name}/shards/{shard-name}.yaml
Database.Shard.Sequencer Package -> Database -> Shard -> Sequencer -> K8sPolicy $.databases[*].shards[*].sequencers.*.k8sPolicy {package-root}/databases/{db-name}/shards/{shard-name}.yaml
Database.Shard.Sm Package -> Database -> Shard -> Sm -> K8sPolicy $.databases[*].shards[*].sm.k8sPolicy {package-root}/databases/{db-name}/shards/{shard-name}.yaml
Pipeline.Controller Package -> Pipeline -> Controller -> K8sPolicy $.pipelines[*].controller.k8sPolicy {package-root}/pipelines/{pipeline-name}.yaml
Pipeline.Worker Package -> Pipeline -> Worker -> K8sPolicy $.pipelines[*].worker.k8sPolicy {package-root}/pipelines/{pipeline-name}.yaml
Router.Agg Package -> Router -> Agg -> K8sPolicy $.router.agg.k8sPolicy {package-root}/router/{router-name}.yaml
Router.Rc Package -> Router -> Rc -> K8sPolicy $.router.rc.k8sPolicy {package-root}/router/{router-name}.yaml

Fields

Field Type Required Description Constraints Default
affinity Affinity | null no The affinity feature consists of two types of affinity, "node affinity" and "inter-pod affinity/anti-affinity". Node affinity is like the existing nodeSelector, while inter-pod affinity/anti-affinity constrains against pod labels rather than node labels. - null
nodeSelector map<string, string > | null no Set specific node key-values. It specifies a map of key-value pairs. For the pod to be eligible to run on a node, the node must have each of the indicated key-value pairs as labels (it can have additional labels as well). - null
podSecurityContext PodSecurityContext | null no Security Context to apply to Instance Pod PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext. - null
resources Resources | null no Set Container resource request/limits - null
securityContext SecurityContext | null no Container Security Context holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence. - null
serviceAccount string | null no Service Account to be used for component pattern: "^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$", max length: 253 null
serviceAccountConfigure ServiceAccountConfigure | null no Auto Create Service Account and mount Token - {"create": true}
terminationGracePeriodSeconds integer | null no This grace period applies to the total time it takes for both the PreStop hook to execute and for the Container to stop normally min: 0 null
tolerations array<Toleration> | null no Tolerations are applied to pods, and allow (but do not require) the pods to schedule onto nodes with matching taints. - null

Used In

Back to top