Utilizzare Cloudstack da Ikoula Panamax

Da It Ikoula wiki.
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

it:Utilizzare Cloudstack da Ikoula Panamax he:השתמש Cloudstack על ידי Ikoula פנמקס ro:Utilizarea Cloudstack de Ikoula Panamax ru:Использование Cloudstack по Ikoula Panamax pl:Użyj Cloudstack przez Ikoula Panamax ja:Ikoula パナマックスで Cloudstack を使用します。 ar:استخدام كلودستاك ببنما عكلة zh:使用由 Ikoula 巴拿马 Cloudstack de:Verwenden von Cloudstack von Ikoula Panamax nl:Cloudstack door Ikoula Panamax gebruiken pt:Usar o Cloudstack por Ikoula Panamax es:Uso de Cloudstack por Ikoula Panamax en:Use Cloudstack by Ikoula Panamax fr:Utiliser Panamax sur Cloudstack by Ikoula

Il presente articolo è stato tradotto tramite un software di traduzione automatica. È possibile visualizzare l'origine articolo qui.

Se non si conosQuesto ancora Panamax Si tratta di un prodotto Open Source sviluppato da Century Link Labs che è sia un luogo di mercato e un Manager per le applicazioni nei contenitori Docker da un'interfaccia web intuitiva.


È suffQui ente per Questo rcare l'applicazione di nostra sQuesto lta quindi di una cricca per distribuire il nostro target di corpi usando finestra mobile e uno Panamax.


Panamax si basa su tecnologie Docker, DCE, Fleet e Cloud-init incluso in CoreOS.


Noi useremo nel nostro esempio 4 le istanze CoreOS Aggiornamento, uno per la parte client /Interfaccia utente Panamax e 3 gli altri che formeranno il cluster per la parte Panamax Remote Target (Panamax Remote Agent + Panamax Adapter) :


Installazione dell'interfaccia utente Panamax /API (interfaccia Web /mercato luogo )

Sul nostro forum dedicato alla parte client di Panamax (Panamax UI /API ), scaricare l'archivio contenente il programma di installazione :


core@CoreOS-PanamaxUI ~ $ sudo curl -O http://download.panamax.io/installer/panamax-più reQuesto nti .tar.gz
  % Total    % ReQuesto ived % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 15165  100 15165    0     0  22157      0 --:--:-- --:--:-- --:--:-- 49558


Viene creata la directory /var/panamax dove avete estratto i file di installazione :


core@CoreOS-PanamaxUI ~ $ sudo mkdir -p /var/panamax
core@CoreOS-PanamaxUI ~ $ sudo tar -C /var/panamax -zxvf panamax-più reQuesto nti .tar.gz
./
./Makefile
./configure
./create-docker-mount
./LICENS E
./desktop
./panamax
./.coreosenv
./README.md
./CHANGELOG.md
./ubuntu.sh
./Vagrantfile
./.version
./coreos
./Vagrantfile-win
./CONTRIBUTING.md


Si trova nella directory /var/panamax e lanciamo il programma di installazione specifico CoreOS specificando che si desidera utilizzare la versione stAB ile (output troncato volontariamente ) :


core@CoreOS-PanamaxUI ~ $ cd /var/panamax
core@CoreOS-PanamaxUI /var/panamax $ sudo ./coreos install --stAB le
Installing Panamax...
Created symlink from /etc/systemd/system/Aggiornamento -engine-reboot-manager.serviQuesto  to /dev/null.
Created symlink from /etc/systemd/system/Aggiornamento -engine.serviQuesto  to /dev/null.
Created symlink from /etc/systemd/system/sockets.target.wants/systemd-journal-gatewayd.socket to /usr/lib64/systemd/system/systemd-

