Skip to content

atSistemas/openshift-first-steps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

openshift-first-steps

OpenShift origin playground

Running in a Container

Requirements

  • Docker 17.05.0-ce+

Start

./start-openshift-origin

Access openshift

https://localhost:8443
test,test

Open console inside container

docker exec -it origin bash

Troubleshooting

If you get the following error:

 9065 node.go:282] failed to run Kubelet: failed to create kubelet: misconfiguration: kubelet cgroup driver: "systemd" is different from docker cgroup driver: "cgroupfs"

The issue is caused due to using cgrougfs as Cgroup Driver for Docker. You can verify your Docker config by runnin

docker info | grep Cgroup
Cgroup Driver: cgroupfs

Add the following arg to your (or create it) /etc/systemd/system/docker.service.d/docker-thinpool.conf:

 [Service]
 ExecStart=/usr/bin/dockerd  --exec-opt native.cgroupdriver=systemd

And restart docker-related services

systemctl daemon-reload
systemctl restart docker.service

You should see now the right Cgroup driver setup

docker info | grep Cgroup
Cgroup Driver: systemd

Running openshift via minishift (Recommended setup)

Download minishift

  • Download latest release and uncompress it

Requirements for KVM

Installing KVM Driver

sudo curl -L https://github.com/dhiltgen/docker-machine-kvm/releases/download/v0.10.0/docker-machine-driver-kvm-ubuntu16.04 -o /usr/local/bin/docker-machine-driver-kvm
sudo chmod +x /usr/local/bin/docker-machine-driver-kvm
sudo apt install libvirt-bin qemu-kvm
sudo usermod -a -G libvirtd $USER
newgrp libvirtd
sudo /usr/sbin/kvm-ok # Check if KVM is running fine

Starting Minishift

$ minishift> ./minishift start

Requirements for virtualbox

  • virtualbox

Starting Minishift

$ minishift> ./minishift start --vm-driver virtualbox

Using oc

minishift oc-env 

More info about minishift

Checkout here

About

OpenShift origin playground

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages