Videoaula 20 - Computação Escalável - COM460
Videoaula 20 - Computação Escalável - COM460
Videoaula 20 - Computação Escalável - COM460
Criação de um
Cluster OpenShift
ROTEIRO
• Pré-requisitos
• Download do OpenShift
• Instalar o OpenShift
• Iniciar o cluster
PRÉ-REQUISITOS
ad/v3.11.0/openshift-origin-client-tools-v3.11.0-
0cbc58b-linux-64bit.tar.gz
0cbc58b-linux-64bit.tar.gz
INSTALAÇÃO
Entre no diretório
cd openshift-origin-client-tools-v3.11.0-0cbc58b-
linux-64bit
Copie os binários kubectl e oc para o diretório
/usr/local/bin
cd openshift-origin-client-tools-v3.11.0-0cbc58b-
linux-64bit
cp oc kubectl /usr/local/bin/
INSTALAÇÃO
E teremos a saída
oc v3.11.0+0cbc58b
kubernetes v1.11.0+d4cacc0
features: Basic-Auth GSSAPI Kerberos SPNEGO
INSTALAÇÃO
{
"insecure-registries" : [ "172.30.0.0/16" ]
}
INICIAR O OPENSHIFT CLUSTER
Para iniciar o cluster OpenShift é preciso especificar
o IP do host
oc cluster up –public-hostname=192.168.2.5
To login as administrator:
oc login -u system:admin
INICIAR O OPENSHIFT CLUSTER
Logar no cluster como administrador
oc login -u system:admin
You have access to the following projects and can switch between them with 'oc project ':
default
kube-dns
kube-proxy
kube-public
kube-system
* myproject
openshift
openshift-apiserver
openshift-controller-manager
openshift-core-operators
openshift-infra
openshift-node
openshift-service-cert-signer
openshift-web-console
oc project default
1.https://www.okd.io/#getting-started
2.https://pensandolinux.com.br/2021/02/14/openshift-iniciando-os-estudos-
red-hat-codeready-containers/
3.https://www.ibm.com/br-pt/cloud/openshift/openshift-tutorials
4.https://www.howtoforge.com/how-to-install-and-configure-openshift-origin-
paas-server-on-ubuntu-2004/
5.https://redhatbsb.gitbook.io/workshop-openshift/parte-2-openshift