<!--T:12-->
Docker tirare Questo nturylink /panamax-api:più reQuesto nti 
.................
Docker tirare Questo nturylink /panamax-ui:più reQuesto nti 
.....
docker pull google/cadvisor:0.13.0
.........
Docker tirare Questo nturylink /redis:più reQuesto nti 
....
Docker tirare Questo nturylink /dray:più reQuesto nti 
...Created symlink from /etc/systemd/system/multi-user.target.wants/panamax-redis.serviQuesto  to /etc/systemd/system/panamax-redis.serv
Created symlink from /etc/systemd/system/multi-user.target.wants/panamax-dray.serviQuesto  to /etc/systemd/system/panamax-dray.serviQuesto .
Created symlink from /etc/systemd/system/multi-user.target.wants/panamax-metrics.serviQuesto  to /etc/systemd/system/panamax-metrics.ser
Created symlink from /etc/systemd/system/multi-user.target.wants/panamax-api.serviQuesto  to /etc/systemd/system/panamax-api.serviQuesto .
Created symlink from /etc/systemd/system/multi-user.target.wants/panamax-ui.serviQuesto  to /etc/systemd/system/panamax-ui.serviQuesto .
...
Jul 10 11:45:39 CoreOS-PanamaxUI docker[1790]: => Rails 4.1.7 application starting in production on http://0.0.0.0:3000
Jul 10 11:45:39 CoreOS-PanamaxUI docker[1790]: => Run `rails server -h` for more startup options
Jul 10 11:45:39 CoreOS-PanamaxUI docker[1790]: => NotiQuesto : server is listening on all interfaQuesto s (0.0.0.0). Consider using 127.0.0.1 (--binding option)
Jul 10 11:45:39 CoreOS-PanamaxUI docker[1790]: => Ctrl-C to shutdown server
Panamax install complete
core@CoreOS-PanamaxUI /var/panamax $


Possiamo verificare che nostro 5 contenitori Panamax eseguono :


core@CoreOS-PanamaxUI /var/panamax $ docker ps
CONTAINER ID        IMAGE                            COMMAND                CREATED             STATUS              PORTS                     NAMES
41a18b410427        Questo nturylink/panamax-ui:più reQuesto nti     "/bin/sh -c 'bundle    3 minutes ago       Up 3 minutes        0.0.0.0:3000->3000/tcp   PMX_UI
0cc8essere fee1b7        Questo nturylink/panamax-api:più reQuesto nti    "/bin/sh -c 'bundle    3 minutes ago       Up 3 minutes        0.0.0.0:3001->3000/tcp   PMX_API 
0929e65f6d55        google/cadvisor:0.13.0           "/usr/bin/cadvisor"    3 minutes ago       Up 3 minutes        0.0.0.0:3002->8080/tcp   PMX_CADVISOR
06b2219ac42e        Questo nturylink/dray:0.10.0          "/dray"                3 minutes ago       Up 3 minutes        0.0.0.0:3003->3000/tcp   PMX_DRAY
8a6110651DC c        Questo nturylink/redis:più reQuesto nti          "redis-server"         3 minutes ago       Up 3 minutes        6379/tcp                 PMX_DRAY_REDIS


CI si può collegare al nostro Panamax dell'interfaccia utente utilizzando il nostro browser in toccando l'ip della nostra istanza seguita da ":3000" per specificare la porta di ascolto (non dimenticare di creare autorizzazioni regole firewall e se il reindirizzamento della porta neQuesto ssario ) della stessa :


Panamax-ui.png


Installazione di Panamax Remote Deployment Target

Connettersi a uno dei tuoi 3 le istanze CoreOS déployées pour le cluster :


Generare un nuovo URL di discovery Etcd (i token ) in una variAB ile (Qui : ETCD_URL ) :


