Posts

Showing posts with the label centos7

How to Install Kubernetes (k8s) v1.21.0 on CentOS 7.x ?

Image
Kubernetes ( k8s ) is an open source system for managing containerized applications across multiple hosts, providing basic mechanisms for deployment, maintenance, and scaling of applications. The open source project is hosted by the Cloud Native Computing Foundation ( CNCF ). It groups containers that make up an application into logical units for easy management and discovery. Kubernetes builds upon 15 years of experience of running production workloads at Google, combined with best-of-breed ideas and practices from the community. K ubernete s is also known as k8s as there are 8 letters between 'k' and 's'. It follows a server client architecture where the server is known as master and the clients are known as workers. In this article we will use one master and three worker nodes to deploy the kubernetes cluster. From the master node we have to manage the cluster using two tools known as 'kubeadm' and 'kubectl'. Here is a simple architecture I...

Configure CentOS 7 based Ansible provisioning server for OpenStack

To configure a CentOS 7 system as ansible provisioning server for OpenStack environment we need the following packages to be installed: gcc python-devel python-pip pbr python-openstackclient shade But these packages need to be installed in a sequence, else you may get some dependency related errors. Steps to install the above packages: 1. Install epel repo and gcc package on CentOS 7 system:    # yum install gcc epel-release -y 2. Install ansible using yum:    # yum install ansible -y 3. Install python-devel and python-pip    # yum install python-devel python-pip -y  4. Now use pip to upgrade python-pip package:     # pip install --trusted-host pypi.python.org --upgrade pip    Collecting pip    Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)     100% |████████████████████████████████| 1.3MB 203kB/s    Installing collected packages: pip    Found...

VNC Configuration using Ansible in CentOS 7

1. Install epel repo on CentOS 7 system:   # yum install epel-release -y 2. Install ansible using yum:   # yum install ansible -y 3. Go to '/etc/ansible/roles/' directory and run the below command to create the skeleton directory structure:   # ansible-galaxy init vnc7 --offline   # tree vnc7          vnc7     ├── defaults     │   └── main.yml     ├── files     ├── handlers     │   └── main.yml     ├── meta     │   └── main.yml     ├── README.md     ├── tasks     │   └── main.yml     ├── tests     │   ├── inventory     │   └── test.yml     └── vars         └── main.yml 4. Create the service file to allow 'root' user to access the vncserver using port 5901.    In "/etc/ansible/roles/vnc7/files/" directory create a ...