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

Support Digital Ocean Kubernetes #53

Closed
andycmaj opened this issue Jul 23, 2019 · 3 comments
Closed

Support Digital Ocean Kubernetes #53

andycmaj opened this issue Jul 23, 2019 · 3 comments
Labels

Comments

@andycmaj
Copy link

andycmaj commented Jul 23, 2019

DO kubernetes config uses an ExecCredential.
Any advice on how i could contribute here?

kube config

users:
- name: do-sfo2-async-do-admin
  user:
    exec:
      apiVersion: client.authentication.k8s.io/v1beta1
      args:
      - kubernetes
      - cluster
      - kubeconfig
      - exec-credential
      - --version=v1beta1
      - --context=default
      - {SOME GUID}
      command: doctl
      env: null

exec

basically the result of the exec here is TLS client auth certs.

$ doctl kubernetes cluster kubeconfig exec-credential --version=v1beta1 --context=default {THE GUID FROM ABOVE}

{
  "kind": "ExecCredential",
  "apiVersion": "client.authentication.k8s.io/v1beta1",
  "spec": {},
  "status": {
    "expirationTimestamp": "2019-07-28T17:43:57Z",
    "clientCertificateData": "-----BEGIN CERTIFICATE-----\n*****\n-----END CERTIFICATE-----\n",
    "clientKeyData": "-----BEGIN RSA PRIVATE KEY-----\n*****\n-----END RSA PRIVATE KEY-----\n"
  }
}
@andycmaj
Copy link
Author

note: am able to login using

username: system:serviceaccount:(NAMESPACE):(SERVICEACCOUNT)
token: {SERVICEACCOUNT's service-account-token}

@astefanutti
Copy link
Owner

This relates to #32, as EKS requires support for the exec field from the user Kube config info.

@astefanutti
Copy link
Owner

It should now be supported starting version 0.6.0. Thanks for your patience!

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

No branches or pull requests

2 participants