core@CoreOSnode - 1 ~ $ ETCD_URL =$(curl http://discovery.etcd.io/new)
  % Total    % ReQuesto ived % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    58  100    58    0     0     79      0 --:--:-- --:--:-- --:--:--   101
core@CoreOSnode - 1 ~ $ echo $ETCD_URL 
https://discovery.etcd.io/b8069c9bd67eae5cf19689daf4ebdd66


Poi Scarica il seguente cloud - file di modello di config. yml :


core@CoreOSnode - 1 ~ $ sudo wget -NP /usr/share/oem/ http://mirror02.ikoula.com/priv/coreos/cloud-config.yml
--2015-06-16 15:37:53--  http://mirror02.ikoula.com/priv/coreos/cloud-config.yml
Resolving mirror02.ikoula.com... 80.93. A$XX.XXX , 2a00:c70:1:80:93:XX:XXX:1
Connecting to mirror02.ikoula.com|80.93. A$XX.XXX |:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1542 (1.5K) [tex   t/plain]
Remote file è newer, retrieving.

<!--T:23-->
--2015-06-16 15:37:53--  http://mirror02.ikoula.com/priv/coreos/cloud-config.yml
Reusing ex   isting connection to mirror02.ikoula.com:80.
HTTP request sent, awaiting response... 200 OK
Length: 1542 (1.5K) [tex   t/plain]
Saving to: '/usr/share/oem/cloud-config.yml'

<!--T:24-->
/usr/share/oem/cloud-config.yml               100%[===================================================================================================>]   1.51K  --.-KB/s   in 0s

<!--T:25-->
2015-06-16 15:37:53 (264 MB/s) - '/usr/share/oem/cloud-config.yml' saved [1542/1542]
core@CoreOSnode - 1 ~ $ ex   port `cat /etc/environment`

Eseguire i seguenti comandi per personalizzare la nuvola di file - config. yml scaricato con i tuoi valori ambientali :

core@CoreOSnode - 1 ~ $ sudo sed -i 's#DISCOVERY_URL#'$ETCD_URL '#g' /usr/share/oem/cloud-config.yml
core@CoreOSnode - 1 ~ $ sudo sed -i 's#PRIVATE_IP#'$COREOS_PRIVATE_IPV4'#g' /usr/share/oem/cloud-config.yml

Controlliamo le nostre impostazioni di DCE e Fleet è essere ne sostituito :

core@CoreOSnode - 1 ~ $ cat /usr/share/oem/cloud-config.yml
#cloud-config

<!--T:31-->
coreos:
    units:
      - name: cloudstack-ssh-key.serviQuesto 
        command: riavviare 
        runtime: yes
        content: |
          [Unit]
          Description=Sets SSH key from metadata

          <!--T:32-->
[ServiQuesto ]
          Type=oneshot
          StandardOutput=journal+console
          ExecStart=/usr/share/oem/bin/cloudstack-ssh-key
      - name: cloudstack-hostname.serviQuesto 
        command: riavviare 
        runtime: yes
        content: |
          [Unit]
          Description=Sets hostname from metadata

          <!--T:33-->
[ServiQuesto ]
          Type=oneshot
          StandardOutput=journal+console
          ExecStart=/usr/share/oem/bin/cloudstack-hostname
      - name: cloudstack-cloudinit .serviQuesto 
        command: riavviare 
        runtime: yes
        content: |
          [Unit]
          Description=Cloudinit  from CloudStack-style metadata
          Requires=coreos-setup-environment.serviQuesto 
          After=coreos-setup-environment.serviQuesto 

          <!--T:34-->
[ServiQuesto ]
          Type=oneshot
          EnvironmentFile=/etc/environment
          ExecStart=/usr/share/oem/bin/cloudstack-coreos-cloudinit 
      - name: etcd.serviQuesto 
        command: start
      - name: fleet.serviQuesto 
        command: start
    oem:
      id: cloudstack
      name: CloudStack
      version-id: 0.0.1-r3
      home-url: http://cloudstack.apache.org/
      bug-report-url: https://github.com/coreos/coreos-overlay
    etcd:
      discovery: https://discovery.etcd.io/b8069c9bd67eae5cf19689daf4ebdd66
      addr: 178.170. A$XX.XXX :4001
      peer-addr: 178.170. A$XX.XXX :7001
    fleet:
      public-ip: 178.170. A$XX.XXX


Eliminare il file /etc/machine-id quindi riavviare l'istanza al fine di rigenerare un nuovo id di macchina (il tuo 3 le istanze devono avere un id diverso ) :


core@CoreOSnode - 1 ~ $ sudo rm -f /etc/machine-id
core@CoreOSnode - 1 ~ $ sudo reboot


La prima istanza deve essere visualizzato nell'elenco delle macchine gestite in Fleet :


core@CoreOSnode - 1 ~ $ fleetctl list-machines
MACHINE         IP              METADATA
7e685988...     178.170. A$XX.XXX   -


Qui possiamo vedere chiaramente la nostra prova nell'elenco delle macchine Fleet, questa sarà la nostra istanza che inizializzerà nostro cluster CoreOS/Etcd/Fleet.


Configurez maintenant il tuo deux autres instanQuesto s CoreOS remote deployment target seguendo le istruzioni qui sotto :


Connectez-vous à il tuo deux autres instanQuesto s puis recopiez le contenu du fichier /usr/share/oem/cloud-config.yml de votre première instanQuesto en remplaçant uniquement l'ip della stessa par l'ip de votre seconde instanQuesto sur votre seconde instanQuesto et par l'ip de votre troisième instanQuesto sur votre troisième instanQuesto (Devi passare root tramite un "sudo su ") :


Sulla nostra seconda istanza (Indirizzo IP 178.170. XX. YYY ) file /usr/share/oem/cloud-config.yml sarà quindi il seguente contenuto (identici tranne l'indirizzo ip ) :


core@CoreOSnode - 2 ~ $ cat /usr/share/oem/cloud-config.yml
#cloud-config

<!--T:44-->
coreos:
    units:
      - name: cloudstack-ssh-key.serviQuesto 
        command: riavviare 
        runtime: yes
        content: |
          [Unit]
          Description=Sets SSH key from metadata

          <!--T:45-->
[ServiQuesto ]
          Type=oneshot
          StandardOutput=journal+console
          ExecStart=/usr/share/oem/bin/cloudstack-ssh-key
      - name: cloudstack-hostname.serviQuesto 
        command: riavviare 
        runtime: yes
        content: |
          [Unit]
          Description=Sets hostname from metadata

          <!--T:46-->
[ServiQuesto ]
          Type=oneshot
          StandardOutput=journal+console
          ExecStart=/usr/share/oem/bin/cloudstack-hostname
      - name: cloudstack-cloudinit .serviQuesto 
        command: riavviare 
        runtime: yes
        content: |
          [Unit]
          Description=Cloudinit  from CloudStack-style metadata
          Requires=coreos-setup-environment.serviQuesto 
          After=coreos-setup-environment.serviQuesto 

          <!--T:47-->
[ServiQuesto ]
          Type=oneshot
          EnvironmentFile=/etc/environment
          ExecStart=/usr/share/oem/bin/cloudstack-coreos-cloudinit 
      - name: etcd.serviQuesto 
        command: start
      - name: fleet.serviQuesto 
        command: start
    oem:
      id: cloudstack
      name: CloudStack
      version-id: 0.0.1-r3
      home-url: http://cloudstack.apache.org/
      bug-report-url: https://github.com/coreos/coreos-overlay
    etcd:
      discovery: https://discovery.etcd.io/b8069c9bd67eae5cf19689daf4ebdd66
      addr: 178.170. XX. YYY :4001
      peer-addr: 178.170. XX. YYY :7001
    fleet:
      public-ip: 178.170. XX. YYY


Il nostro terzo istanza (Indirizzo IP 178.170. XX. ZZZ ) file /usr/share/oem/cloud-config.yml sarà quindi il seguente contenuto (identico alla 2 gli altri tranne l'indirizzo ip ) :


core@CoreOSnode - 3 ~ $ cat /usr/share/oem/cloud-config.yml
#cloud-config

<!--T:50-->
coreos:
    units:
      - name: cloudstack-ssh-key.serviQuesto 
        command: riavviare 
        runtime: yes
        content: |
          [Unit]
          Description=Sets SSH key from metadata

          <!--T:51-->
[ServiQuesto ]
          Type=oneshot
          StandardOutput=journal+console
          ExecStart=/usr/share/oem/bin/cloudstack-ssh-key
      - name: cloudstack-hostname.serviQuesto 
        command: riavviare 
        runtime: yes
        content: |
          [Unit]
          Description=Sets hostname from metadata

          <!--T:52-->
[ServiQuesto ]
          Type=oneshot
          StandardOutput=journal+console
          ExecStart=/usr/share/oem/bin/cloudstack-hostname
      - name: cloudstack-cloudinit .serviQuesto 
        command: riavviare 
        runtime: yes
        content: |
          [Unit]
          Description=Cloudinit  from CloudStack-style metadata
          Requires=coreos-setup-environment.serviQuesto 
          After=coreos-setup-environment.serviQuesto 

          <!--T:53-->
[ServiQuesto ]
          Type=oneshot
          EnvironmentFile=/etc/environment
          ExecStart=/usr/share/oem/bin/cloudstack-coreos-cloudinit 
      - name: etcd.serviQuesto 
        command: start
      - name: fleet.serviQuesto 
        command: start
    oem:
      id: cloudstack
      name: CloudStack
      version-id: 0.0.1-r3
      home-url: http://cloudstack.apache.org/
      bug-report-url: https://github.com/coreos/coreos-overlay
    etcd:
      discovery: https://discovery.etcd.io/b8069c9bd67eae5cf19689daf4ebdd66
      addr: 178.170. XX. ZZZ :4001
      peer-addr: 178.170. XX. ZZZ :7001
    fleet:
      public-ip: 178.170. XX. ZZZ


Comme pour votre première instanQuesto , supprimez file /etc/machine-id e riavviare l'istanza :


core@CoreOSnode - 2 ~ $ sudo rm -f /etc/machine-id
core@CoreOSnode - 2 ~ $ sudo reboot


core@CoreOSnode - 3 ~ $ sudo rm -f /etc/machine-id
core@CoreOSnode - 3 ~ $ sudo reboot


Une fois redémarrées, il tuo 2 normalmente si unirono altri corpi tuo cluster CoreOS/Etcd/Fleet :


core@CoreOSnode - 1 ~ $ fleetctl list-machines
MACHINE         IP              METADATA
6eaQuesto e19...     178.170. A$XX.XXX   -
7e685988...     178.170. XX. YYY   -
87e15a4a...     178.170. XX. ZZZ   -


Si il tuo instanQuesto s n'ont pas rejoint le cluster, pensez à vérifier que il tuo instanQuesto s peuvent bien communiquer entre elles (reti di connessioni, le regole del firewall /gruppo di protezione )


Ora che AB biamo un cluster CoreOS/etcd/fleet de 3 istanze, installeremo il panamax-remote-agent così come il panamax-adapter :


Viene eseguito l'agente di script di installazione Panamax :


core@CoreOSnode - 1 ~ $ sudo bash -c "$(curl http://download.panamax.io/agent/pmx-agent-install)"
  % Total    % ReQuesto ived % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   685  100   685    0     0   1756      0 --:--:-- --:--:-- --:--:--  3156
  % Total    % ReQuesto ived % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  8613  100  8613    0     0  27496      0 --:--:-- --:--:-- --:--:-- 27694
./
./pmx-agent
./README.md
./CHANGELOG.md
./OpenSSL .cnf
./.version
Execute cd /root/PMx-agente && ./PMx-agente to invoke agent setup script.


Quindi


core@CoreOSnode - 1 ~ $ sudo bash -c "$(curl http://download.panamax.io/agent/pmx-agent-install)"
  % Total    % ReQuesto ived % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   685  100   685    0     0   1756      0 --:--:-- --:--:-- --:--:--  3156
  % Total    % ReQuesto ived % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  8613  100  8613    0     0  27496      0 --:--:-- --:--:-- --:--:-- 27694
./
./pmx-agent
./README.md
./CHANGELOG.md
./OpenSSL .cnf
./.version
Execute cd /root/PMx-agente && ./PMx-agente to invoke agent setup script.
core@CoreOSnode - 1 ~ $ sudo su 
CoreOSnode - 1 core # cd /root/pmx-agent

<!--T:65-->
███████╗ ██████╗  █████████╗ ██████╗  ██████████╗ ██████╗  ██╗  ██╗
██╔══██║  ╚═══██╗ ███╗  ███║  ╚═══██╗ ██║ ██╔ ██║  ╚═══██╗ ╚██╗██╔╝
██   ██║ ███████║ ███║  ███║ ███████║ ██║╚██║ ██║ ███████║  ╚███╔╝
███████╝ ███████║ ███║  ███║ ███████║ ██║╚██║ ██║ ███████║  ██╔██╗
██║      ███████║ ███║  ███║ ███████║ ██║╚██║ ██║ ███████║ ██╔╝ ██╗
╚═╝      ╚══════╝ ╚══╝  ╚══╝ ╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝ ╚═╝  ╚═╝

<!--T:66-->
<span class="notranslate">CenturyLink LAB s</span> - http://www.centurylinklabs.com/

 <!--T:67-->
1) init :          La prima volta l'installazione agente remoto Panamax ! - Scarica e installa agente remoto Panamax.
 2) riavviare :       Si ferma e inizia Panamax Remote Agent  e adattare.
 3) Reinstallare :     Deletes your current Panamax Remote Agent  and Adapter and Reinstallare s più reQuesto nti  version.
 4) Verifica :         Controlla gli aggiornamenti disponibili per agente remoto Panamax e adattare.
 5) Aggiornamento :        Aggiornamenti di agente remoto più reQuesto nte Panamax e adattare.
 6) Elimina :        Disinstalla l'agente remoto Panamax e adattare.
 7) Eseguire il debug :         Visualizzare le impostazioni correnti di Panamax.
 8) token :         Display your current Panamax Remote Agent  token .
 9) Aiuta :          Show this Aiuta 
