Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Kubernetes

This page is intended to document the research done on kubernates for container orchestration.

Step-by-step guide
Manual method:

AWS and GCE Only - https://github.com/kelseyhightower/kubernetes-the-hard-way


http://kubernetes.io/docs/getting-started-guides/kubeadm/

Findings - This manual does not work with ubuntu 16.04.01 due to below error

kubeadmin init

[apiclient] Created api client, waiting for the control plane to become ready

Minikube on debian:

minikube setup

#Reference: https://github.com/kubernetes/minikube
#Make sure to install virtualbox with its extension
sudo su -
#install kubectl
wget https://storage.googleapis.com/kubernetes-release/release/v1.4.4/bin/linux/amd64/kubectl
chmod +x kubectl
mv kubectl /usr/local/bin/kubectl
#install minikube
dpkg -i https://github.com/kubernetes/minikube/releases/download/v0.14.0/minikube_0.14-0.deb
minikube start
minikube ip #to get minikube vm's IP

#set no proxy for minikube before running kubectl


export NO_PROXY=$no_proxy,$(minikube ip)
kubectl -v 9 run hello-minikube --image=gcr.io/google_containers/echoserver:1.4 --port=8080
kubectl get pod
kubectl expose deployment hello-minikube --type=NodePort
curl $(minikube service hello-minikube --url)

#not required - to login into minikube


minikube ssh

cAdvisor interface: http://<minikube-ip>:4194/containers


Kubernetes on Redhat Atomic
Upload redhat atomic image from http://lss-repo1.ih.lucent.com/repos/7/latest/isos/rhel-atomic-host-image/rhel-atomic-
cloud-7.3.1-1.x86_64.qcow2
Spin up a VM and login as ssh -i id_rsa cloud-user@<VM-IP>
https://access.redhat.com/documentation/en/red-hat-enterprise-linux-atomic-host/7/paged/getting-started-with-
kubernetes/chapter-1-get-started-orchestrating-containers-with-kubernetes
Import hyperkube image to artifactory

$docker pull gcr.io/google-containers/hyperkube:v1.5.2

#Setup nokiaca.pem using vlab_base ansible role or follow below steps


$cp nokiaca.pem /etc/pki/ca-trust/source/anchors/nokiaca.pem
$sudo update-ca-trust
$sudo systemctl restart docker

#Login to artifactory docker repository


$docker login repo.lab.pl.alcatel-lucent.com:6555
Username:
Password:
WARNING: login credentials saved in ~/.docker/config.json
Login Succeeded

#tag the image before importing


$docker tag gcr.io/google-containers/hyperkube:v1.5.2 repo.lab.pl.alcatel-lucent.com:6555/aad

#Import the image to artifactory


$docker push repo.lab.pl.alcatel-lucent.com:6555/aado/hyperkube

pull image from artifactory

#Login
$docker login repo.lab.pl.alcatel-lucent.com:6555
Username:
Password:
WARNING: login credentials saved in ~/.docker/config.json
Login Succeeded

#Pull image
$docker pull repo.lab.pl.alcatel-lucent.com:6555/aado/hyperkube:v1.5.2

Kubernetes on CentOS - https://kubernetes.io/docs/getting-started-guides/centos/centos_manual_config/

Related articles:
Framework: Serverless funtions for k8s: http://fission.io/

Book: Kubernates : Up and running - http://shop.oreilly.com/product/0636920043874.do

Podcast: http://packetpushers.net/podcast/podcasts/datanauts-058-kubernetes-deep-dive-introduction/

CSF References:

VM images to support container deployments on Openstack and VMware


OLD CRHL - Red Hat Enterprise Linux

You might also like