Friday, August 31, 2018
How to install the openshift container platform on Redhat enterprise linux 7
Step1:
Verify the hostname using the following command,
master # host $(hostname)
node # host $(hostname)
Step2:
How to setup the OCP master ?
yum -y install atomic-openshift-docker-excluder \
atomic-openshift-excluder atomic-openshift-utils \
bind-utils bridge-utils git \
iptables-services net-tools wget
Step3:
On the master and the node1 remove openshift exclusions from /etc/yum.conf
master &&& node1 # atomic-openshift-excluder unexclude
Step4:
Install the OpenShift Container platform using tools provided in the atomic-openshift-utils package
master # atomic-openshift-installer install
Step5:
After the installations is complete, re-add the exclusions to the /etc/yum.conf
master &&&& node1 # atomic-openshift-excluder exclude
Step6:
How to verify the master server is installed with the OCP master ?
systemctl status | grep openshift
Step7
How to verify the master server is installed with the OCP node ?
systemctl status | grep openshift
Install docker on the openshift master and the node
step1:
How to install specific version of the Docker ?
yum -y install docker-1.13.1
Step2:
Add --insecure-registry 172.xx.x.x/16 to /etc/sysconfig/docker
$ vim /etc/sysconfig/docker
OPTIONS= '--selinux-enabled --insecure-registry 172.xx.x.x/16 --log-driver=journald --signature-verfication=false'
Step3:
if enabled, disable the LVM cluster feature.
$lvmconf --disable-cluster
Step4:
Edit docker-storage-setup to use storage mounted on /dev/[x]vdb,then the complete installation using the proper command-line tools
$ vim /etc/sysconfig/docker-storage-setup
The file should contain only the following:
DEVS=/xvdb
VG=docker-vg
Step5:
How to verify the storage is configured properly ?
$ lvs /dev/docker-vg/docker-pool
Step6:
Start and enable Docker on all Openshift nodes.
$ systemctl enable docker && systemctl start docker
Thursday, August 30, 2018
Openshift container platform
It is the paas(platform as a service) offering from the Redhat
That brings together the Docker and the kubernetes and provides an API to manage these services.
>> it has the microservices architecture.small and couple the units will run on the top of the kubernetes cluster.
The new way of deployment is by the os-level of virtualization is the containers.
Instead of hardware virtualization,these containers are isolated from one another.
They have there own filesystems and can see eachothers processes and computational resources can be binded.
Containers are significantly build in Vms and there are coupled from the underlying infrastructure.
what is openshift ?
A quick way to say that,it is enterprise offering with the kubernetes and docker.
what it offers ?
While docker provides the abstraction for the packaging and creating linux based lightweight container images.
Kubernetes provides the cluster management and orchestrates containers on the multiple hosts.
Openshift responsibilities:
Open-shift container management have the source code management,scm will help in building and deploying for the developers.
>> image management and scaling Is also possible.
>> application management at scale.
>> team and user tracking for large organsation.
All these data is stored at the etcd.a reliable cluster key-value store.
>> and these services are broken down by the function.
(cluster networking infrastructure).
>> REST APIs which exposes each of the core objects.
>> controllers which read those APIs and apply changes to the other objects and reports the status and rightback to the object.
Main features of the openshift container platform:
>> self-service platform (which means developers can create applications from the template or from their own source code management repositories).
>> openshift is polyglot,multi-lingual support
(supporting languages such as the java,nodejs,php,pearl and ruby directly from the redhat).
(managed by different partners and managed by docker community).
>> automation lifecycle management feature,it is to automatically apply the changes from the source code under the version control and security from the base operating system and dependency libraries for running the application.
>> it has easy to use the web-front-end (user interfaces).
>> cli interface refered as the oc command-line-client for remote management of the applications.
>> openshift provides the web-scale distributed (scalability),that includes the elasticity(to increase traffic ondemand).
And high-availablity applications will survive events such as the loss of a physical machine.
>> container portability,applications in services in the packages and its services and its to orchestrate it.
>> openshift is having a choice of platform as it is the opensource.(that means there is no vendor locking).
Wednesday, August 8, 2018
How to install awscli on centos 7
Notes:
Install the AWS CLI Using the Bundled Installer (Linux, OS X, or Unix)
$ python --version
if your computer doesn't already have Python 2.6 or 3+version then installed python.
To install pip on Linux:
step1: $curl -O https://bootstrap.pypa.io/get-pip.py
step2: $ sudo python2.7 get-pip.py
Install the AWS CLI Using pip: Linux, OS X, or Unix
$sudo pip install awscli
verify: $ aws help
Subscribe to:
Posts (Atom)