10) Chiudere 
Si prega di selezionare una delle opzioni preQuesto denti :


Tipo 1 per installare il Panamax Remote Agent :


Si prega di selezionare una delle opzioni preQuesto denti : 1

<!--T:70-->
Installing panamax remote agent/adapter...

<!--T:71-->
Installing Panamax adapter:

<!--T:72-->
Select the ochestrator you want to use:

<!--T:73-->
1) Kuessere rnetes
2) CoreOS Fleet
3) Marathon
Si prega di selezionare una delle opzioni preQuesto denti :


SQuesto gliere il Orchestrator "2) CoreOS Fleet" e specificare il tuo ip :


Si prega di selezionare una delle opzioni preQuesto denti : 2


<!--T:76-->
Enter the API  endpoint to acQuesto ss the Fleet <span class="notranslate">cluster</span> (ad esempio : http://10.187.241.100:4001): http://178.170.XX.XXX:4001

<!--T:77-->
A partire di Panamax flotta adattare :

<!--T:78-->
Docker tirare Questo nturylink /Panamax-flotta-adattatore :più reQuesto nti 

<!--T:79-->
56b22791d9b3DAC 06e2348a6a867527ffae 01a37AB 374159essere 48bbafaf 77334f

<!--T:80-->
Installazione agente remoto Panamax :
Immettere il nome host pubblico (dev.ex   ample.com, senza 'http'  ) o l'indirizzo IP (ex   : 206. x.x.x ) dell'agente : Immettere il nome host pubblico (dev.ex   ample.com, senza 'http'  ) o l'indirizzo IP (ex   : 206. x.x.x ) dell'agente : 178.170. A$XX.XXX 
Immettere la porta per eseguire l'agente (3001):

<!--T:81-->
Generazione della chiave SSL 

<!--T:82-->
Docker tirare Questo nturylink /OpenSSL :più reQuesto nti 

<!--T:83-->
Generazione di una chiave privata RSA, 1024 un po' lunga modulo 
......++++++
..............................................................................++++++
e è 65537 (0x10001)
Generando un 4096 chiave privata RSA bit 
........................................................................................++
................................................................++
scrivere la nuova chiave privata a '/certs/pmx_remote_agent.key'
-----
N ° valore fornito per soggetto attributo C, saltato 
N ° valore fornito per soggetto attributo ST, saltato 
N ° valore fornito per soggetto attributo L, saltato 
N ° valore fornito per oggetto O attributo, saltato 
Ok firma 
soggetto =/CN =178.170. A$XX.XXX 
Ottenere la chiave privata 

<!--T:84-->
A partire di agente remoto Panamax :

<!--T:85-->
Docker tirare Questo nturylink /Panamax-telecomando-agente :più reQuesto nti 

<!--T:86-->
524BC 3b7DB 813d2f20f8DC 028037Questo 8f42ECFC 05eessere 8c4f67a172e3f6125DC 44

============================== AVVIARE ============================== <!--T:87-->
aHR 0cHM 6LY 8xNzguMTcwLjY 4LjE 1NzozMDAxfDdiYzExYjNiLTMxZDEtNGM 1NS 1hZWNlLWFmNTRk 
QNG 1NzkzNHxOVGs 1TUdNMk 5tVXRNV 0UzWlMwME 1EUmhMVGc 1T0RNdFpqZGhZVEJqWTJVM 1ptSm 1D
ZZ 09fC 0tLS    0tQkVHSU 4gQ 0VSVElGSUNBVEUtLS     0tLQpNS UlGRmpDQ0F2NmdBd 0lCQWdJSkFKb 003
cDJiRTd 6per la 1BMEdDU 3FHU 0liM 0RRRUJCUVVBTUJreE Z 6QVZCZ 05WCkJBTU 1EakUzT 0M0eE 56QXVO 
AMD 1TVRVM 01CN FhEVEUxTURZeE 5qRTBOVGt 6TjFvWERURTJNRFl 4TlRFME 5UA 3oKTjFvd 0dURVhN 
QlVHQTFVRUF 3d09NVGM 0TGpFM 01DNDJPQzR 4TlRjd 2dnSWlNQTBHQ 1NxR 1NJYjNEUUVCQVFVQQpB 
NElDRHdBd 2dnSUtBb 0lDQVFDZHFmOFVZM 21RWnJpUTd LS TVJV 0RuNkJuS 3lIclkxTitZeE  1OaVlj 
WnRKSm 5yCmt 3UlhDQzRVelNDNEdrMmszcFIzeHppd 0Pino 1VUYmRwMXUrQlhnYjgvVHV 3dDhENUxp 
MVovUzRudmVoUlA 4N0YKa 0trcENpeU 8zUllyQXc 0QkFqZVkvb 2JSEM 5nN 2Y0T2dXYWhaamhnV 201
SUJ 0dWdndXVCTEVUcHNIcERXZWJpSQpOT 0I3V2ZEQkh 0RmRydkpLMEU 2dEJzNjdVVkg 0ZHdLNVcx 
c0dNdjRsQTY 4TGczdmFlWVpobHk 0NGFpeGlPWUIzClV 6TlUzN 3h3eXFFbnVnU 2MvM 2x3VzhVRVdU 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX         
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX         
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX         
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX         
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX         
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX         
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX         
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX         
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX         
cDBvTHdpOXVtS 0VWeFQ 5VjYrL 1JsL 3VoRHBlV 09NC 3FOaVkyanBRVkhpZ 1lWVVpKYlJhZ 2xIbk 42
NDBXZApRZUZBTnMvT 29aQTFrdDN 1cFR 5MmtlVWljLzMzTzlidTArU 0hFUEZpd 2PAAs 3dkUURudXl 4
dGVRNnBJVEhhVDdSCmVoWEdDdDRmVXBSUjZsT 2xGWjRTS  2JjQmtBa 3dZa 2V5Y0N5VTltTkV 3YK 1R
M0xJZmY 5K0pSa 3hqTXQ 1YnRzTHgKWDk 2d08zWURBYK c2NmxmQkh 1TTJLNWZVck 1yWDlUbmpmN 0x5
Z0hjcnJW WmFiK 2JjUkM 2SzZVQnI 1RTl 4R2xKNgpGZHZMdkUySW 5uQjkrRzIrM 2V1Fxh 6UXVFWGpB 
K2ZZ UDJReDRJU2w3NGpYaTRWa 3Ziem 41TnhUVHJsRzNaYK 9WCkp 3NTRmV 21lOHRwQ 2N4Vit 2V2JW 
M0tCZ 2JpMXRlKzRKTFZuV 1VKTlpVUng 5K2VUTG 82UTd 2TM 1iSG 1RTS 8wOHIKVWZIR 1JSOGlPZGwr 
NjlDZjNlUWwvenhCSVE 2cXN 4bGxzWTJMd 3IvMGFFper la RuUDRtNk5WUEtuSmN 4VDNNbTRuZwp 4TjdR 
Fxh 6V08rWUdhdUVhaHNMUkF 2QXhleFVPZkkrUHlmT 0lYVFova 1hJW jA1VWxVU 3RoYUJ 3bzFXRlVI 
VnFWCjhxU 1pjdEU 0UGRneE xSejNXclltZTdVWTJEbWJuUkJOVHlFOW0yeFJPVEh 6RUlQWTdDVXZ 3
MDh 0ZFpHczNkbG 8KbVdPSVcwMGk 1MEROa 1Arte 1RyWm 5OcHU 3VVRjL 3ZPQ 3hSaGJyM 1o4OTNyWXA 3
SUlKT 0VQWUFjT 1pzMHRkQWNvQwowSldRRTZZ UnFRT1dCQT 09CI 0tLS    0tRU 5EIENFUlRJRklDQVRF 
LS 0tLS    0K
============================== FINE ==============================


<!--T:88-->
Copy and paste the AB ove (Non includendo start /Tag di fine ) al vostro cliente di panamax locale per connettersi a questo agente remoto.


<!--T:89-->
Remote Agent /Adattare l'installazione completa !


<!--T:90-->
CoreOSnode - 1 PMx-agente #


Comme Questo la est indiqué en fin d'installation, vous devez copier-coller (senza questi tag START righe /FINE ) la chiave privata del tuo agente remoto panamax nella UI Panamax durante la creazione del tuo Panamax Remote Deployment Target.


Aggiungi il tuo Panamax Remote Deployment Target al tuo Panamax UI

Per aggiungere il tuo Panamax Remote Deployment Target dans votre Panamax UI , connectez-vous à Questo lle-ci via votre navigateur :


- Vai in "MANAGE"


Panamax-ui-manage.png


- Fare clic sul nome di un modello indipendentemente dal fatto che per il momento (ex : "WordPress con MySQL ")


Panamax-ui-search-tmplt.png


- Fare clic sul pulsante "Run Template"


Panamax-ui-fleche.png


- Fare clic su "Deploy to Target" :


Panamax-ui-deploytotarget.png


- Fare clic su "Add a New Remote Deployment Target"


Panamax-ui-remotedeploymenttarget.png


- Fare clic su "Enter your token here." (basso a destra della pagina )


Panamax-ui-entertokens.png


- Saisissez l'Indirizzo IP de votre Panamax Remote Agent (impostate durante la sua installazione nei settori "Name") quindi copiare - incollare la chiave agente privato restituito al termine dell'installazione di Panamax Remote Agent (senza le righe di tag START/END).


Panamax-ui-tokens.png


- Fare clic su "Save Remote Deployment Target"


Si dovrebbe avere il seguente output :


Panamax-ui-remotedeploytarget-added.png


- Fare clic su la flèche verte à gauche du nom de votre Remote Deployment Target puis forQuesto r une première mise à jour :


Panamax-ui-remotedeploymenttarget-update.png


Dopo l'aggiornamento, informazioni sul tuo Remote Deployment Targets ad esempio la versione del tuo Panamax Remote Agent, il tipo del tuo Panamax Adapter e la sua versione :


Panamax-ui-remotedeploymenttarget-informations.png

Distribuzione di un'applicazione tramite Panamax UI

Il vous est maintenant possible de déployer une application disponible dans la mercato luogo "Panamax Templates & Docker Repositories" depuis votre Panamax UI sur votre Panamax Remote Deployment Target :


- Individuare il nome dell'applicazione che si desidera distribuire. Abbiamo scelto il modello Century Link "Wordpress with MySQL"


- Vous pouvez Fare clic su "Più dettagli " Per ulteriori informazioni sul modello che hai selezionato. Inoltre potrai vedere quanto immagine (s) Modello di finestra mobile consiste (nel nostro caso 2 immagini )


Panamax-ui-template-details.png


- Fare clic su "Run Template" pour déployer le menu et cliquez sur "Deploy to Target" :


Panamax-ui-deploytotarget-wordpress.png


- Fare clic su "Select this Target" per selezionare il tuo Remote Deployment Target


Panamax-ui-select-target.png


- Compilare tutti i campi di "Deployment Settings" l'applicazione che è stato distribuito (mot de passe, variAB les d'environnement,etc.) puis Fare clic sul pulsante "Deploy to Target" qui sotto e conferma


