MACPRO181:~ shaik.mohammed$ ssh root@172.16.189.129 [root@localhost ~]# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 … Continue reading 3 node EKL set up
Author: mshaik
Elasticsearch
Elastic search basic concepts ? Cluster Node Shard Replicas Index Document Mappings Schemas Cluster A cluster is a collection of one or more nodes (servers) that together holds your entire data and provides federated indexing and search capabilities across all nodes. A cluster is identified by a unique name which by default is "elasticsearch". This … Continue reading Elasticsearch
Vault commands
[root@localhost ~]# vault kv get secret/hello Error making API request. URL: GET http://192.168.109.129:8200/v1/sys/internal/ui/mounts/secret/hello Code: 403. Errors: * permission denied [root@localhost ~]# vault login 6KXLe97vFsafCg0kwt5jYzrZ Success! You are now authenticated. The token information displayed below is already stored in the token helper. You do NOT need to run "vault login" again. Future Vault requests will automatically … Continue reading Vault commands
3 node Hashicorp consul cluster
Playground:Â https://demo.consul.io/ui/dc1/services [root@localhost ~]# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:0c:29:7e:d8:13 brd ff:ff:ff:ff:ff:ff inet 192.168.109.171/24 [root@localhost … Continue reading 3 node Hashicorp consul cluster
Packer with AWS
[root@node1 ~]# wget https://releases.hashicorp.com/packer/1.3.0/packer_1.3.0_linux_amd64.zip [root@node1 ~]# unzip packer_1.3.0_linux_amd64.zip Archive: packer_1.3.0_linux_amd64.zip inflating: packer [root@node1 ~]# mv packer /usr/bin/ [root@node1 ~]# bash [root@node1 ~]# packer version Packer v1.3.0 Your version of Packer is out of date! The latest version is 1.3.1. You can update by downloading from http://www.packer.io/downloads.html [root@node1 ~]# packer Usage: packer [--version] [--help] <command> [<args>] … Continue reading Packer with AWS
TERRAFORM with AWS
Create a user in aws Give the username and programmatic access download access keys, secret keys Choose the required ami [root@node1 ~]# wget https://releases.hashicorp.com/terraform/0.11.10/terraform_0.11.10_linux_amd64.zip [root@node1 ~]# unzip terraform_0.11.10_linux_amd64.zip Archive: terraform_0.11.10_linux_amd64.zip inflating: terraform [root@node1 ~]# cp terraform /usr/bin/ [root@node1 ~]# which terraform /usr/bin/terraform root@node1 ~]# terraform -h Usage: terraform [-version] [-help] <command> [args] The available commands for … Continue reading TERRAFORM with AWS
Install and Configure hashicorp vault
Playground:Â https://demo.vaultproject.io/ui admin/password https://demo.vaultproject.io/ui/vault/secrets [root@localhost ~]# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether … Continue reading Install and Configure hashicorp vault
IAAS-PAAS-SAAS
where exactly will use these terminologies Dependency & Hierarchy Who manages what ?
openshift 3.9 cluster set up
Make sure you have nodes ready with 3gb memory & 2cpu each . [root@localhost ~]# hostnamectl set-hostname master.example.com [root@localhost ~]# bash [root@master ~]# [root@master ~]# vim /etc/sysconfig/network-scripts/ifcfg-ens33 BOOTPROTO=static IPADDR=192.168.109.10 GATEWAY=192.168.109.2 [root@master ~]# service network restart [root@master ~]# vim /etc/hosts 192.168.109.10 master.example.com master 192.168.109.11 node1.example.com node1 192.168.109.12 node2.example.com node2 Do the above steps for the nodes … Continue reading openshift 3.9 cluster set up
Install latest ansible version
[root@ocp ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.4 (Maipo) [root@ocp ~]# yum install python-pip [root@ocp ~]# pip2.7 install ansible [root@ocp ~]# ansible --version ansible 2.5.0 config file = None configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /bin/ansible python version = 2.7.5 (default, May … Continue reading Install latest ansible version








