oxidecomputer / oxidecomputer/cluster-api-provider-oxide

Manage Anti-Affinity Groups for the Control Plane

Open
#67 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement Kubernetes Cluster API Provider
Dominant language
Go
Stars
2
Forks
1
Avg merge
3h 57m
Merged PRs (30d)
6

Description

Currently, users of CAPOx can reference an existing anti-affinity group, but it would need to be created by something external (like a terraform config). Since anti-affinity groups are very light resources with a policy that support best-effort placement, CAPOx should create and manage an anti-affinity group for control plane instances.

OxideCluster can have an additional field:

spec.controlPlaneAntiAffinityPolicy: allow|fail (unset = disabled)

This would result in the OxideCluster Controller creating the anti-affintiy group with the specified policy and placing a reference in the status of the resource.

The Machine controller would:

  1. Check if the machine is a control plane node
  2. Retrieve the owning OxideCluster of the Machine and check the anti-affinity resource from the status.
  3. Launch the CP instance in the anti-affinity group

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the OxideCluster Controller and Machine controller entry points. Trace how OxideCluster spec and status fields are defined and reconciled, then follow how control-plane Machines launch instances. Done means the configured policy creates and manages an anti-affinity group, its reference appears in status, and control-plane instances launch in that group.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.