Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Add pod anti-affinity to odh-model-controller manifests #849

Conversation

israel-hdez
Copy link
Contributor

Description

Since the manager pod has 3 replicas, the anti-affinity rules are added to prefer (not require) scheduling the replicas in different worker nodes, rather than having replicas on the same node.

How Has This Been Tested?

By deploying using the following KfDef:

apiVersion: kfdef.apps.kubeflow.org/v1
kind: KfDef
metadata:
  name: odh-core
spec:
  applications:
  - kustomizeConfig:
      repoRef:
        name: manifests
        path: odh-common
    name: odh-common
  - kustomizeConfig:
      parameters:
      - name: monitoring-namespace
        value: opendatahub
      repoRef:
        name: manifests
        path: model-mesh
    name: model-mesh
  - kustomizeConfig:
      parameters:
      - name: deployment-namespace
        value: opendatahub
      repoRef:
        name: manifests
        path: modelmesh-monitoring
    name: modelmesh-monitoring
  repos:
  - name: manifests
    uri: https://github.com/israel-hdez/odh-manifests/tarball/add-model-controller-anti-affinity
  version: add-model-controller-anti-affinity

Merge criteria:

  • The commits are squashed in a cohesive manner and have meaningful messages.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work

@openshift-ci openshift-ci bot requested review from Jooho and Xaenalt June 19, 2023 22:59
@Jooho
Copy link
Contributor

Jooho commented Jun 20, 2023

/hold until opendatahub-io/modelmesh-serving#115, opendatahub-io/odh-model-controller#52, opendatahub-io/odh-model-controller#51, another new PR for modelmesh-serving release branch is merged.

@openshift-ci openshift-ci bot added the do-not-merge/hold Hold off on merging (provide reason in comment) label Jun 20, 2023
@bartoszmajsak
Copy link

@Jooho @israel-hdez do you know if there's any automation planned for such changes? I think with all the controllers we have in place that would really be helpful.

@israel-hdez
Copy link
Contributor Author

do you know if there's any automation planned for such changes?

@bartoszmajsak Which changes? I think I'm not following :-)

@israel-hdez
Copy link
Contributor Author

/retest

@bartoszmajsak
Copy link

do you know if there's any automation planned for such changes?

@bartoszmajsak Which changes? I think I'm not following :-)

@israel-hdez ok maybe I should have been a bit more concrete. For example you change RBAC in your controller kubebuilder directives. This results in updating kustomize manifests in the controller repo. Is the update here done manually? I was thinking this could be automated. Or maybe it already is. I'm just lazy and tend to forget things :)

@israel-hdez
Copy link
Contributor Author

I was thinking this could be automated. Or maybe it already is.

OK, now I understand!
Well, I don't know of any automation, nor any planned one. So, it is manual for now.

And I agree automation would be helpful!

@Jooho
Copy link
Contributor

Jooho commented Jun 26, 2023

@bartoszmajsak Yes that is a good point. The main manifests that we are using for modelmesh related repositories are in the modelmesh-serving/opendatahuh/odh-manifests. So I think this kind of copying PR can be automated at some time.
However, we have full of high-priority tasks on the plate so I don't know when we can add this automation properly.

Copy link
Contributor

@Jooho Jooho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci
Copy link

openshift-ci bot commented Jun 26, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Jooho

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Jooho
Copy link
Contributor

Jooho commented Jun 27, 2023

/unhold

@openshift-ci openshift-ci bot removed the do-not-merge/hold Hold off on merging (provide reason in comment) label Jun 27, 2023
@openshift-merge-robot openshift-merge-robot merged commit 1e4ea43 into opendatahub-io:master Jun 27, 2023
@israel-hdez israel-hdez deleted the add-model-controller-anti-affinity branch June 27, 2023 19:47
israel-hdez added a commit to israel-hdez/odh-manifests that referenced this pull request Jul 3, 2023
Jooho added a commit to red-hat-data-services/odh-manifests that referenced this pull request Jul 5, 2023
Add pod anti-affinity to odh-model-controller manifests (opendatahub-io#849)
Jooho pushed a commit to Jooho/odh-manifests that referenced this pull request Jul 5, 2023
Jooho added a commit to red-hat-data-services/odh-manifests that referenced this pull request Jul 5, 2023
[Cherry Pick] Add pod anti-affinity to odh-model-controller manifests (opendatahub-io#849)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants