question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

kcli create kube generic doesn't work ootb

See original GitHub issue
$ kcli create kube generic -P masters=3 -P workers=2 mycluster
Using 192.168.122.253 as api_ip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 42.0M  100 42.0M    0     0  15.1M      0  0:00:02  0:00:02 --:--:-- 15.1M
Deploying Images...
Using url https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2...
Grabbing image centos7...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  819M  100  819M    0     0  12.3M      0  0:01:06  0:01:06 --:--:-- 12.7M
Image centos7 Added
Adding a profile named local_centos7 with default values
Deploying Vms...
mycluster-master-0 not deployed because you don't have image centos7
mycluster-master-1 not deployed because you don't have image centos7
mycluster-master-2 not deployed because you don't have image centos7

$ kcli create kube generic -P masters=3 -P workers=2 mycluster
Using 192.168.122.253 as api_ip
Please remove existing directory clusters/mycluster first...

$ ls -ltrhaZ /var/lib/libvirt/images/CentOS-7*
-rw-rw-r--. 1 edu edu unconfined_u:object_r:virt_image_t:s0 819M Aug 25 11:50 /var/lib/libvirt/images/CentOS-7-x86_64-GenericCloud.qcow2

$ kcli list profiles | grep centos7
| local_centos7 | 2cpus 512Mb ram  | default |   10  |           CentOS-7-x86_64-GenericCloud.qcow2           | default |    True   |  True  |   False    |    False    |

$ kcli version
version: 99.0 commit: f7b81f4 Available Updates: False

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
karmabcommented, Aug 25, 2020

while i fix this side effect of https://github.com/karmab/kcli/commit/163bc2d3bab82f9e8a9ce03ba33352c1c6637338, note you can workaround it by specifying a valid image, for instance with a parameter file, or adding -P image=CentOS-7-x86_64-GenericCloud.qcow2 to your command line invocation

0reactions
karmabcommented, Sep 4, 2020

so it worked(yeah!) but as stated in the doc, you need to use sshuttle or routing if can access those vms directly Alternatively you can target a bridge network

El El vie, 4 sept 2020 a las 16:16, Eduardo Mínguez < notifications@github.com> escribió:

$ kcli ssh mycluster-master-0 “hostname”

Warning: Permanently added ‘192.168.122.114’ (ECDSA) to the list of known hosts.

mycluster-master-0.karmalabs.com

👀

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/karmab/kcli/issues/222#issuecomment-687172767, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOBKA7DSSXDW22P6KNZSBTSEDZDHANCNFSM4QKOT7QA .

– Karim,

Read more comments on GitHub >

github_iconTop Results From Across the Web

About — Kcli 99.0 documentation
kcli configuration is done in ~/.kcli directory, that you need to manually create. It will contain: config.yml generic configuration where you declare ...
Read more >
KCLI - the only tool you will need to create Kubernetes and ...
Create a Kubernetes cluster. Use the following command to create a single node K8s cluster on Ubuntu 20.04 kcli create kube generic -P...
Read more >
kcli - Read the Docs
Repository. https://github.com/karmab/kcli.git. Project Slug. kcli. Last Built. 6 hours, 11 minutes ago passed. Maintainers. Badge. reStructuredText.
Read more >
Selenoid: Selenium Hub Successor Running Browsers within ...
Selenoid was initially created to be deployed on hardware servers or virtual machines and is not suitable for Kubernetes. Detailed motivation is described...
Read more >
C++ talks - GitHub Pages
Computers make it easier to do a lot of things, but most of the things they ... AGL as a generic secured industrial...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found