-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GITBOOK-1219: Provider docs disable unattended update instructions
- Loading branch information
1 parent
1f3b8d7
commit 03b14d3
Showing
3 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
...sh-cloud-provider-build-with-helm-charts/step-11-disable-unattended-upgrades.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Step 11 - Disable Unattended Upgrades | ||
|
||
## Overview | ||
|
||
Unattended upgrades can bring all sorts of uncertainty/troubles such as updates of NVIDIA drivers and have the potential to affects your Provider/K8s cluster. Impact of unattended upgrades can include: | ||
|
||
* `nvidia-smi` will hang on the host/pod | ||
* `nvdp plugin` will become stuck and hence K8s cluster will run in a non-desired state where closed deployments will be stuck in `Terminating` status | ||
|
||
## Disable Unattended Upgrades | ||
|
||
To disable unattended upgrades, execute these two commands on your Kubernetes worker & control plane nodes:\ | ||
|
||
|
||
``` | ||
echo -en 'APT::Periodic::Update-Package-Lists "0";\nAPT::Periodic::Unattended-Upgrade "0";\n' | tee /etc/apt/apt.conf.d/20auto-upgrades | ||
apt remove unattended-upgrades | ||
``` | ||
|
||
## Verify | ||
|
||
These commands should output `0` following the disable of unattended upgrades. Conduct these verifications your Kubernetes worker & control plane nodes: | ||
|
||
``` | ||
apt-config dump APT::Periodic::Unattended-Upgrade | ||
apt-config dump APT::Periodic::Update-Package-Lists | ||
``` | ||
|
||
#### Example/Expected Output | ||
|
||
``` | ||
# apt-config dump APT::Periodic::Unattended-Upgrade | ||
APT::Periodic::Unattended-Upgrade "0"; | ||
# apt-config dump APT::Periodic::Update-Package-Lists | ||
APT::Periodic::Update-Package-Lists "0"; | ||
``` | ||
|