0% found this document useful (0 votes)
129 views4 pages

Installation Jenkin and Docker and Kubernetes

Download as docx, pdf, or txt
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 4

Classification : Internal

Yum install java-11-openjdk-devel

links of documentation

https://linuxconfig.org/how-to-install-docker-in-rhel-8#:~:text=Since%20Docker%20is%20not
%20available,on%20RHEL%208%20%2F%20CentOS%208

https://www.linuxtechi.com/how-to-install-kubernetes-cluster-rhel/

############""

echo $https_proxy

cd /etc/profile.d/

ll

vi /etc/profile.d/http-proxy.sh

source /etc/profile.d/http-proxy.sh

echo $http_proxy

######

PROXY_URL="http://172.22.200.200:8080/"

export http_proxy="$PROXY_URL"

export https_proxy="$PROXY_URL"

export ftp_proxy="$PROXY_URL"

export no_proxy="127.0.0.1,localhost"

#for curl
Classification : Internal

export HTTP_PROXY="$PROXY_URL"

export HTTPS_PROXY="$PROXY_URL"

export FTP_PROXY="$PROXY_URL"

export NO_PROXY="127.0.0.1,localhost"

###########"

cd /etc/yum.repos.d/

##############

systemctl disable firewalld

systemctl stop firewalld

systemctl status firewalld

#########"

cd /etc

systemctl reload NetworkManager

vi resolv.conf

######"

Search intra.local

Nameserver 172.22.108.1

Nameserver 172.22.108.2

##########installation docker

dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo

dnf repolist -v

dnf list docker-ce --showduplicates | sort -r


Classification : Internal

yum remove podman

dnf install --allowerasing https://download.docker.com/linux/centos/8/x86_64/stable/Packages/


containerd.io-1.6.4-3.1.el8.x86_64.rpm

dnf install docker-ce-3:23.0.0-1.el8.x86_64

systemctl enable --now docker

systemctl is-active docker

systemctl is-enabled docker

docker run --rm --name=linuxconfig-test -p 80:80 httpd

docker version

##########"installation kubernetees

swapoff -a

vi /etc/selinux/config

and change as follow: SELINUX=permissive

vi /etc/yum.repos.d/kubernetes.repo

add the following lines:

##########

[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

exclude=kubelet kubeadm kubectl


Classification : Internal

####

dnf install -y kubelet-1.26.1 kubeadm-1.26.1 kubectl-1.26.1 --disableexcludes=kubernetes

systemctl enable kubelet

systemctl start kubelet

systemctl status kubelet

#######"installation de java 17

dnf install -y https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.rpm

java -version

#####"install nodejs 18

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash

source ~/.bash_profile

nvm list-remote

nvm install v18.17.1

node --version

You might also like