KubeOps

Open Source AirGap Kubernetes-Distribution

KubeOps - Getting Started

Kubeopsctl

Kubeopsctl is a CLI application written in Go for creating a single control-plane Kubernetes cluster or a high-availability Kubernetes cluster

Requirements

  1. CentOS 7
  2. Docker image
    registry.kubernative.net/kubernative/kubeopsctl/kubernetes:1.16.4 from the public registry registry.kubernative.net.
  3. Install kubeopsctl

How to install Kubeopsctl

  1. Download the image with the kubernetes version 1.16.4 from the public registry registry.kubernative.net
  2. Download the binary file kubeopsctl from: http://www.kubernative.net/de/distribution1/kubeops

How to use Kubeopsctl to create a kubernetes cluster

  1. Set $KUBEOPSROOT variable
    export KUBEOPSROOT=/root/myProject/
    echo $KUBEOPSROOT

  2. Run init command
    kubeopsctl init mycluster
    (The init command creates your cluster directory mycluster in $KUBEOPSROOT.)

  3. Run edit command to change the variables in the configuration file
    kubeopsctl edit mycluster
    (The command opens the default clusterconfig.yml with the vi editor.)

  4. Run create command to create a cluster
  1. Create a cluster with only one master
    kubeopsctl create mycluster
    (This command creates your kubernetes cluster with one master master1.)

  2. Create a cluster with two masters
    If you want to add another master (master2) to the cluster, use the add master command:
    kubeopsctl add master mycluster -n master2 --ip 10.2.1.2 -u root -p admin123456
    (This command creates your kubernetes cluster with two masters: master1 and master2.)

  3. Create a cluster with one master and one node
    If you want to add the node (node1) to the cluster, use the add node command:
    kubeopsctl add node mycluster -n node1 --ip 10.2.1.51 -u root -p admin123456
    (This command creates your kubernetes cluster with two nodes: master1 and node1.)

  4. Create a cluster with two masters and two nodes
  • add master2:
    kubeopsctl add master mycluster -n master2 --ip 10.2.1.2 -u root -p admin123456

  • add node1
    kubeopsctl add node mycluster -n node1 --ip 10.2.1.51 -u root -p admin123456

  • add node2
    kubeopsctl add node mycluster -n node2 --ip 10.2.1.51 -u root -p admin123456

    (The commands create your kubernetes cluster with four nodes: master1, master2, node1 and node2.)

Known issues

  1. The command kubeopsctl get <clustername>:
    The command has the same return as the command kubeopsctl get if the <clustername> doesn`t exists.

  2. The command kubeopsctl edit <clustername>:
    If the clusterconfig.yml is not valid, the program still prints out the message "clusterconfig saved!"

 

Kubernative GmbH
Ziegelei 9
72336 Balingen

Telefon:
Mail:
Internet:

+49 7433 2781296
Diese E-Mail-Adresse ist vor Spambots geschützt! Zur Anzeige muss JavaScript eingeschaltet sein!
www.kubernative.net

Social Media

Wir nutzen Cookies auf unserer Website. Einige von ihnen sind essenziell für den Betrieb der Seite, während andere uns helfen, diese Website und die Nutzererfahrung zu verbessern (Tracking Cookies). Sie können selbst entscheiden, ob Sie die Cookies zulassen möchten. Bitte beachten Sie, dass bei einer Ablehnung womöglich nicht mehr alle Funktionalitäten der Seite zur Verfügung stehen.