Panamax-ui-deployment-settings.png


- Si dovrebbe avere il seguente output :


Panamax-ui-deployment-triggered.png


Si vous vous connectez à il tuo instanQuesto s de votre cluster CoreOS, vedrete che Panamax ha stanziato i contenitori di Docker su nodi diversi /instanQuesto s de votre cluster CoreOS :


- Possiamo vedere che l'immagine centurylink/wordpress a été déployée sur notre première instanQuesto CoreOS :


core@CoreOSnode - 1 ~ $ docker ps
CONTAINER ID        IMAGE                                      COMMAND                CREATED             STATUS              PO                                                        RTS                     NAMES
3206bda4e534        Questo nturylink/wordpress:3.9.1                "/run.sh"              3 minutes ago       Up 3 minutes        0.                                                        0.0.0:8080->80/tcp     wp
84e3c5fe1886        Questo nturylink/Panamax-telecomando-agente :più reQuesto nti     "/panamax-remote-age   37 minutes ago      Up 37 minutes       0.                                                        0.0.0:3001->3000/tcp   pmx_agent
71009f7785d3        Questo nturylink/Panamax-flotta-adattatore :più reQuesto nti    "rackup '-E producti   37 minutes ago      Up 37 minutes       92                                                        92/tcp                 pmx_adapter


