You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now we rely on the CNI binaries being present on the host, but we should add an init container to our DaemonSet that copies CNI binaries to the host. Our AMI currently bakes these in, but this CNI provider should provide these itself
Essentially the init container Dockerfile would look need to look like
FROM amazonlinux
ENV CNI_STAGE_DIR /opt/stage/cni
ENV CNI_BIN_DIR /opt/cni/bin
RUN mkdir -p /opt/cni/bin
ENV CNI_VERSION v0.6.0
RUN wget https://github.com/containernetworking/cni/releases/download/${CNI_VERSION}/cni-amd64-${CNI_VERSION}.tgz \
&& tar -xvf cni-amd64-${CNI_VERSION}.tgz -C $CNI_STAGE_DIR \
&& rm cni-amd64-${CNI_VERSION}.tgz
ENV CNI_PLUGIN_VERSION v0.7.1
RUN wget https://github.com/containernetworking/plugins/releases/download/${CNI_PLUGIN_VERSION}/cni-plugins-amd64-${CNI_PLUGIN_VERSION}.tgz \
&& tar -xvf cni-plugins-amd64-${CNI_PLUGIN_VERSION}.tgz -C $CNI_STAGE_DIR \
&& rm cni-plugins-amd64-${CNI_PLUGIN_VERSION}.tgz
ENTRYPOINT ["/usr/bin/cp", "-r", "$CNI_STAGE_DIR", "/opt/cni/bin"]
The text was updated successfully, but these errors were encountered:
Right now we rely on the CNI binaries being present on the host, but we should add an init container to our DaemonSet that copies CNI binaries to the host. Our AMI currently bakes these in, but this CNI provider should provide these itself
Essentially the init container Dockerfile would look need to look like
The text was updated successfully, but these errors were encountered: