Skip to content

cbsd/modules-k8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

k8s

CBSD module to deploy kubernetes cluster

This module requires the kubernetes cloud image, please fetch via:

cbsd fetch_iso name=cloud-kubernetes-27 dstdir=default cloud=1 conv2zvol=1

To install:

cbsd module mode=install k8s
echo 'k8s.d' >> ~cbsd/etc/modules.conf
cbsd initenv

Quick start:

cbsd k8s mode=init

or PV enabled ( 10Gb, NFS server: 10.0.100.1 ). Warning: fix/set correct interface instead of 'em0':

cbsd k8s mode=init k8s_name=master1 init_masters_ips=DHCP vip=DHCP \
master_interface=em0 \
worker_interface=em0 \
ip4_gw=10.0.100.1 \
ntp_servers=10.0.100.1 \
pv_enable=10 \
pv_spec_server=10.0.100.1
  1. cbsd k8s mode=init_upfile k8s_name="master1"

  2. cbsd up

Refer to the documentation page.

Play with k8s

kubectl run my-shell --rm -i --tty --image ubuntu -- bash

When the pod is running: kubectl attach my-shell -c my-shell -i -t

Releases

No releases published

Packages

No packages published