Friday, November 19, 2021

JBoss/Wildfly Installation in RedHat Linux Server - Mithun Technologies - +91 99809 23226

 


Mithun Technologies            +91-9980923226              devopstrainingblr@gmail.com

                                                       http://mithuntechnologies.com/
                                                       http://mithuntechnologies.co.in/
  JBoss/Wildfly  Installation in RedHat Linux Server

Login As a root user

sudo su -

cd /opt

wget https://github.com/wildfly/wildfly/releases/download/25.0.1.Final/wildfly-preview-25.0.1.Final.zip

unzip wildfly-preview-25.0.1.Final.zip

cd /opt/wildfly-<<Version>>.Final/standalone/configuration/

cd /opt/wildfly-preview-25.0.1.Final/standalone/configuration/

Find and replace 127.0.0.1 with your Private IP address in standalone.xml like below

vim /opt/wildfly-13.0.0.Final/standalone/configuration/standalone.xml
<wsdl-host>${jboss.bind.address:172.31.24.62}</wsdl-host>
<inet-address value="${jboss.bind.address.management:172.31.24.62}"/>
<inet-address value="${jboss.bind.address:172.31.24.62}"/>

sh /opt/wildfly-preview-25.0.1.Final/bin/add-user.sh
sh /opt/wildfly-preview-25.0.1.Final/bin/standalone.sh


Friday, November 12, 2021

Tekton Dashboard Installation in RedHat Linux Server - Mithun Technologies - +91 99809 23226

 

Mithun Technologies            +91-9980923226              devopstrainingblr@gmail.com

                                                       http://mithuntechnologies.com/
                                                       http://mithuntechnologies.co.in/
 
Install Tekton Dashboard in RedHat Linux Server

 To Install Tekton Dashboard first we need to create a cluster. To create a cluster we can use Kubernetes.

First Create a Kubernetes Cluster using below steps.

For SELinux is disabling
setenforce 0

For SELinux is disabling permanently

sed -i --follow-symlinks 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/sysconfig/selinux

Enable the Ports, if not enabled, by using below commands.

 firewall-cmd --permanent --add-port=6443/tcp
 firewall-cmd --permanent --add-port=2379-2380/tcp
 firewall-cmd --permanent --add-port=10250/tcp
 firewall-cmd --permanent --add-port=10251/tcp
 firewall-cmd --permanent --add-port=10252/tcp
 firewall-cmd --permanent --add-port=10255/tcp
 firewall-cmd --reload
 
 modprobe br_netfilter
 echo '1' > /proc/sys/net/bridge/bridge-nf-call-iptables
 

cat <<EOF > /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOF


yum install -y kubelet kubeadm  kubectl

systemctl restart docker && systemctl enable docker

systemctl  restart kubelet && systemctl enable kubelet


Note: Before executing above command need to disable swap memory by using below command

swapoff -a : Temporarly

sed -i '/ swap / s/^\(.*\)$/#\1/g' /etc/fstab : permanently


vi kubeadm-config.yaml

# kubeadm-config.yaml
kind: ClusterConfiguration
apiVersion: kubeadm.k8s.io/v1beta3
kubernetesVersion: v1.22.3
---
kind: KubeletConfiguration
apiVersion: kubelet.config.k8s.io/v1beta1
cgroupDriver: cgroupfs


kubeadm init --config kubeadm-config.yaml


Switch to tekton normal user and execute below commands

  mkdir -p $HOME/.kube
  sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
  sudo chown $(id -u):$(id -g) $HOME/.kube/config

kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"


kubectl taint node footslog1.fyre.ibm.com node-role.kubernetes.io/master:NoSchedule-

kubectl run nginx-demo --image=nginx --port=80
 
kubectl expose pod nginx-demo --port=80 --type=NodePort

kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml
kubectl apply --filename https://storage.googleapis.com/tekton-releases/dashboard/latest/tekton-dashboard-release.yaml

kubectl get pods --namespace tekton-pipelines --watch

Note: Hit CTRL+C to stop monitoring.

kubectl edit svc tekton-dashboard -n tekton-pipelines

type: ClusterIP --> type: NodePort


Uninstalling the Dashboard on Kubernetes

The Dashboard can be uninstalled by running the following command:

kubectl delete --filename https://storage.googleapis.com/tekton-releases/dashboard/latest/tekton-dashboard-release.yaml



Thursday, November 11, 2021

Tekton CLI Installation - Mithun Technologies - +91 99809 23226

 

Mithun Technologies            +91-9980923226              devopstrainingblr@gmail.com

                                                       http://mithuntechnologies.com/
                                                       http://mithuntechnologies.co.in/
 
Install Tekton CLI in MAC Book 
 

Tekton provides a CLI, tkn, for easier interaction with Tekton components.

 

a) Tekton CLI Installation in MAC Book

 

