Discussions
Categories
- 17.9K All Categories
- 3.4K Industry Applications
- 3.3K Intelligent Advisor
- 63 Insurance
- 535.7K On-Premises Infrastructure
- 138.1K Analytics Software
- 38.6K Application Development Software
- 5.6K Cloud Platform
- 109.3K Database Software
- 17.5K Enterprise Manager
- 8.8K Hardware
- 71K Infrastructure Software
- 105.2K Integration
- 41.5K Security Software
Use Vagrant and VirtualBox to setup Oracle Container Services for use with Kubernetes

Introduction
Recently we announced the Oracle Vagrant boxes GitHub repository. Now you have a more streamlined way to create virtual machines with Oracle software fully configured and ready to go inside of them. With Oracle VM VirtualBox, Oracle Linux and Vagrant, you can easily build a consistent workflow to create disposable Linux environment whose configuration and dependencies are isolated from your development machine on every platform (Windows, MacOS or Linux).
The example below is to show how simple to use Vagrant to set up Oracle Container Services for use with Kubernetes.
Install Required Software
Before you get started, install the required software:
Clone Oracle Vagrant GitHub Repository
If you haven't cloned or downloaded the GitHub repository, perform git clone to prepare for your own Vagrant boxes.
$ git clone https://github.com/oracle/vagrant-boxesCloning into 'vagrant-boxes'...remote: Counting objects: 342, done.remote: Compressing objects: 100% (58/58), done.remote: Total 342 (delta 42), reused 71 (delta 31), pack-reused 249Receiving objects: 100% (342/342), 69.52 KiB | 827.00 KiB/s, done.Resolving deltas: 100% (170/170), done.
Setup Master Node
Go the specific sub-folder.
$ cd vagrant-boxes/Kubernetes/
The Vagrantfile will provision a Kubernetes cluster with one master and n worker nodes. This example shows 2 worker nodes.
First we'll set up the master node.
$ vagrant up masterBringing machine 'master' up with 'virtualbox' provider...==> master: Importing base box 'ol7-latest'...==> master: Matching MAC address for NAT networking...==> master: Setting the name of the VM: Kubernetes_master_1521995861580_23054==> master: Clearing any previously set network interfaces...==> master: Preparing network interfaces based on configuration... master: Adapter 1: nat master: Adapter 2: hostonly==> master: Forwarding ports... master: 8001 (guest) => 8001 (host) (adapter 1) master: 22 (guest) => 2222 (host) (adapter 1)==> master: Running 'pre-boot' VM customizations...==> master: Booting VM......
...==> master: Running provisioner: shell... master: Running: C:/Software/Cygwin64/tmp/vagrant-shell20180325-8000-ch4j4k.sh master: Installing and configuring Docker Engine master: Package btrfs-progs-4.9.1-1.0.2.el7.x86_64 already installed and latest version master: Resolving Dependencies master: --> Running transaction check master: ---> Package docker-engine.x86_64 0:17.12.0.ol-1.0.1.el7 will be installed ... ... master: Dependencies Resolved master: master: ================================================================================ master: Package Arch Version Repository Size master: ================================================================================ master: Installing: master: docker-engine x86_64 17.12.0.ol-1.0.1.el7 ol7_preview 30 M master: Installing for dependencies: master: audit-libs-python x86_64 2.7.6-3.el7 ol7_latest 73 k master: checkpolicy x86_64 2.5-4.el7 ol7_latest 290 k master: container-selinux noarch 2:2.21-1.el7 ol7_addons 28 k master: libcgroup x86_64 0.41-13.el7 ol7_latest 64 k master: libsemanage-python x86_64 2.5-8.el7 ol7_latest 104 k master: libtool-ltdl x86_64 2.4.2-22.el7_3 ol7_latest 48 k master: policycoreutils-python x86_64 2.5-17.1.0.1.el7 ol7_latest 445 k master: python-IPy noarch 0.75-6.el7 ol7_latest 32 k master: setools-libs x86_64 3.3.8-1.1.el7 ol7_latest 611 k master: master: Transaction Summary master: ================================================================================ master: Install 1 Package (+9 Dependent packages) master: Total download size: 32 M master: Installed size: 128 M master: Downloading packages: master: -------------------------------------------------------------------------------- master: Total 7.3 MB/s | 32 MB 00:04 ... master: Installed: master: docker-engine.x86_64 0:17.12.0.ol-1.0.1.el7 master: master: Dependency Installed: ... master: Complete! master: Creating 'btrfs' file system on: /dev/sdb master: Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service. master: Installing and configuring Kubernetes packages master: Resolving Dependencies ... master: Dependencies Resolved master: master: ================================================================================ master: Package Arch Version Repository Size master: ================================================================================ master: Installing: master: kubeadm x86_64 1.9.1-2.0.2.el7 ol7_addons 17 M master: Installing for dependencies: master: kubectl x86_64 1.9.1-2.0.2.el7 ol7_addons 8.9 M master: kubelet x86_64 1.9.1-2.0.2.el7 ol7_addons 17 M master: kubernetes-cni x86_64 0.6.0-2.0.1.el7 ol7_addons 797 k master: kubernetes-cni-plugins x86_64 0.6.0-2.0.1.el7 ol7_addons 8.5 M master: socat x86_64 1.7.3.2-2.el7 ol7_latest 289 k master: master: Transaction Summary master: ================================================================================ master: Install 1 Package (+5 Dependent packages) master: master: Total download size: 52 M master: Installed size: 279 M master: Downloading packages: master: -------------------------------------------------------------------------------- master: Total 5.0 MB/s | 52 MB 00:10... master: Installed: master: kubeadm.x86_64 0:1.9.1-2.0.2.el7 master: ...
master: Complete! master: net.bridge.bridge-nf-call-ip6tables = 1 master: net.bridge.bridge-nf-call-iptables = 1 master: Your Kubernetes VM is ready to use!==> master: Configuring proxy for Docker...==> master: Running provisioner: shell... master: Running: inline script==> master: Configuring proxy for Docker...==> master: Running provisioner: shell... master: Running: inline script==> master: Configuring proxy for Docker...
Login to the master node virtual machine and run as root to configure the master node. In this step, you will be asked to sign into the Oracle Container Registry.
$ vagrant ssh masterWelcome to Oracle Linux Server release 7.4 (GNU/Linux 4.1.12-112.16.4.el7uek.x86_64)The Oracle Linux End-User License Agreement can be viewed here: * /usr/share/eula/eula.en_USFor additional packages, updates, documentation and community help, see: * http://yum.oracle.com/[[email protected] ~]$ su root[[email protected] vagrant]# /vagrant/scripts/kubeadm-setup-master.sh/vagrant/scripts/kubeadm-setup-master.sh: Login to container registryUsername: [email protected]Password:Login Succeeded/vagrant/scripts/kubeadm-setup-master.sh: Setup Master nodeStarting to initialize master node ...Checking if env is ready ...Checking whether docker can pull busybox image ...Checking access to container-registry.oracle.com/kubernetes ...v1.9.1: Pulling from kubernetes/kube-proxy-amd64Digest: sha256:852fbdc6be8b357356c047bd9649e1c62f572c0e61a0526cd048c0d0dc675e4dStatus: Image is up to date for container-registry.oracle.com/kubernetes/kube-proxy-amd64:v1.9.1Checking whether docker can run container ...Checking iptables default rule ...Checking br_netfilter module ...Checking sysctl variables ...Enabling kubelet ...Created symlink from /etc/systemd/system/multi-user.target.wants/kubelet.service to /etc/systemd/system/kubelet.service.Check successful, ready to run 'up' command ...Waiting for kubeadm to setup master cluster...Please wait ...\ - 75% completedWaiting for the control plane to become ready ..................100% completedclusterrole "flannel" createdclusterrolebinding "flannel" createdserviceaccount "flannel" createdconfigmap "kube-flannel-cfg" createddaemonset "kube-flannel-ds" createdInstalling kubernetes-dashboard ....../vagrant/scripts/kubeadm-setup-master.sh: Copying admin.conf for vagrant user/vagrant/scripts/kubeadm-setup-master.sh: Copying admin.conf into host directory/vagrant/scripts/kubeadm-setup-master.sh: Saving token for worker nodes/vagrant/scripts/kubeadm-setup-master.sh: Master node ready, run /vagrant/scripts/kubeadm-setup-worker.shon the worker nodes[[email protected] vagrant]# exit
Setup Worker Nodes
Go back to your development environment and setup the first worker node (worker1).
$ vagrant up worker1Bringing machine 'worker1' up with 'virtualbox' provider...==> worker1: Importing base box 'ol7-latest'...==> worker1: Matching MAC address for NAT networking...==> worker1: Setting the name of the VM: Kubernetes_worker1_1521998480587_67371==> worker1: Fixed port collision for 22 => 2222. Now on port 2200.==> worker1: Clearing any previously set network interfaces...==> worker1: Preparing network interfaces based on configuration... worker1: Adapter 1: nat worker1: Adapter 2: hostonly==> worker1: Forwarding ports... worker1: 22 (guest) => 2200 (host) (adapter 1)==> worker1: Running 'pre-boot' VM customizations...==> worker1: Booting VM... ...
worker1: Package btrfs-progs-4.9.1-1.0.2.el7.x86_64 already installed and latest version worker1: Resolving Dependencies worker1: --> Running transaction check worker1: ---> Package docker-engine.x86_64 0:17.12.0.ol-1.0.1.el7 will be installed worker1: Dependencies Resolved ... worker1: worker1: ================================================================================ worker1: Package Arch Version Repository Size worker1: ================================================================================ worker1: Installing: worker1: docker-engine x86_64 17.12.0.ol-1.0.1.el7 ol7_preview 30 M worker1: Installing for dependencies: worker1: audit-libs-python x86_64 2.7.6-3.el7 ol7_latest 73 k worker1: checkpolicy x86_64 2.5-4.el7 ol7_latest 290 k worker1: container-selinux noarch 2:2.21-1.el7 ol7_addons 28 k worker1: libcgroup x86_64 0.41-13.el7 ol7_latest 64 k worker1: libsemanage-python x86_64 2.5-8.el7 ol7_latest 104 k worker1: libtool-ltdl x86_64 2.4.2-22.el7_3 ol7_latest 48 k worker1: policycoreutils-python x86_64 2.5-17.1.0.1.el7 ol7_latest 445 k worker1: python-IPy noarch 0.75-6.el7 ol7_latest 32 k worker1: setools-libs x86_64 3.3.8-1.1.el7 ol7_latest 611 k worker1: worker1: Transaction Summary worker1: ================================================================================ worker1: Install 1 Package (+9 Dependent packages) worker1: Total download size: 32 M worker1: Installed size: 128 M worker1: Downloading packages: worker1: -------------------------------------------------------------------------------- worker1: Total 8.6 MB/s | 32 MB 00:03 ...
worker1: Installed: worker1: docker-engine.x86_64 0:17.12.0.ol-1.0.1.el7 worker1: worker1: Dependency Installed: ...
worker1: Complete! worker1: Creating 'btrfs' file system on: /dev/sdb worker1: Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service. worker1: Installing and configuring Kubernetes packages worker1: Resolving Dependencies worker1: --> Running transaction check worker1: ---> Package kubeadm.x86_64 0:1.9.1-2.0.2.el7 will be installed worker1: Dependencies Resolved ... worker1: worker1: ================================================================================ worker1: Package Arch Version Repository Size worker1: ================================================================================ worker1: Installing: worker1: kubeadm x86_64 1.9.1-2.0.2.el7 ol7_addons 17 M worker1: Installing for dependencies: worker1: kubectl x86_64 1.9.1-2.0.2.el7 ol7_addons 8.9 M worker1: kubelet x86_64 1.9.1-2.0.2.el7 ol7_addons 17 M worker1: kubernetes-cni x86_64 0.6.0-2.0.1.el7 ol7_addons 797 k worker1: kubernetes-cni-plugins x86_64 0.6.0-2.0.1.el7 ol7_addons 8.5 M worker1: socat x86_64 1.7.3.2-2.el7 ol7_latest 289 k worker1: worker1: Transaction Summary worker1: ================================================================================ worker1: Install 1 Package (+5 Dependent packages) worker1: Total download size: 52 M worker1: Installed size: 279 M worker1: Downloading packages: worker1: -------------------------------------------------------------------------------- worker1: Total 17 MB/s | 52 MB 00:03 ...
worker1: Installed: worker1: kubeadm.x86_64 0:1.9.1-2.0.2.el7 worker1: worker1: Dependency Installed: worker1: kubectl.x86_64 0:1.9.1-2.0.2.el7 worker1: kubelet.x86_64 0:1.9.1-2.0.2.el7 worker1: kubernetes-cni.x86_64 0:0.6.0-2.0.1.el7 worker1: kubernetes-cni-plugins.x86_64 0:0.6.0-2.0.1.el7 worker1: socat.x86_64 0:1.7.3.2-2.el7 worker1: Complete! worker1: net.bridge.bridge-nf-call-ip6tables = 1 worker1: net.bridge.bridge-nf-call-iptables = 1 worker1: Your Kubernetes VM is ready to use!==> worker1: Configuring proxy for Docker...
Log into the first worker node and configure the worker node. Similarly, you will be asked to sign into the Oracle Container Registry.
$ vagrant ssh worker1Welcome to Oracle Linux Server release 7.4 (GNU/Linux 4.1.12-112.16.4.el7uek.x86_64)The Oracle Linux End-User License Agreement can be viewed here: * /usr/share/eula/eula.en_USFor additional packages, updates, documentation and community help, see: * http://yum.oracle.com/[[email protected] ~]$ su root[[email protected] vagrant]# /vagrant/scripts/kubeadm-setup-worker.sh/vagrant/scripts/kubeadm-setup-worker.sh: Login to container registryUsername: [email protected]Password:Login Succeeded/vagrant/scripts/kubeadm-setup-worker.sh: Setup Worker nodeStarting to initialize worker node ...Checking if env is ready ...Checking whether docker can pull busybox image ...Checking access to container-registry.oracle.com/kubernetes ...v1.9.1: Pulling from kubernetes/kube-proxy-amd64Digest: sha256:852fbdc6be8b357356c047bd9649e1c62f572c0e61a0526cd048c0d0dc675e4dStatus: Image is up to date for container-registry.oracle.com/kubernetes/kube-proxy-amd64:v1.9.1Checking whether docker can run container ...Checking iptables default rule ...Checking br_netfilter module ...Checking sysctl variables ...Enabling kubelet ...Created symlink from /etc/systemd/system/multi-user.target.wants/kubelet.service to /etc/systemd/system/kubelet.service.Check successful, ready to run 'join' command ...[preflight] Running pre-flight checks.[validation] WARNING: kubeadm doesn't fully support multiple API Servers yet[discovery] Trying to connect to API Server "192.168.99.100:6443"[discovery] Trying to connect to API Server "192.168.99.100:6443"[discovery] Created cluster-info discovery client, requesting info from "https://192.168.99.100:6443"[discovery] Created cluster-info discovery client, requesting info from "https://192.168.99.100:6443"[discovery] Requesting info from "https://192.168.99.100:6443" again to validate TLS against the pinned public key[discovery] Cluster info signature and contents are valid and TLS certificate validates against pinned roots, will use API Server "192.168.99.100:6443"[discovery] Successfully established connection with API Server "192.168.99.100:6443"[discovery] Requesting info from "https://192.168.99.100:6443" again to validate TLS against the pinned public key[discovery] Cluster info signature and contents are valid and TLS certificate validates against pinned roots, will use API Server "192.168.99.100:6443"[discovery] Successfully established connection with API Server "192.168.99.100:6443"This node has joined the cluster:* Certificate signing request was sent to master and a response was received.* The Kubelet was informed of the new secure connection details.Run 'kubectl get nodes' on the master to see this node join the cluster./vagrant/scripts/kubeadm-setup-worker.sh: Worker node ready
Repeat the previous steps to set up the second worker node (worker2).
$ vagrant up worker2Bringing machine 'worker2' up with 'virtualbox' provider......$ vagrant ssh worker2...[[email protected] ~]$ su root[[email protected] vagrant]# /vagrant/scripts/kubeadm-setup-worker.sh...
Validate the Kubernetes Cluster Configuration
Now the cluster is ready. You log into the master node to verify your cluster setup.
$ vagrant ssh master[[email protected] ~]$ kubectl cluster-infoKubernetes master is running at https://192.168.99.100:6443KubeDNS is running at https://192.168.99.100:6443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxyTo further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.[[email protected] ~]$ kubectl get nodesNAME STATUS ROLES AGE VERSIONmaster.vagrant.vm Ready master 49m v1.9.1+2.0.2.el7worker1.vagrant.vm Ready <none> 24m v1.9.1+2.0.2.el7worker2.vagrant.vm Ready <none> 6m v1.9.1+2.0.2.el7[[email protected] ~]$ kubectl get pods --namespace=kube-systemNAME READY STATUS RESTARTS AGEetcd-master.vagrant.vm 1/1 Running 0 54mkube-apiserver-master.vagrant.vm 1/1 Running 0 54mkube-controller-manager-master.vagrant.vm 1/1 Running 0 55mkube-dns-855949bbf-fdtmq 3/3 Running 0 55mkube-flannel-ds-5t29z 1/1 Running 0 13mkube-flannel-ds-78x8g 1/1 Running 0 55mkube-flannel-ds-qnc9g 1/1 Running 0 30mkube-proxy-2rxzw 1/1 Running 0 30mkube-proxy-lpjxc 1/1 Running 0 55mkube-proxy-zdvj6 1/1 Running 0 13mkube-scheduler-master.vagrant.vm 1/1 Running 0 55mkubernetes-dashboard-7c966ddf6d-sjks4 0/1 ImagePullBackOff 0 55m
and you can see the virtual machine running status from Oracle VM VirtualBox Manager user interface.
Customize Vagrantfile
The Vagrantfile from the GitHub can be used as-is; there are a couple of parameters you can set to tailor the installation to your needs.
NB_WORKERS
(default: 2): the number of worker nodes to provision.USE_PREVIEW
(default:true
): whentrue
, Vagrant provisioning script will use the Oracle Linux 7 Preview and Add-ons channels for both Docker Engine and Kubernetes (latest version is select byyum
). Otherwhise it will only use the Add-ons channel.MANAGE_FROM_HOST
(default:false
): whentrue
, Vagrant will bind port6443
from the master node to the host. This allows you to manage the cluster from the host itself using the generatedadmin.conf
file (assumingkubectl
is installed on the host).BIND_PROXY
(default:true
): whentrue
, Vagrant will bind the Kubernetes Proxy port from the master node to the host. Useful to access the Dashboard or any other application from outside the cluster. It is an easier alternative to ssh tunnel.MEMORY
(default: 2048): all VMs are provisioned with 2GB memory. This can be slightly reduced if memory is a concern.
Additional Information
For additional information about Oracle Linux, visit
- Oracle Linux Documentation
- Oracle Container Runtime for Docker User's Guide
- Oracle Container Services for use with Kubernetes User's Guide
- Vagrant - Getting Started documentation
Comments
-
Hello.
Thanks for sharing.
I receive the following error message:/vagrant/scripts/kubeadm-setup-master.sh: Login to container-registry.oracle.com
Username ([email protected]):
Password:
Login Succeeded
/vagrant/scripts/kubeadm-setup-master.sh: Setup Master node -- be patient!
/vagrant/scripts/kubeadm-setup-master.sh: kubeadm-setup.sh did not complete successfully
Last lines of kubeadm-setup.log:
Starting to initialize master node ...
Checking if env is ready ...
Checking whether docker can pull busybox image ...
Checking access to container-registry.oracle.com/kubernetes ...
[ERROR] Please login with valid credential to the container-registry.oracle.com/kubernetes
# docker login container-registry.oracle.com/kubernetes
All logins checked (both oracle & github)
VBox + extensions updated (today)
What could be wrong?
BR!!!
-
Hello.
Thanks for sharing.
I receive the following error message:/vagrant/scripts/kubeadm-setup-master.sh: Login to container-registry.oracle.com
Username ([email protected]):
Password:
Login Succeeded
/vagrant/scripts/kubeadm-setup-master.sh: Setup Master node -- be patient!
/vagrant/scripts/kubeadm-setup-master.sh: kubeadm-setup.sh did not complete successfully
Last lines of kubeadm-setup.log:
Starting to initialize master node ...
Checking if env is ready ...
Checking whether docker can pull busybox image ...
Checking access to container-registry.oracle.com/kubernetes ...
[ERROR] Please login with valid credential to the container-registry.oracle.com/kubernetes
# docker login container-registry.oracle.com/kubernetes
All logins checked (both oracle & github)
VBox + extensions updated (today)
What could be wrong?
BR!!!
Hi, you should "manually" accept "Oracle Standard Terms and Restrictions" before trying to setup master node. Login with your credentials on https://container-registry.oracle.com/ , then enter "Container Services" business area. Click on "Continue" button to accept the license statement.
Go back to your environment and retry.
Best Regards,
Marzio
-
Hi, you should "manually" accept "Oracle Standard Terms and Restrictions" before trying to setup master node. Login with your credentials on https://container-registry.oracle.com/ , then enter "Container Services" business area. Click on "Continue" button to accept the license statement.
Go back to your environment and retry.
Best Regards,
Marzio
Hello Marzio.
It works... perfect!!!, thanks.
[[email protected] ~]$ kubectl cluster-info
Kubernetes master is running at https://192.168.99.100:6443
KubeDNS is running at https://192.168.99.100:6443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
[[email protected] ~]$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
master.vagrant.vm Ready master 1h v1.9.1+2.1.5.el7
worker1.vagrant.vm Ready <none> 17m v1.9.1+2.1.5.el7
worker2.vagrant.vm Ready <none> 3m v1.9.1+2.1.5.el7
[[email protected] ~]$ kubectl get pods --namespace=kube-system
NAME READY STATUS RESTARTS AGE
etcd-master.vagrant.vm 1/1 Running 0 1h
kube-apiserver-master.vagrant.vm 1/1 Running 0 1h
kube-controller-manager-master.vagrant.vm 1/1 Running 0 1h
kube-dns-855949bbf-mjmmx 3/3 Running 0 1h
kube-flannel-ds-2zf2z 1/1 Running 0 17m
kube-flannel-ds-6fm9t 1/1 Running 0 3m
kube-flannel-ds-lf86k 1/1 Running 0 1h
kube-proxy-596rh 1/1 Running 0 1h
kube-proxy-bqwkp 1/1 Running 0 17m
kube-proxy-tsjms 1/1 Running 0 3m
kube-scheduler-master.vagrant.vm 1/1 Running 0 1h
kubernetes-dashboard-7c966ddf6d-cttgb 1/1 Running 0 1h
Best Regards!!!
-
It worked for me.
But after starting the master I had to execute :
[[email protected] vagrant]# sudo cp /etc/kubernetes/admin.conf $HOME/
[[email protected] vagrant]# sudo chown $(id -u):$(id -g) $HOME/admin.conf
[[email protected] vagrant]# export KUBECONFIG=$HOME/admin.conf
-
Hello
I have done everiting like described but the "kubeadm-setup-master.sh" fails .... can someone help?
----------------------------------
[[email protected] ~]$ su root
[[email protected] vagrant]# /vagrant/scripts/kubeadm-setup-master.sh
/vagrant/scripts/kubeadm-setup-master.sh: Login to container-registry.oracle.com
Username: [email protected]
Password:
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
/vagrant/scripts/kubeadm-setup-master.sh: Setup Master node -- be patient!
/vagrant/scripts/kubeadm-setup-master.sh: kubeadm-setup.sh did not complete successfully
Last lines of kubeadm-setup.log:
Checking br_netfilter module ...
Checking sysctl variables ...
Enabling kubelet ...
Created symlink from /etc/systemd/system/multi-user.target.wants/kubelet.service to /etc/systemd/system/kubelet.service.
Check successful, ready to run 'up' command ...
Waiting for kubeadm to setup master cluster...
Please wait ...
[ERROR] kubeadm init failed
invalid configuration: kind and apiVersion is mandatory information that needs to be specified in all YAML documents
[[email protected] vagrant]#
-----------------------------------------------------------
Bye
Marcus
-
Hello
I have done everiting like described but the "kubeadm-setup-master.sh" fails .... can someone help?
----------------------------------
[[email protected] ~]$ su root
[[email protected] vagrant]# /vagrant/scripts/kubeadm-setup-master.sh
/vagrant/scripts/kubeadm-setup-master.sh: Login to container-registry.oracle.com
Username: [email protected]
Password:
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
/vagrant/scripts/kubeadm-setup-master.sh: Setup Master node -- be patient!
/vagrant/scripts/kubeadm-setup-master.sh: kubeadm-setup.sh did not complete successfully
Last lines of kubeadm-setup.log:
Checking br_netfilter module ...
Checking sysctl variables ...
Enabling kubelet ...
Created symlink from /etc/systemd/system/multi-user.target.wants/kubelet.service to /etc/systemd/system/kubelet.service.
Check successful, ready to run 'up' command ...
Waiting for kubeadm to setup master cluster...
Please wait ...
[ERROR] kubeadm init failed
invalid configuration: kind and apiVersion is mandatory information that needs to be specified in all YAML documents
[[email protected] vagrant]#
-----------------------------------------------------------
Bye
Marcus
See: https://github.com/oracle/vagrant-boxes/issues/114 for a solution.
-
See: https://github.com/oracle/vagrant-boxes/issues/114 for a solution.
Thanx a lot .... worked!