Skip to content

[Installer] Set affinity for all workloads #6842

@kylos101

Description

@kylos101

Is your feature request related to a problem? Please describe

Set affinity for all workloads in Installer

Describe the behaviour you'd like

Below you will find a list of pods.

Each is grouped into a section where those pods types should have a common affinity.

Currently, I think the Installer sets affinity for agent-smith, registry-facade, and ws-daemon.

This list was built with @csweichel .

# these should be gitpod.io/workload_meta pod/content-service-868cc867fd-zwv2q 1/1 Running 0 128m 10.96.6.43 gke-core-dev-meta-0-425e62fc-814l <none> <none> pod/dashboard-7f5cf48cdc-k97zn 1/1 Running 0 128m 10.96.6.19 gke-core-dev-meta-0-425e62fc-814l <none> <none> pod/messagebus-0 1/1 Running 0 129m 10.96.5.60 gke-core-dev-meta-0-425e62fc-2v59 <none> <none> pod/mysql-0 1/1 Running 0 100m 10.96.2.103 gke-core-dev-meta-0-425e62fc-k3f3 <none> <none> pod/proxy-9bc568848-nwg94 2/2 Running 0 128m 10.96.6.39 gke-core-dev-meta-0-425e62fc-814l <none> <none> pod/ws-manager-bridge-fdfb9846c-d87kr 2/2 Running 0 128m 10.96.5.52 gke-core-dev-meta-0-425e62fc-2v59 <none> <none> pod/server-7fb995c966-gs28w 2/2 Running 0 128m 10.96.5.14 gke-core-dev-meta-0-425e62fc-2v59 <none> <none> # these should be gitpod.io/workload_meta pod/image-builder-75d69548b5-sb9cs 3/3 Running 0 125m 10.96.0.31 gke-core-dev-workspace-0-068e0fea-f7xp <none> <none> pod/image-builder-mk3-6d48f9cbd8-ks9l6 2/2 Running 0 125m 10.96.0.35 gke-core-dev-workspace-0-068e0fea-f7xp <none> <none> # these should be gitpod.io/workload_ide pod/openvsx-proxy-0 2/2 Running 0 130m 10.96.3.58 gke-core-dev-meta-0-425e62fc-3t9k <none> <none> pod/openvsx-proxy-1 2/2 Running 0 100m 10.96.11.16 gke-core-dev-meta-0-425e62fc-qgs4 <none> <none> # this should be gitpod.io/workload_workspace_services pod/minio-67c87df88c-lrn57 1/1 Running 0 128m 10.96.6.58 gke-core-dev-meta-0-425e62fc-814l <none> <none> # this should be gitpod.io/workload_workspace_services pod/ws-manager-b4c6c7df4-kdzhv 2/2 Running 0 128m 10.96.7.16 gke-core-dev-meta-0-425e62fc-zfd2 <none> <none> pod/ws-proxy-6cfb8b7d67-svd7z 2/2 Running 0 128m 10.96.5.13 gke-core-dev-meta-0-425e62fc-2v59 <none> <none> pod/ws-scheduler-686898dd8c-fmd6b 2/2 Running 0 128m 10.96.3.37 gke-core-dev-meta-0-425e62fc-3t9k <none> <none> pod/blobserve-5466cf595-xrfnp 2/2 Running 0 125m 10.96.0.25 gke-core-dev-workspace-0-068e0fea-f7xp <none> <none> # these include gitpod.io/workload_workspace_regular and gitpod.io/workload_workspace_headless currently and are good pod/registry-facade-zh66p 2/2 Running 0 108m 10.96.0.9 gke-core-dev-workspace-0-068e0fea-f7xp <none> <none> pod/ws-daemon-65prz 2/2 Running 0 108m 10.96.0.2 gke-core-dev-workspace-0-068e0fea-f7xp <none> <none> pod/agent-smith-nkbtg 2/2 Running 0 108m 10.96.0.38 gke-core-dev-workspace-0-068e0fea-f7xp <none> <none> # we do not have to set affinity for ghosts or workspaces # ws-manager determines affinity given the template in the workspace pod/ghost-247f9d3d-44c5-4992-8faa-0c82a475507a 1/1 Running 0 56s 10.96.0.181 gke-core-dev-workspace-0-068e0fea-f7xp <none> <none> ws-53887044-53d4-4412-9646-3d2d0512b5e2

Describe alternatives you've considered

n/a

Additional context

This was found while analyzing these settings for getting the Installer to build preview environments. This is not a requirement to get the Installer to work in core-dev, it's a nice to have for the long term.

CC: @mrsimonemms as a heads up

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions