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

Oracle Cloud cluster #507

Open
alekitto opened this issue Feb 10, 2023 · 4 comments
Open

Oracle Cloud cluster #507

alekitto opened this issue Feb 10, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@alekitto
Copy link

Hi everyone,
Thanks for your work on this project!

Is it possible to add a cluster deployed on Oracle Cloud? Does it need a completely new authentication mechanism or can be added through one of the already implemented ones?

@ricoberger
Copy link
Member

Hi @alekitto, sorry I'm not very familiar with Oracle Cloud. If I get it right from the documentation they are using sth. like the following for the authentication right?

user:
  exec:
    apiVersion: client.authentication.k8s.io/v1beta1
    args:
    - ce
    - cluster
    - generate-token
    - --cluster-id
    - <cluster ocid>
    - --profile
    - <profile-name>
    command: oci
    env: []

If this is the case we would have to implement a new provider for it.

@ricoberger ricoberger added the enhancement New feature or request label Feb 14, 2023
@alekitto
Copy link
Author

Hi @ricoberger!
Correct! With some guidance I can try to implement a new provider myself if it's ok, I just need a starting point (ex: a similar provider to see how it is working).

@ricoberger
Copy link
Member

That would be awesome, I think a good starting point could be the Azure Provider, which is implemented in the following files:

Another good example is the GCP plugin, when no Go code is required to get the clusters / access token:

To store the provider configuration the following file must be adjusted https://github.com/kubenav/kubenav/blob/main/lib/models/cluster_provider.dart

I can also assist with the implementation or take over some parts. Since I'm not familiar with Oracle the following points would be good to know:

  • Which information must be provided by a user
  • Which API endpoints can be used to get the credentials and clusters based on the provided user information

@euh2
Copy link

euh2 commented Jun 12, 2023

You can add a serviceaccount and add it to your kubeconfig. Details described here..
This works fine with kubenav :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants