Play with openSUSE Kubic, and explore the possibility to modernize our own engineering workflow.

Looking for hackers with the skills:

Nothing? Add some keywords!

This project is part of:

Hack Week 19

Activity

  • over 2 years ago: SLindoMansilla liked this project.
  • over 2 years ago: zzhou originated this project.

  • Comments

    • zzhou
      over 2 years ago by zzhou | Reply

      hackweek19 openSUSE MicroOS/Kubic JUST Get Started

      Q: what the difference between MicroOS and Kubic?
      First impression from openSUSE Wiki is confusing: they are Tumbleweed variants

      Kubic DVD installation: kubic-template, kubic-master, kubic-worker1

      1. VM: kubic-template

      Kubic DVD -> System Role = kubeadm

      transactional-update pkg install yast2-network

      ( NOTE: not allowed, zypper in yast2-network )

      1. Copy VM to: kubic-master, kubic-worker1

      To manipulate overlayfs(/etc) on top of readonly rootfs

      virt-dup -o kubic-template -n kubic-master,ip=192.168.200.100/24
      virt-dup -o kubic-template -n kubic-worker1,ip=192.168.200.101/24

      https://github.com/zzhou1/virt-dup

      1. kubic-master bootstrap
         kubeadm --v=5 init 
      
         [preflight] pref-light-check
         . [ERROR NumCPU]: the number of available CPUs 1 is less than the required 2
         . [ERROR FileContent--proc-sys-net-ipv4-ip_forward]
           https://github.com/kubernetes/kubeadm/issues/1062
           bsc#1163328 Kubic Installer System Role should not disable ip_forward
         . [ERROR ImagePull]: ... net/http: TLS handshake timeout
           NOTE: Need pull ~500M image from the bad internet connection.  
                 Have to give up from home, so far!
      

      Install Kubic with cloud-init and VM images

      1. "cloud-init ready" VM images https://download.opensuse.org/repositories/devel:/kubic:/images/

      2. prepare cloud-init CD-ROM: ci-data.iso

         PWD=$(pwd)
         mkdir -p $PWD/kubic/cloud-init-iso
      
         cd $PWD/kubic/cloud-init-iso
         touch meta-data user-data
         REF: https://en.opensuse.org/Kubic:MicroOS/cloud-init
      
         eg.
         meta-data:  instance-id: xxxxx
         user-data:  add your own ssh-key for passwordless access
         user-data:  add your user/passwd
         user-data:  root-passwd=linux
      
         cd $PWD/kubic/
         sudo mkisofs -output ci-data.iso -volid cidata -joliet -rock cloud-init-iso
      
      1. boot VM img with CD-ROM ci-data.iso

      Enjoy passwordless ssh!

      Takeaway

      • Two installation approaches:

        • DVD
        • cloud-init VM image is a very handy
      • BAD: so far, the internet requirement is to high to do kubeadm init yet to figure out the workaround for China

    • zzhou
      over 2 years ago by zzhou | Reply

      One more progress to make my Friday. I can move one more step with --image-repository registry.cn-hangzhou.aliyuncs.com/google_containers.

    Similar Projects

    This project is one of its kind!