how to deploy kuberdock hassle-free

20
HOW TO DEPLOY KuberDock hassle- free

Upload: cloudlinux

Post on 12-Jan-2017

404 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: How to deploy KuberDock hassle-free

HOW TO DEPLOY KuberDock hassle-free

Page 2: How to deploy KuberDock hassle-free

KuberDock + cPanel + WHMCS

PLUGIN

API <WHMCS>/includes/api.php

CLI utility (KCLI) MASTER SERVER

Billing controlPOD control

Page 3: How to deploy KuberDock hassle-free

• Choose deploy without CEPH if you don’t want to maintain CEPH-cluster.• Choose deploy with CEPH if you want to provide better reliability for users’ data.• AWS deployment is described at http://docs.kuberdock.com/amazon_aws_installation_guide.htm

How to deploy KuberDock Master

[root@194-44-0-145 ~]# yum install wget

[root@194-44-0-145 ~]# wget http://repo.cloudlinux.com/kuberdock/deploy.sh

[root@194-44-0-145 ~]# bash ./deploy.sh

JUST 3 COMMANDS ARE REQUIRED TO DEPLOY KUBERDOCK MASTER

More detailed info about Master installation options can be found at

http://docs.kuberdock.com/master_installation_guide.htm

Page 4: How to deploy KuberDock hassle-free

How to choose backend for flanneld – networking setup

More detailed info about each backend can be found here

https://github.com/coreos/flannel#backends

As of KuberDock 1.1 flanneld is used to set up networking.

Three different backends are supported:

• Vxlan backend. (use during KD master deploy) It allows to connect hosts that

has no direct L2 connectivity. If vxlan backend is used, kernel uses UDP port 8472 for sending

encapsulated packets.

• Host-gw backend is only for cases where you know that all hosts that could be connected to KD cluster has direct L2 connectivity with KD. This is a default backend for KuberDock version 1.1.

• AWS-VPC backend is only for AWS environment as it uses a native AWS mechanisms for routing. It is

automatically chosen at deploy time in AWS environments unless another backend is explicitly set.

~$ deploy.sh –vxlan-backend

Igor Seletskiy
given that we are switching to new networking backend... not sure.
Vitalii Stavropolskyi
My opinion, we should talk about flannel as long as we have not switched
Page 5: How to deploy KuberDock hassle-free

https://www.youtube.com/watch?v=4jjYubmGkS4

Video: installing KD Master

Page 6: How to deploy KuberDock hassle-free

Adding new Node is pretty simple - create

keys using ssh-keygen, and place them to

a Node. Then just enter Name and select

Kube type in KuberDock UI.

Node installation

ssh-copy-id -i /var/lib/nginx/.ssh/id_rsa.pub root@your_node

More detailed info about Master installation options can be found at

http://docs.kuberdock.com/node_installation_guide.htm

Page 7: How to deploy KuberDock hassle-free

If everything is ok with node installation the status of nodes will change from PENDING to RUNNING

Node installation - contd

Vitalii Stavropolskyi
The same text as on the previous slide?
Page 8: How to deploy KuberDock hassle-free

If you need to access your services

from the outside - use IP Pool.

New users can be added and edited

in few clicks. It’s so easy to manage

users and track their activity

Managing IPs and users

Page 9: How to deploy KuberDock hassle-free

https://youtu.be/eu7YXZS84Kw

Video: Integrating billing system (WHMCS) with KuberDock - installing addon

Page 10: How to deploy KuberDock hassle-free

https://youtu.be/8YjKhdcvw9Y

Video: Integrating billing system (WHMCS) with KuberDock - adding packages

Page 11: How to deploy KuberDock hassle-free

• Set Billing type while editing Product/Service to set billing type: PAYG or Fixed price:

o PAYG(Pay as you go) – user can start his pod or application without immediately paying for it. The payment will be performed as soon as WHMCS gets statistic data (each 24 hours).

o Fixed price – user needs to pay before using application.

WHMCS - pricing options

Page 12: How to deploy KuberDock hassle-free

https://youtu.be/sW5qNHlb224

Video: Integrating billing system (WHMCS) with KuberDock - setting up Kube types to supply apps with resources to run

Page 13: How to deploy KuberDock hassle-free

https://www.youtube.com/watch?v=Nnlfsld2NCw

Integrating cPanel with KuberDock

Page 14: How to deploy KuberDock hassle-free

https://www.youtube.com/watch?v=c87nBFKmhYY

Adding PA to cPanel

Vitalii Stavropolskyi
we should play this video without sound
Oleksandr Parubochyi
Yes, I will remove the audio track
Page 15: How to deploy KuberDock hassle-free

https://www.youtube.com/watch?v=32jrXbPMYEI

Starting PA from cPanel

Igor Seletskiy
if I remember right, this has changed a bit.
Page 16: How to deploy KuberDock hassle-free

• Predefined applications are defined in

KuberDock UI by admin the same way as

they are defined in control panel.

• Users can still be added automatically by

billing system.

• Users login to KuberDock UI and launch

predefined applications.

Using KuberDock WITHOUT

control panel

Page 17: How to deploy KuberDock hassle-free

Using KuberDock without Billing:

open Settings page by Administrator and select “No Billing” in “Select your billing

system” dropdown menu.

All price are set to 0 when using KuberDock without billing. There are no checks whether user have money or not - pod is just instantly created and started.

How to use KuberDock without billing

Page 18: How to deploy KuberDock hassle-free

KuberDock + cPanel + WHMCS

PLUGIN

CLI utility (KCLI) MASTER SERVER

Billing controlPOD control

API <WHMCS>/includes/api.php

Page 19: How to deploy KuberDock hassle-free

THANK YOU!Alexandre Parubochyi,

Sales Engineer for KuberDock Project

[email protected] docs.kuberdock.com

kuberdock.com

Page 20: How to deploy KuberDock hassle-free

Q&A

Twitter.com/KuberDockVisit CloudLinux.com/kuberdock