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 cilium to v1.13.7 & update hubble to v0.11 #1086

Merged
merged 6 commits into from
Sep 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 15 additions & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ jobs:
version:
type: string
docker:
- image: quay.io/cybozu/ubuntu-dev:20.04
- image: quay.io/cybozu/ubuntu-dev:22.04
resource_class: 2xlarge+
steps:
- checkout
Expand All @@ -486,14 +486,14 @@ jobs:
command: |
if [ ! -f BUILDS ]; then exit 0; fi
cat > /etc/apt/sources.list \<< EOF
deb [arch=amd64] http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
deb [arch=amd64] http://security.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
deb [arch=amd64] http://security.ubuntu.com/ubuntu focal-security main restricted universe multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
deb [arch=arm64] http://ports.ubuntu.com/ focal main restricted universe multiverse
deb [arch=arm64] http://ports.ubuntu.com/ focal-updates main restricted universe multiverse
deb [arch=arm64] http://ports.ubuntu.com/ focal-security main restricted universe multiverse
deb [arch=arm64] http://ports.ubuntu.com/ focal-backports main restricted universe multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
ysksuzuki marked this conversation as resolved.
Show resolved Hide resolved
deb [arch=amd64] http://security.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
deb [arch=amd64] http://security.ubuntu.com/ubuntu jammy-security main restricted universe multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
deb [arch=arm64] http://ports.ubuntu.com/ jammy main restricted universe multiverse
deb [arch=arm64] http://ports.ubuntu.com/ jammy-updates main restricted universe multiverse
deb [arch=arm64] http://ports.ubuntu.com/ jammy-security main restricted universe multiverse
deb [arch=arm64] http://ports.ubuntu.com/ jammy-backports main restricted universe multiverse
EOF
dpkg --add-architecture arm64
apt-get update
Expand All @@ -511,8 +511,8 @@ jobs:
flex \
g++ \
g++-aarch64-linux-gnu \
gcc \
gcc-aarch64-linux-gnu \
gcc-9 \
gcc-9-aarch64-linux-gnu \
git \
libelf-dev \
libelf-dev:arm64 \
Expand All @@ -521,12 +521,13 @@ jobs:
make \
ninja-build \
pkg-config \
pkg-config-aarch64-linux-gnu \
python2 \
python3 \
python3-pip \
unzip
update-alternatives --install /usr/bin/python python /usr/bin/python2 1
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 2
update-alternatives --install /usr/bin/aarch64-linux-gnu-gcc aarch64-linux-gnu-gcc /usr/bin/aarch64-linux-gnu-gcc-9 3
- run:
name: Download cilium/image-tools
command: |
Expand Down Expand Up @@ -722,11 +723,11 @@ workflows:
name: build-chrony
container-image: chrony
- build-cilium-envoy:
version: ca87bee70e40bfa681d5859e7da4cba6b8ba4e8c
version: ad831bdec4c93feeb2378aa9e1847c936ada6ef7
- build-cilium-image-tools:
# https://github.com/cilium/image-tools/commits/master
# From this commit, cilium/image-tools stops building iproute2 because of cilium v1.14 doesn't depend on iproute2.
# But, we use v1.12.11, so we still have to build iproute2.
# But, we use v1.13.6, so we still have to build iproute2.
# So we use an older version of image-tools which builds iproute2.
# https://github.com/cilium/image-tools/commit/8a2f099f14330221848c14808f3208e4dd2469bb
version: ff22ba3bff1010f4a2dd76ede789663c3beaf8d2
Expand Down
2 changes: 1 addition & 1 deletion cilium-certgen/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG BASE_IMAGE=scratch
ARG GOLANG_IMAGE=quay.io/cybozu/golang:1.17-focal
ARG GOLANG_IMAGE=quay.io/cybozu/golang:1.20-jammy

# Stage1: build
FROM ${GOLANG_IMAGE} as build
Expand Down
2 changes: 1 addition & 1 deletion cilium-certgen/TAG
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.8.1
0.1.9.1
ysksuzuki marked this conversation as resolved.
Show resolved Hide resolved
2 changes: 1 addition & 1 deletion cilium-operator-generic/BRANCH
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.12
1.13
18 changes: 10 additions & 8 deletions cilium-operator-generic/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG BASE_IMAGE=scratch
ARG GOLANG_IMAGE=quay.io/cybozu/golang:1.18-focal
ARG UBUNTU_IMAGE=quay.io/cybozu/ubuntu:20.04
ARG GOLANG_IMAGE=quay.io/cybozu/golang:1.20-jammy
ARG UBUNTU_IMAGE=quay.io/cybozu/ubuntu:22.04

# Stage1: build
FROM ${GOLANG_IMAGE} as build
Expand All @@ -9,10 +9,12 @@ COPY TAG /
COPY fix-metallb-bug.patch /tmp/

# LICENSE.all
WORKDIR /go/src/github.com/cilium/cilium
WORKDIR /go/src/github.com/cybozu-go/
RUN VERSION=$(cut -d \. -f 1,2,3 < /TAG ) \
&& curl -fsSL "https://github.com/cilium/cilium/archive/v${VERSION}.tar.gz" | \
tar xzf - --strip-components 1 \
# Since we use the fork and patched repogitory, we need to specify the branch name
&& BRANCH=v${VERSION}-lb-dsr-patch \
&& git clone --depth 1 --branch ${BRANCH} https://github.com/cybozu-go/cilium \
&& cd cilium \
&& patch -p1 --no-backup-if-mismatch < /tmp/fix-metallb-bug.patch \
&& make licenses-all \
&& apt-get update \
Expand All @@ -21,16 +23,16 @@ RUN VERSION=$(cut -d \. -f 1,2,3 < /TAG ) \
&& mkdir -p /etc/gops

# operator-generic
WORKDIR /go/src/github.com/cilium/cilium/operator
WORKDIR /go/src/github.com/cybozu-go/cilium/operator
RUN make cilium-operator-generic

# Stage2: runtime
FROM ${BASE_IMAGE}
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=build /out/linux/amd64/bin/gops /bin/gops
COPY --from=build --chown=10000:10000 /etc/gops /etc/gops
COPY --from=build /go/src/github.com/cilium/cilium/LICENSE.all /LICENSE
COPY --from=build /go/src/github.com/cilium/cilium/operator/cilium-operator-generic /usr/bin/cilium-operator-generic
COPY --from=build /go/src/github.com/cybozu-go/cilium/LICENSE.all /LICENSE
COPY --from=build /go/src/github.com/cybozu-go/cilium/operator/cilium-operator-generic /usr/bin/cilium-operator-generic

USER 10000:10000

Expand Down
2 changes: 1 addition & 1 deletion cilium-operator-generic/TAG
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.12.11.1
1.13.7.1
Loading