openshift policy management

Managing user & group policy in openshift with oc utility  [root@master ~]# oc adm Administrative Commands Commands for managing a cluster are exposed here. Many administrative actions involve interaction with the command-line client as well. Usage: oc adm [flags] Component Installation: router Install a router ipfailover Install an IP failover group to a set of … Continue reading openshift policy management

openshift 3.11 installation 3-node cluster

Make sure you have 3 nodes each with 4 cpu and 4 GB Ram Add hosts entries in local hosts file as per your requirement . EX:  10.142.0.2 master.openshift.com master 10.150.0.2 infra.openshift.com infra 10.142.0.3 compute.openshift.com compute Also add below repo in all  nodes  vim /etc/yum.repos.d/ocp.repo [3.11] name=ocp 3.11 packages baseurl=https://cbs.centos.org/repos/paas7-openshift-origin311-testing/x86_64/os/ enabled=1 gpgcheck=0 [root@master ~]# vim … Continue reading openshift 3.11 installation 3-node cluster

Working with Jenkinsfile from scratch 

Create pipeline jenkins job Select script path as jenkinsfile Run the job Create a github repo with jenkinsfile Copy the repo url Add scm url in jenkins job Error shown in above screen shot is due to absence of git bin in jenkins server . [root@jenkins ~]# yum install git -y Rerun the jenkins job … Continue reading Working with Jenkinsfile from scratch 

3 node EKL set up

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

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