Difference between revisions of "Update CoreOS manually"
(7 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | <span data-link_translate_en_title="Update CoreOS manually" data-link_translate_en_url="Update CoreOS manually"></span>[[:en:Update CoreOS manually]][[en:Update CoreOS manually]] | ||
+ | <span data-link_translate_he_title="עדכון CoreOS ידני" data-link_translate_he_url="%D7%A2%D7%93%D7%9B%D7%95%D7%9F+CoreOS+%D7%99%D7%93%D7%A0%D7%99"></span>[[:he:עדכון CoreOS ידני]][[he:עדכון CoreOS ידני]] | ||
+ | <span data-link_translate_ru_title="Вручную обновить CoreOS" data-link_translate_ru_url="%D0%92%D1%80%D1%83%D1%87%D0%BD%D1%83%D1%8E+%D0%BE%D0%B1%D0%BD%D0%BE%D0%B2%D0%B8%D1%82%D1%8C+CoreOS"></span>[[:ru:Вручную обновить CoreOS]][[ru:Вручную обновить CoreOS]] | ||
+ | <span data-link_translate_ja_title="コア Os を手動で更新します。" data-link_translate_ja_url="%E3%82%B3%E3%82%A2+Os+%E3%82%92%E6%89%8B%E5%8B%95%E3%81%A7%E6%9B%B4%E6%96%B0%E3%81%97%E3%81%BE%E3%81%99%E3%80%82"></span>[[:ja:コア Os を手動で更新します。]][[ja:コア Os を手動で更新します。]] | ||
+ | <span data-link_translate_ar_title="تحديث CoreOS يدوياً" data-link_translate_ar_url="%D8%AA%D8%AD%D8%AF%D9%8A%D8%AB+CoreOS+%D9%8A%D8%AF%D9%88%D9%8A%D8%A7%D9%8B"></span>[[:ar:تحديث CoreOS يدوياً]][[ar:تحديث CoreOS يدوياً]] | ||
+ | <span data-link_translate_zh_title="手动更新 CoreOS" data-link_translate_zh_url="%E6%89%8B%E5%8A%A8%E6%9B%B4%E6%96%B0+CoreOS"></span>[[:zh:手动更新 CoreOS]][[zh:手动更新 CoreOS]] | ||
+ | <span data-link_translate_ro_title="Actualizaţi manual CoreOS" data-link_translate_ro_url="Actualiza%C5%A3i+manual+CoreOS"></span>[[:ro:Actualizaţi manual CoreOS]][[ro:Actualizaţi manual CoreOS]] | ||
<span data-link_translate_pl_title="Ręczna aktualizacja CoreOS" data-link_translate_pl_url="R%C4%99czna+aktualizacja+CoreOS"></span>[[:pl:Ręczna aktualizacja CoreOS]][[pl:Ręczna aktualizacja CoreOS]] | <span data-link_translate_pl_title="Ręczna aktualizacja CoreOS" data-link_translate_pl_url="R%C4%99czna+aktualizacja+CoreOS"></span>[[:pl:Ręczna aktualizacja CoreOS]][[pl:Ręczna aktualizacja CoreOS]] | ||
<span data-link_translate_de_title="CoreOS manuell aktualisieren" data-link_translate_de_url="CoreOS+manuell+aktualisieren"></span>[[:de:CoreOS manuell aktualisieren]][[de:CoreOS manuell aktualisieren]] | <span data-link_translate_de_title="CoreOS manuell aktualisieren" data-link_translate_de_url="CoreOS+manuell+aktualisieren"></span>[[:de:CoreOS manuell aktualisieren]][[de:CoreOS manuell aktualisieren]] | ||
Line 7: | Line 14: | ||
<span data-link_translate_fr_title="Mettre a jour CoreOS manuellement" data-link_translate_fr_url="Mettre_a_jour_CoreOS_manuellement"></span>[[:fr:Mettre a jour CoreOS manuellement]][[fr:Mettre a jour CoreOS manuellement]] | <span data-link_translate_fr_title="Mettre a jour CoreOS manuellement" data-link_translate_fr_url="Mettre_a_jour_CoreOS_manuellement"></span>[[:fr:Mettre a jour CoreOS manuellement]][[fr:Mettre a jour CoreOS manuellement]] | ||
<br /> | <br /> | ||
+ | |||
+ | {{#seo: | ||
+ | |title=Update CoreOS manually | ||
+ | |title_mode=append | ||
+ | |keywords=these,are,your,keywords | ||
+ | |description=Update CoreOS manually | ||
+ | |image=Uploaded_file.png | ||
+ | |image_alt=Wiki Logo | ||
+ | }} | ||
This article has been created by an automatic translation software. You can view the article source [[:fr:Mettre a jour CoreOS manuellement|here]].<br /><span data-translate="fr"></span> | This article has been created by an automatic translation software. You can view the article source [[:fr:Mettre a jour CoreOS manuellement|here]].<br /><span data-translate="fr"></span> | ||
− | |||
− | |||
− | |||
<!--T:1--> | <!--T:1--> |
Latest revision as of 15:56, 24 September 2021
en:Update CoreOS manually
he:עדכון CoreOS ידני
ru:Вручную обновить CoreOS
ja:コア Os を手動で更新します。
ar:تحديث CoreOS يدوياً
zh:手动更新 CoreOS
ro:Actualizaţi manual CoreOS
pl:Ręczna aktualizacja CoreOS
de:CoreOS manuell aktualisieren
nl:CoreOS handmatig bijwerken
it:Aggiornare manualmente CoreOS
pt:Atualizar CoreOS manualmente
es:Actualizar manualmente CoreOS
fr:Mettre a jour CoreOS manuellement
This article has been created by an automatic translation software. You can view the article source here.
CoreOS by default includes a built-in system update (update_engine) who plan an audit of updates available at regular intervals, automatically installs and program a reboot for that they are effective.
However, it may be useful in some cases to search and manually install the updates available. We will see below how to upgrade a stable CoreOS.
We assume you just deploy a CoreOS instance and that you are connected to is SSH user "core".
We begin by checking the current version of CoreOS :
core@CoreOSnode ~ $ cat /etc/lsb-release
DISTRIB_ID=CoreOS
DISTRIB_RELEASE=633.1.0
DISTRIB_CODENAME="Red Dog"
DISTRIB_DESCRIPTION="CoreOS 633.1.0"
We are launching the installation of updates (the return has been voluntarily truncated ) :
core@CoreOSnode ~ $ sudo update_engine_client -update
[0622/105739:INFO:update_engine_client.cc(245)] Initiating update check and install.
[0622/105739:INFO:update_engine_client.cc(250)] Waiting for update to complete.
LAST_CHECKED_TIME=1434963460
PROGRESS=0.000000
CURRENT_OP=UPDATE_STATUS_UPDATE_AVAILABLE
NEW_VERSION=0.0.0.0
NEW_SIZE=137131931
LAST_CHECKED_TIME=1434963460
PROGRESS=0.000000
CURRENT_OP=UPDATE_STATUS_UPDATE_AVAILABLE
...
NEW_VERSION=0.0.0.0
NEW_SIZE=137131931
LAST_CHECKED_TIME=1434963460
PROGRESS=0.993617
CURRENT_OP=UPDATE_STATUS_DOWNLOADING
NEW_VERSION=0.0.0.0
NEW_SIZE=137131931
LAST_CHECKED_TIME=1434963460
PROGRESS=0.000000
CURRENT_OP=UPDATE_STATUS_FINALIZING
NEW_VERSION=0.0.0.0
NEW_SIZE=137131931
LAST_CHECKED_TIME=1434963460
PROGRESS=0.000000
CURRENT_OP=UPDATE_STATUS_FINALIZING
NEW_VERSION=0.0.0.0
NEW_SIZE=137131931
<!--T:8-->
Broadcast message from locksmithd at 2015-06-22 10:59:57.244742724 +0200 CEST:
System reboot in 5 minutes!
<!--T:9-->
LAST_CHECKED_TIME=1434963460
PROGRESS=0.000000
CURRENT_OP=UPDATE_STATUS_UPDATED_NEED_REBOOT
NEW_VERSION=0.0.0.0
NEW_SIZE=137131931
[0622/105959:INFO:update_engine_client.cc(193)] Update succeeded -- reboot needed.
core@CoreOSnode ~ $
At the end of the installation of updates, we are invited to restart our instance CoreOS is immediately ("sudo reboot ") either automatically at the end of 5 minutes.
After our CoreOS instance restarts, we check the new version thereof :
core@CoreOSnode ~ $ cat /etc/lsb-release
DISTRIB_ID=CoreOS
DISTRIB_RELEASE=681.2.0
DISTRIB_CODENAME="Red Dog"
DISTRIB_DESCRIPTION="CoreOS 681.2.0"
We are now in the latest stable CoreOS (681.2.0 at the time of this FAQ ).
Different update strategies /reboot
CoreOS integrates 4 stratégies de reboot (reboot -strategy ), ces stratégies contrôlent la façon dont le reboot se produit. Ces 4 strategies are :
- best-effort
- The parameter "by default in CoreOS ". This setting determines whether the machine is part of a cluster. If DCE is started the machine is supposed to be part of a cluster and therefore uses the strategy "DCE-lock ". Otherwise, it is the strategy "reboot " which is used.
- DCE-Lock
- Avec cette stratégie, chaque machine verrouille le reboot avant d'autoriser celui-ci. Cela permet à une mise à jour d'être appliquée rapidement à un cluster sans perdre le quorum dans Etcd. En effet, le nombre de machines autorisées à redémarrer simultanément est configurable via la commande suivante (by adapting the maximum number to your context ) :
core@CoreOSnode ~ $ locksmithctl set-max 2
Old-Max: 1
Max: 2
- reboot
- This strategy will restart the machine as soon as the updates are installed.
- off
- Avec cette stratégie, la machine attend une commande demandant explicitement le reboot après installation des mises à jour.
The strategy is defined in the file /etc/coreos/update.conf :
core@CoreOSnode ~ $ cat /etc/coreos/update.conf
REBOOT_STRATEGY=off
be in the cloud-config file used like this :
#cloud-config coreos: update: reboot-strategy: best-effort
Enable comment auto-refresher