Skip to content

Commit

Permalink
GITBOOK-1219: Provider docs disable unattended update instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Carruthers authored and gitbook-bot committed Oct 2, 2023
1 parent 1f3b8d7 commit 03b14d3
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 2 deletions.
5 changes: 3 additions & 2 deletions SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@
* [Step 8 - Hostname Operator Build](providers/build-a-cloud-provider/akash-cloud-provider-build-with-helm-charts/step-7-hostname-operator-build.md)
* [STEP 9 - Ingress Controller Install](providers/build-a-cloud-provider/akash-cloud-provider-build-with-helm-charts/step-8-ingress-controller-install.md)
* [Step 10 - Firewall Rule Review](providers/build-a-cloud-provider/akash-cloud-provider-build-with-helm-charts/step-9-firewall-rule-review.md)
* [STEP 11 - Provider Whitelisting (Optional)](providers/build-a-cloud-provider/akash-cloud-provider-build-with-helm-charts/step-11-provider-whitelisting-optional.md)
* [STEP 12 - Extras](providers/build-a-cloud-provider/akash-cloud-provider-build-with-helm-charts/step-12-extras.md)
* [Step 11 - Disable Unattended Upgrades](providers/build-a-cloud-provider/akash-cloud-provider-build-with-helm-charts/step-11-disable-unattended-upgrades.md)
* [STEP 12 - Provider Whitelisting (Optional)](providers/build-a-cloud-provider/akash-cloud-provider-build-with-helm-charts/step-11-provider-whitelisting-optional.md)
* [STEP 13 - Extras](providers/build-a-cloud-provider/akash-cloud-provider-build-with-helm-charts/step-12-extras.md)
* [Akash Provider Checkup](providers/build-a-cloud-provider/akash-provider-checkup/README.md)
* [Prerequisites](providers/build-a-cloud-provider/akash-provider-checkup/prerequisites.md)
* [STEP 1 - Launch a Test Deployment on Provider](providers/build-a-cloud-provider/akash-provider-checkup/step-1-launch-a-test-deployment-on-provider.md)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ This guide uses a single Kubernetes master node.
* [Hostname Operator Build](step-7-hostname-operator-build.md)
* [Ingress Controller Install](step-8-ingress-controller-install.md)
* [Firewall Rule Review](step-9-firewall-rule-review.md)
* [Disable Unattended Upgrades](step-11-disable-unattended-upgrades.md)
* [Provider Whitelisting (Optional)](step-11-provider-whitelisting-optional.md)
* [Extras](step-12-extras.md)
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";
```

0 comments on commit 03b14d3

Please sign in to comment.