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

use ecr public instead of region-specific images #65

Merged
merged 1 commit into from
Jul 19, 2021

Conversation

gthao313
Copy link
Member

@gthao313 gthao313 commented Jul 15, 2021

Issue number:
#44

Description of changes:

  • Using existing image in ECR registry instead current region-specific region
  • delete region images section in README since we use ECR public
  • delete Current Limitations section in README. This section is hard to maintain and we can use those open issues to track, which has same functionality as Current Limitations section.

Testing done:
Apply new deployment yaml file with ECR public image to aarch64 and x86 nodes
kubelet apply -f bottlerocket-update-operator.yaml
log result

[tianhg@ip-172-31-39-243 bottlerocket-update-operator]$ kubectl get pods -n bottlerocket
NAME                                          READY   STATUS    RESTARTS   AGE
update-operator-agent-update-api-89flk        1/1     Running   0          13s
update-operator-agent-update-api-j5mg8        1/1     Running   0          13s
update-operator-controller-75dcd68767-8mnts   1/1     Running   0          41s
[tianhg@ip-172-31-39-243 bottlerocket-update-operator]$ kubectl -n bottlerocket logs update-operator-agent-update-api-89flk
time="2021-07-15T21:12:23Z" level=debug msg=starting component=agent
time="2021-07-15T21:12:23Z" level=debug msg="preflight check" component=agent
time="2021-07-15T21:12:23Z" level=debug msg="in waiting state" component=agent init-intent=",, update:"
time="2021-07-15T21:12:23Z" level=debug msg="preflight complete" component=agent init-intent=",, update:" preflight-intent=",, update:"
time="2021-07-15T21:12:23Z" level=debug msg="posted intent" component=agent intent=",, update:" node=ip-192-168-24-159.us-west-2.compute.internal
time="2021-07-15T21:12:23Z" level=debug msg=starting component=agent worker=informer
time="2021-07-15T21:12:23Z" level=debug msg="resource add event" component=agent worker=informer
time="2021-07-15T21:12:23Z" level=debug msg="inactive intent received" component=agent intent=",, update:" node=ip-192-168-24-159.us-west-2.compute.internal
time="2021-07-15T21:12:26Z" level=debug msg="resource update event" component=agent worker=informer
time="2021-07-15T21:12:26Z" level=debug msg="active intent received" component=agent intent="stabilize,unknown,unknown update:unknown" node=ip-192-168-24-159.us-west-2.compute.internal
time="2021-07-15T21:12:26Z" level=debug msg="handling intent" component=agent intent="stabilize,unknown,unknown update:unknown" worker=handler
time="2021-07-15T21:12:26Z" level=debug msg="posted intent" component=agent intent="stabilize,stabilize,busy update:unknown" node=ip-192-168-24-159.us-west-2.compute.internal
time="2021-07-15T21:12:26Z" level=debug msg=sitrep component=agent intent="stabilize,unknown,unknown update:unknown" worker=handler
time="2021-07-15T21:12:26Z" level=debug msg="update API request" component=update-api method=GET path=/os
time="2021-07-15T21:12:26Z" level=info msg="current running OS version: 1.1.2" component=platform
time="2021-07-15T21:12:26Z" level=debug msg="fetching list of available updates" component=platform
time="2021-07-15T21:12:26Z" level=debug msg="update API request" component=update-api method=POST path=/actions/refresh-updates
time="2021-07-15T21:12:26Z" level=debug msg="update API request" component=update-api method=GET path=/updates/status
time="2021-07-15T21:12:26Z" level=info msg="API server busy, retrying in 10 seconds ..." component=update-api
time="2021-07-15T21:12:36Z" level=debug msg="realized intent" component=agent intent="stabilize,unknown,unknown update:unknown" worker=handler
time="2021-07-15T21:12:36Z" level=debug msg="posted intent" component=agent intent="stabilize,stabilize,ready update:false" node=ip-192-168-24-159.us-west-2.compute.internal
time="2021-07-15T21:12:36Z" level=debug msg="resource update event" component=agent worker=informer
time="2021-07-15T21:12:36Z" level=debug msg="skipping emitted intent as event" component=agent intent="stabilize,stabilize,busy update:unknown" node=ip-192-168-24-159.us-west-2.compute.internal
time="2021-07-15T21:12:36Z" level=debug msg="resource update event" component=agent worker=informer
time="2021-07-15T21:12:36Z" level=debug msg="skipping emitted intent as event" component=agent intent="stabilize,stabilize,busy update:unknown" node=ip-192-168-24-159.us-west-2.compute.internal
time="2021-07-15T21:12:36Z" level=debug msg="resource update event" component=agent worker=informer
time="2021-07-15T21:12:36Z" level=debug msg="skipping emitted intent as event" component=agent intent="stabilize,stabilize,ready update:false" node=ip-192-168-24-159.us-west-2.compute.internal
[tianhg@ip-172-31-39-243 bottlerocket-update-operator]$ kubectl -n bottlerocket logs update-operator-agent-update-api-j5mg8
time="2021-07-15T21:12:26Z" level=debug msg=starting component=agent
time="2021-07-15T21:12:26Z" level=debug msg="preflight check" component=agent
time="2021-07-15T21:12:26Z" level=debug msg="in waiting state" component=agent init-intent=",, update:"
time="2021-07-15T21:12:26Z" level=debug msg="preflight complete" component=agent init-intent=",, update:" preflight-intent=",, update:"
time="2021-07-15T21:12:26Z" level=debug msg="posted intent" component=agent intent=",, update:" node=ip-192-168-11-137.us-west-2.compute.internal
time="2021-07-15T21:12:26Z" level=debug msg=starting component=agent worker=informer
time="2021-07-15T21:12:26Z" level=debug msg="resource add event" component=agent worker=informer
time="2021-07-15T21:12:26Z" level=debug msg="inactive intent received" component=agent intent=",, update:" node=ip-192-168-11-137.us-west-2.compute.internal
time="2021-07-15T21:12:26Z" level=debug msg="resource update event" component=agent worker=informer
time="2021-07-15T21:12:26Z" level=debug msg="active intent received" component=agent intent="stabilize,unknown,unknown update:unknown" node=ip-192-168-11-137.us-west-2.compute.internal
time="2021-07-15T21:12:26Z" level=debug msg="handling intent" component=agent intent="stabilize,unknown,unknown update:unknown" worker=handler
time="2021-07-15T21:12:26Z" level=debug msg="posted intent" component=agent intent="stabilize,stabilize,busy update:unknown" node=ip-192-168-11-137.us-west-2.compute.internal
time="2021-07-15T21:12:26Z" level=debug msg=sitrep component=agent intent="stabilize,unknown,unknown update:unknown" worker=handler
time="2021-07-15T21:12:26Z" level=debug msg="update API request" component=update-api method=GET path=/os
time="2021-07-15T21:12:26Z" level=info msg="current running OS version: 1.1.2" component=platform
time="2021-07-15T21:12:26Z" level=debug msg="fetching list of available updates" component=platform
time="2021-07-15T21:12:26Z" level=debug msg="update API request" component=update-api method=POST path=/actions/refresh-updates
time="2021-07-15T21:12:26Z" level=debug msg="update API request" component=update-api method=GET path=/updates/status
time="2021-07-15T21:12:26Z" level=info msg="API server busy, retrying in 10 seconds ..." component=update-api
time="2021-07-15T21:12:36Z" level=debug msg="realized intent" component=agent intent="stabilize,unknown,unknown update:unknown" worker=handler
time="2021-07-15T21:12:36Z" level=debug msg="posted intent" component=agent intent="stabilize,stabilize,ready update:false" node=ip-192-168-11-137.us-west-2.compute.internal
time="2021-07-15T21:12:36Z" level=debug msg="resource update event" component=agent worker=informer
time="2021-07-15T21:12:36Z" level=debug msg="skipping emitted intent as event" component=agent intent="stabilize,stabilize,busy update:unknown" node=ip-192-168-11-137.us-west-2.compute.internal
time="2021-07-15T21:12:36Z" level=debug msg="resource update event" component=agent worker=informer
time="2021-07-15T21:12:36Z" level=debug msg="skipping emitted intent as event" component=agent intent="stabilize,stabilize,busy update:unknown" node=ip-192-168-11-137.us-west-2.compute.internal
time="2021-07-15T21:12:36Z" level=debug msg="resource update event" component=agent worker=informer
time="2021-07-15T21:12:36Z" level=debug msg="skipping emitted intent as event" component=agent intent="stabilize,stabilize,ready update:false" node=ip-192-168-11-137.us-west-2.compute.internal

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.

