GNU/Linux >> Linux Esercitazione >  >> Cent OS

Come installare Rancher su CentOS 8

Introduzione

Allevatore è uno stack software completo per i team che adottano i container. Affronta le sfide operative e di sicurezza legate alla gestione di più cluster Kubernetes, fornendo al contempo ai team DevOps strumenti integrati per l'esecuzione di carichi di lavoro containerizzati.

In questo articolo mostreremo come installare Rancher in Cento 8.

Prerequisiti :

Pacchetti :Docker
sistema operativo :Cento 8
Server :2

  • Server:192.168.13.135 (server)
  • Cliente:192.168.13.140 (Agente)


Installazione

Basta seguire i passaggi seguenti:

  • Aggiungi repository docker e installa docker in entrambi i server
dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo dnf install --nobest docker-ce -y
  • Avvia e abilita la finestra mobile
systemctl daemon-reload && systemctl start docker && systemctl enable docker
  • Vai su (Server), quindi estrai il Rancher Immagine.
docker run -d --restart=unless-stopped -p 8080:8080 rancher/server:stable
  • Controlla lo stato del contenitore Docker.
docker ps -a
  • Vai al tuo browser e apri la console Web Rancher.

http://indirizzo_IP:8080

http://192.168.13.135:8080

  • Abilita autenticazione Rancher.
  • Vai ad Amministratore> Controllo accessi> Locale quindi aggiungi i dettagli.
  • Esci e accedi con il nuovo utente.
  • Aggiungi un nuovo host a Rancher.
  • Vai a Infrastrutture> Host quindi scegli Aggiungi host .
  • Copia il comando dalla riga 5 ed eseguilo nel client quindi aggiungere l'indirizzo IP dell'agente alla riga 4 come mostrato sopra.
  • Il client verrà elencato nella console Rancher con i suoi dettagli come mostrato di seguito.

Conclusione

Rancher Server and Agent è stato installato correttamente in Centos 8.

In questo articolo, abbiamo installato con successo Rancher su CentOS8.

Grazie.


Cent OS
  1. Come installare Docker su CentOS 7

  2. Come installare Rancher su Ubuntu

  3. Come installare Docker su CentOS 7 / RHEL 7

  4. Come installare Docker in CentOS

  5. Come installare Docker su CentOS

Come installare Docker su CentOS

Come installare Docker CE su CentOS 8

Come installare Docker su CentOS 7

Come installare Docker Compose su CentOS 7

Come installare Rancher su CentOS 7

Come installare Docker su CentOS 8