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

models: change pause container imageref to Public ECR pause image for vmware-k8s #2861

Merged
merged 1 commit into from
Mar 6, 2023

Conversation

etungsten
Copy link
Contributor

@etungsten etungsten commented Mar 6, 2023

Issue number:
N/A

Description of changes:

Changes the default pause container image to the one hosted by EKS-D in Public ECR.

Modifies the existing 'k8s-registry' migration to migrate 'k8s.gcr.io' to 'public.ecr.aws/eks-distro/kubernetes/'.

Testing done:

Migration testing comes back fine:

bash-5.1# apiclient get settings.kubernetes.pod-infra-container-image
{
  "settings": {
    "kubernetes": {
      "pod-infra-container-image": "k8s.gcr.io/pause:3.2"
    }
  }
}
bash-5.1# apiclient get os                                           
{
  "os": {
    "arch": "x86_64",
    "build_id": "6ef1139f",
    "pretty_name": "Bottlerocket OS 1.12.0 (vmware-k8s-1.24)",
    "variant_id": "vmware-k8s-1.24",
    "version_id": "1.12.0"
  }
}


bash-5.1# updog update -r -n --ignore-waves
Starting update to 1.13.0
Cannot schedule shutdown without logind support, proceeding with immediate shutdown.
Update applied: vmware-k8s-1.24 1.13.0
bash-5.1# Connection to 198.19.131.127 closed by remote host.
Connection to 198.19.131.127 closed.

$ ssh -i eks-a-id_rsa ec2-user@198.19.131.127
          Welcome to Bottlerocket's admin container!
    ╱╲
   ╱┄┄╲   This container provides access to the Bottlerocket host
   │▗▖│   filesystems (see /.bottlerocket/rootfs) and contains common
  ╱│  │╲  tools for inspection and troubleshooting.  It is based on
  │╰╮╭╯│  Amazon Linux 2, and most things are in the same places you
    ╹╹    would find them on an AL2 host.

To permit more intrusive troubleshooting, including actions that mutate the
running state of the Bottlerocket host, we provide a tool called "sheltie"
(`sudo sheltie`).  When run, this tool drops you into a root shell in the
Bottlerocket host's root filesystem.
[ec2-user@admin]$ apiclient get os
{
  "os": {
    "arch": "x86_64",
    "build_id": "17c0241a",
    "pretty_name": "Bottlerocket OS 1.13.0 (vmware-k8s-1.24)",
    "variant_id": "vmware-k8s-1.24",
    "version_id": "1.13.0"
  }
}
[ec2-user@admin]$ apiclient get settings.kubernetes.pod-infra-container-image
{
  "settings": {
    "kubernetes": {
      "pod-infra-container-image": "public.ecr.aws/eks-distro/kubernetes/pause:3.3"
    }
  }
}

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.

Changes the default pause container image to the one hosted by EKS-D in
Public ECR.

Modifies the existing 'k8s-registry' migration to migrate 'k8s.gcr.io'
to 'public.ecr.aws/eks-distro/kubernetes/'.
@etungsten etungsten marked this pull request as draft March 6, 2023 20:52
@etungsten etungsten requested a review from jpmcb March 6, 2023 22:42
@etungsten etungsten marked this pull request as ready for review March 6, 2023 22:42
@etungsten etungsten changed the title models: change pause container imageref to Public ECR pause image models: change pause container imageref to Public ECR pause image for vmware-k8s Mar 6, 2023
@etungsten etungsten merged commit e7f9cf5 into bottlerocket-os:develop Mar 6, 2023
@etungsten etungsten deleted the clickpause branch March 6, 2023 23:54
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.

None yet

3 participants