README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@srgothi92 srgothi92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

README.md Outdated
Comment on lines 130 to 134
### Image Region

`update-operator.yaml` pulls operator images from the `us-west-2` region.
To pull from a different region, replace the image endpoint to point at one of the following endpoints.
This is not required, but pulling the image from the same region as your cluster will improve the download speed.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than deleting this entirely, I think it'd be better to leave in the regional repositories but change the way they're described here. ECR Public isn't yet available through PrivateLink, so some people might still want to use the regional ECR repositories.

@gthao313
Copy link
Member Author

Push above improve README.

README.md Outdated Show resolved Hide resolved
README.md Outdated
Comment on lines 132 to 133
`update-operator.yaml` pulls operator images from ECR Public.
If you still want to pull from ECR private, replace the image endpoint to point at one of the following endpoints.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`update-operator.yaml` pulls operator images from ECR Public.
If you still want to pull from ECR private, replace the image endpoint to point at one of the following endpoints.
`update-operator.yaml` pulls operator images from Amazon ECR Public.
You may also choose to pull from regional Amazon ECR repositories such as the following.

@gthao313 gthao313 merged commit 7f6be21 into bottlerocket-os:develop Jul 19, 2021
@gthao313 gthao313 deleted the ECR-public branch January 10, 2022 23:15
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.

5 participants