Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add node affinity and pod anti affinity options #425

Merged
merged 1 commit into from
Aug 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/schemas/ApplicationAdvancedSettings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,21 @@ properties:
type: integer
description: define how long in seconds an application is supposed to be stopped gracefully
default: 60
deployment.affinity.node.required:
type: object
additionalProperties:
type: string
description: Set pod placement on specific Kubernetes nodes labels
deployment.antiaffinity.pod:
type: string
default: Preferred
enum:
- Preferred
- Requirred
description: |
Define how you want pods affinity to behave:
* `Preferred` allows, but does not require, pods of a given service are not co-located (or co-hosted) on a single node
* `Requirred` ensures that the pods of a given service are not co-located (or co-hosted) on a single node (safer in term of availability but can be expensive depending on the number of replicas)
deployment.update_strategy.type:
type: string
enum:
Expand Down
15 changes: 15 additions & 0 deletions src/schemas/ContainerAdvancedSettings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,21 @@ properties:
type: integer
description: define how long in seconds an application is supposed to be stopped gracefully
default: 60
deployment.affinity.node.required:
type: object
additionalProperties:
type: string
description: Set pod placement on specific Kubernetes nodes labels
deployment.antiaffinity.pod:
type: string
default: Preferred
enum:
- Preferred
- Requirred
description: |
Define how you want pods affinity to behave:
* `Preferred` allows, but does not require, pods of a given service are not co-located (or co-hosted) on a single node
* `Requirred` ensures that the pods of a given service are not co-located (or co-hosted) on a single node (safer in term of availability but can be expensive depending on the number of replicas)
deployment.update_strategy.type:
type: string
enum:
Expand Down
7 changes: 6 additions & 1 deletion src/schemas/job/JobAdvancedSettings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ properties:
type: integer
description: define how long in seconds an application is supposed to be stopped gracefully
default: 60
deployment.affinity.node.required:
type: object
additionalProperties:
type: string
description: Set pod placement on specific Kubernetes nodes labels
job.delete_ttl_seconds_after_finished:
type: integer
nullable: true
Expand All @@ -33,4 +38,4 @@ properties:
type: string
default: ""
description: |
Allows you to set an existing Kubernetes service account name
Allows you to set an existing Kubernetes service account name
Loading