Open the terminal and execute the below commands

#brew tap tektoncd/tools

#brew install tektoncd/tools/tektoncd-cli

 

#tkn version

 

 

 


 

Tekton Dashboard Installation in MAC Book - Mithun Technologies - +91 99809 23226

 

Mithun Technologies            +91-9980923226              devopstrainingblr@gmail.com

                                                       http://mithuntechnologies.com/
                                                       http://mithuntechnologies.co.in/
 
Install Tekton Dashboard  in MAC Book
To Install Tekton Dashboard first we need to create a cluster. To create a cluster we can kind tool.

Kind is a tool for running local Kubernetes clusters using Docker container “nodes”.

To install a kind, first we should install docker in our laptop.


To install kind in MAC book follow the below command.

#brew install kind

To check the version
#kind version


To Create a Kubernetes cluster use the below commands

#kind create cluster --name tektondemo : It will create a cluster with name 'tektondemo'

##Deleting a Cluster
##kind delete cluster --name tektondemo

To display the nodes
#kubectl get nodes
To Display all the pods.
#kubectl get pod -A 
To create a namespace with the name 'tekton-pipelines'

#kubectl create ns tekton-pipelines
To install the latest version of  Tekton Dashboard.
#kubectl apply --filename https://storage.googleapis.com/tekton-releases/dashboard/latest/tekton-dashboard-release.yaml

#kubectl apply --filename https://github.com/tektoncd/pipeline/releases/download/v0.16.1/release.notags.yaml

#kubectl get pods --namespace tekton-pipelines --watch

Note: Hit CTRL+C to stop monitoring.

#kubectl get all -n tekton-pipelines

Accessing the Dashboard
-----------------------

By using kubectl port-forward
------------------------------


#kubectl --namespace tekton-pipelines port-forward svc/tekton-dashboard 9097:9097
Install Pipeline
----------------

Tekton Dashboard requires to have Tekton Pipelines installed.
Installing the latest Tekton Pipelines release is done by running the following command:

#kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml

Uninstalling the Dashboard on Kubernetes
----------------------------------------

kubectl delete --filename https://storage.googleapis.com/tekton-releases/dashboard/latest/tekton-dashboard-release.yaml

Tekton Dashboard extensions
---------------------------
Follow below url for Extensions 
https://github.com/tektoncd/dashboard/blob/main/docs/extensions.md






Tekton Playground

 

https://katacoda.com/tektoncd

 

References

https://tekton.dev/docs/

https://github.com/tektoncd/dashboard/blob/main/docs/walkthrough/walkthrough-kind.md

https://github.com/tektoncd/cli/tree/main/docs

https://kind.sigs.k8s.io/

https://github.com/GoogleContainerTools/kaniko

 

 

 

 

 







Monday, November 8, 2021

Argo CLI Installation using Kubernetes - Mithun Technologies - +91 99809 23226

 

Mithun Technologies            +91-9980923226              devopstrainingblr@gmail.com

                                                       http://mithuntechnologies.com/
                                                       http://mithuntechnologies.co.in/
 
Install Agro CLI using Kubernetes
kubectl create namespace argo
kubectl apply -n argo -f https://github.com/argoproj/argo-workflows/releases/download/v3.2.3/install.yaml

Argo CLI Installation in Linux Server - Mithun Technologies - +91 99809 23226

Mithun Technologies            +91-9980923226              devopstrainingblr@gmail.com

                                                       http://mithuntechnologies.com/
                                                       http://mithuntechnologies.co.in/
 
                                                     Install Agro CLI in Linux Server

# Download the binary
curl -sLO https://github.com/argoproj/argo-workflows/releases/download/v3.2.3/argo-linux-amd64.gz

# Unzip the software
gunzip argo-linux-amd64.gz

# Make binary executable
chmod +x argo-linux-amd64

# Move binary to path
mv ./argo-linux-amd64 /usr/local/bin/argo

# Test installation using below command
argo version

Argo CLI Installation in MAC Book - Mithun Technologies - +91 99809 23226

Mithun Technologies            +91-9980923226              devopstrainingblr@gmail.com

                                                       http://mithuntechnologies.com/
                                                       http://mithuntechnologies.co.in/
 
Install Agro CLI in MAC Book
# Download the binary
curl -sLO https://github.com/argoproj/argo-workflows/releases/download/v3.2.3/argo-darwin-amd64.gz

# Unzip the software
gunzip argo-darwin-amd64.gz

# Make binary executable
chmod +x argo-darwin-amd64

# Move binary to path
mv ./argo-darwin-amd64 /usr/local/bin/argo

# Test installation using below command
argo version
 
 

Ansible Installation in Amazon Linux - Mithun Technologies - 9980923226

  Mithun Technologies            +91-9980923226              devopstrainingblr@gmail.com                                                 ...