RedHat OpenShift: Difference between revisions

From Wiki
 
(11 intermediate revisions by the same user not shown)
Line 3: Line 3:
  <big>Este artigo está com o status RASCUNHO, tenho muito ainda pra organizar</big>
  <big>Este artigo está com o status RASCUNHO, tenho muito ainda pra organizar</big>


= Primerios Passos =
= Redhat Openshift =


== Comando de instalação direto ==
* [[RedHat Openshift: Primeiros Passos]]


openshift-install create cluster
= Vale a pena dar uma olhada =


O comando do exemplo cria o cluster na Amazon AWS. Usa o Terraform para criar os workers.
* [https://www.redhat.com/files/summit/session-assets/2018/S1030-Best-practices-for-OpenShift-high-availability-deployment-field-experience-Distribution.pdf Best practices for OpenShift high-availability deployment field experience]


== Comandos de instalação - Passo a Passo ==
* [https://rhpds.redhat.com/ Red Hat Product Demo System]


1) Cria um arquivo install-config.yaml
* [https://github.ibm.com/CASE/redcompute-icp-openshift/blob/master/installation/ose-single-master.md Install RedHat OpenShift Container Platform Single Master]


openshift-install create install-config
* [https://developers.redhat.com/cheat-sheets/red-hat-openshift-container-platform/ Cheat-sheets for Redhat Openshift Container Platform]


2) Cria os arquivos manifests
* [https://learn.openshift.com/ Interactive Learning Portal]


openshift-install create manifests
* [https://www.youtube.com/user/rhopenshift/ Openshift on Youtube]


3) Cria os arquivos ignition
= Ver também =


  openshift-install create ignition-config
* [[Cloud| Artigos sobre Cloud]]
* [[Tecnologias| Mais Artigos sobre Cloud / WebDev / Tecnologias]]


Usa os manifests para criar os Workers. Os arquivos são bootstrap.ign, master.ign, worker.ign
[[Category:Openshift]]
 
[[Category:Redhat Openshift]]
== Pegando versões e atualizando==
[[Category:Kubernetes]]
 
[[Category:Cloud]]
1) Pega a versão do cluster
[[Category:Tecnologias]]
 
oc get clusterversion
 
2) Pega os deployments
oc get deployments -n openshift-cluster-version
 
Resultado:
NAME                    DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
cluster-version-operator 1      1      1          1        12h
 
3) Faz um ssh dentro do pod
 
oc rsh -n openshift-cluster-version deployments/cluster-version-operator
 
execute
sh-4.2# ls /release-manifests/
 
4) Ver os logs
 
oc logs -n openshift-cluster-version deployments/cluster-version-operator
 
5) Ver os pods
 
oc get pods -n openshift-kube-apiserver

Latest revision as of 12:34, 15 January 2020