- E l'immagine centurylink/mysql sur notre troisième instanQuesto de notre cluster :


core@CoreOSnode - 3 ~ $ docker ps
CONTAINER ID        IMAGE                   COMMAND                CREATED             STATUS              PORTS                     NAMES
84deeadd66fa        Questo nturylink/mysql:5.5   "/usr/local/bin/run"   4 minutes ago       Up 4 minutes        0.0.0.0:3306->3306/tcp   DB


- Nous pouvons également avoir Questo rtaines informations relatives aux déploiements des applicazioni effectués via Panamax UI par l'intermédiaire de notre gestionnaire de cluster DCE :


Troviamo i nostri 2 applicazioni (Wordpress "WP" et MySQL "DB") :


core@CoreOSnode - 1 ~ $ etcDC tl ls --recursive /app
/app/DB
/app/DB/DB_SERVICE_HOST
/app/WP
/app/WP/WP_SERVICE_HOST


On peut également voir sur quel instanQuesto membre de notre cluster l'applicazione è stata distribuita :


core@CoreOSnode - 1 ~ $ etcDC tl get /app/DB/DB_SERVICE_HOST
178.170. A$XX.XXX


core@CoreOSnode - 1 ~ $ etcDC tl get /app/WP/WP_SERVICE_HOST
178.170. XX. ZZZ


- Nous pouvons aussi avoir le statut des applicazioni de notre cluster par Fleet qui le gestionnaire des applicazioni dans notre cluster :


core@CoreOSnode - 1 ~ $ fleetctl list-unit-files
UNIT            HASH    DSTATE          STATE           TARGET
DB .serviQuesto       0caad43 launched        launched        6eaQuesto e19.../178.170. A$XX.XXX 
wp.serviQuesto       417826f launched        launched        7e685988.../178.170. XX. ZZZ


- Possiamo controllare il corretto funzionamento del nostro Wordpress accedendo con le informazioni fornite nei dettagli del modello (nel nostro caso sulla porta 8080 ouvert au niveau du parefeu préalAB lement, nous aurions pu faire une redirection de port du 8080 sulla porta 80 public dans le cas d'instanQuesto s en zone avancée) :


Panamax-application-wordpress.png

Questo articolo sembrava poter essere utile ?

0



Non si dispone dei permessi necessari per inviare commenti.