-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Kops 1.16 unable to setup docker on recent Amazon Linux 2 #8827
Comments
We are also experiencing this issue with Amazon Linux 2, kops docker-ce fails to install on those stock AMIs:
|
I can confirm the bypass mentioned in #8803 (comment) does work with |
I can also confirm that, until Kops 1.18 is released, #8803 (comment) will be the only way to install Kubernetes on Amazon Linux 2. This is possible only because Kops 1.18 is aware of and manages containerd and not just Docker. Please test Amazon Linux 2 support in Kops 1.18 alphas and betas when released and report any issues so that they can be addressed. |
Unfortunately I’m not in a position where I can test alpha releases (only stable). I’m closing this ticket, given there is a known workaround. |
For future reference, this is the place where latest Kops is tested daily with Amazon Linux 2: |
Any news about this ? I have the same problem using directly the latest Amazon Linux 2 AMI |
As mentioned above, only the current kops alpha is expected to work. As we haven't released 1.17 yet, it will unfortunately take a while for 1.18 to go stable. |
For now, the only known workaround is #8803 (comment). |
1. What
kops
version are you running? The commandkops version
, will displaythis information.
2. What Kubernetes version are you running?
kubectl version
will print theversion if a cluster is running or provide the Kubernetes version specified as
a
kops
flag.running
1.15.7
, trying to update to1.16.8
3. What cloud provider are you using?
AWS
4. What commands did you run? What is the simplest way to reproduce this issue?
Updated the cluster spec, setup kops env vars then
5. What happened after the commands executed?
When the first master gets killed/respawned it's unable to join the cluster because kops is unable to install the docker-ce package.
Here are the relevant logs from nodeup:
6. What did you expect to happen?
For kops to be able to install docker.
7. Please provide your cluster manifest. Execute
kops get --name my.example.com -o yaml
to display your cluster manifest.You may want to remove your cluster name and other sensitive information.
8. Please run the commands with most verbose logging by adding the
-v 10
flag.Paste the logs into this report, or in a gist and provide the gist link here.
See logs from point 5
9. Anything else do we need to know?
We use custom AMIs generated with packer. We're running this setup for more than 2 years and so far we never had issues with Amazon Linux being treated like CentOS.
I tried installing RPMs from centos 7 but it got messy very quickly and the effort doesn't seem worthwhile.
I've noticed that #8525 might eventually fix this.
What are my options in this scenario?
I might instruct kops not to install docker and build my AMIs with one of the docker versions provided by amazon linux extras, but there is no exact match with the versions listed in nodeup/pkg/model/docker.go (actually it looks that 18.09.9 is a match, but the latest supported is 19.03.4, whereas the os would have 19.03.6):
is #8803 (comment) still the best course of action?
The text was updated successfully, but these errors were encountered: