Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the host containers for 1.20.0 #3947

Merged
merged 4 commits into from
May 7, 2024

Conversation

KCSesh
Copy link
Contributor

@KCSesh KCSesh commented May 7, 2024

Description of changes:
Closes #3950

Update the admin and control host containers to bottlerocket-admin-container v0.11.8 and bottlerocket-control-container v0.7.12. Also add migrations move to these versions on upgrade.

Testing done:
Using an EC2 instance with the aws-k8s-1.29 variant, I successfully tested the following scenarios:

  • - Bottlerocket v1.19.5 can be upgraded into Bottlerocket v1.20.0 and uses the new host container images.
After upgrade: 
bash-5.1# apiclient get settings.host-containers
{
  "settings": {
    "host-containers": {
      "admin": {
        "enabled": true,
        "source": "328549459982.dkr.ecr.us-west-2.amazonaws.com/bottlerocket-admin:v0.11.8",
        "superpowered": true,
        "user-data": "<removed>"
      },
      "control": {
        "enabled": true,
        "source": "328549459982.dkr.ecr.us-west-2.amazonaws.com/bottlerocket-control:v0.7.12",
        "superpowered": false
      }
    }
  }
}

bash-5.1# cat /var/lib/bottlerocket/datastore/current/live/os/pretty_name
"Bottlerocket OS 1.20.0 (aws-k8s-1.29)"
  • - A system upgraded from 1.20.0 can be rolled back to Bottlerocket v1.19.5 and revert to using the old host container images.
After Rollback: 
[ec2-user@admin]$ apiclient get settings.host-containers
{
  "settings": {
    "host-containers": {
      "admin": {
        "enabled": true,
        "source": "328549459982.dkr.ecr.us-west-2.amazonaws.com/bottlerocket-admin:v0.11.7",
        "superpowered": true,
        "user-data": "<removed>"
      },
      "control": {
        "enabled": true,
        "source": "328549459982.dkr.ecr.us-west-2.amazonaws.com/bottlerocket-control:v0.7.11",
        "superpowered": false
      }
    }
  }
}
bash-5.1# cat /var/lib/bottlerocket/datastore/current/live/os/pretty_name
"Bottlerocket OS 1.19.5 (aws-k8s-1.29)
  • - A new Bottlerocket v1.20.0 image uses the new host container images.

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

@KCSesh KCSesh marked this pull request as ready for review May 7, 2024 19:01
KCSesh added 2 commits May 7, 2024 19:30
Signed-off-by: Kyle Sessions <kssessio@amazon.com>
Signed-off-by: Kyle Sessions <kssessio@amazon.com>
Signed-off-by: Kyle Sessions <kssessio@amazon.com>
Signed-off-by: Kyle Sessions <kssessio@amazon.com>
@KCSesh KCSesh merged commit 8d96710 into bottlerocket-os:develop May 7, 2024
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

v1.20.0 Host container updates
4 participants