Skip to content
New issue

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

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

Already on GitHub? # to your account

feat: add OCI CAPI #4

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

feat: add OCI CAPI #4

wants to merge 5 commits into from

Conversation

BobyMCbobs
Copy link
Member

@BobyMCbobs BobyMCbobs commented Aug 28, 2024

adds CAPI for OCI.

TODO

  • add Talos support

adds CAPI for OCI
@BobyMCbobs
Copy link
Member Author

For some reason getting

  Normal   OwnerRefNotSet           4m26s (x4 over 4m26s)   ocimachine-controller  Cluster Controller has not yet set OwnerRef
  Normal   WaitingForBootstrapData  3m53s (x4 over 4m26s)   ocimachine-controller  Bootstrap data secret reference is not yet available
  Warning  ReconcileError           3m17s (x13 over 3m40s)  ocimachine-controller  Instance  has invalid lifecycle state TERMINATING
  Warning  ReconcileError           2m15s (x4 over 2m56s)   ocimachine-controller  Instance  has invalid lifecycle state TERMINATED

@hh
Copy link

hh commented Aug 30, 2024

How did this work?

@BobyMCbobs
Copy link
Member Author

How did this work?

@hh, good question!

It's quite fast by the seems.
Currently figuring out the talos bootstrap portion. Trying to provide the nodes with public IPs to enable this but since setting nodes to have public IPs the nodes delete not long after creation which is certainly strange.

adds a public IP to each controlplane node
@BobyMCbobs
Copy link
Member Author

BobyMCbobs commented Sep 1, 2024

Managed to get public IPs to work.
Current issue is that public IPs are never exported to OCIMachine status, which will plumb the data to the Talos CA.
With the current state, a bootstrap will never be able to be performed.
A public node IP in the CA is required to talk to the Talos API.

Created a ticket: oracle/cluster-api-provider-oci#379

@BobyMCbobs
Copy link
Member Author

Alternate fix to the above is to bootstrap from an OCI machine to talking to OCI.

- command for getting resources
- command for deleting the cluster
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants