Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
0512d1e
Add `cluster` directory and health-monitor.sh.
Random-Liu Dec 11, 2017
30cbfb6
Add OS and arch in release tarball.
Random-Liu Dec 13, 2017
869ea6b
Add document for kube-up.sh
Random-Liu Dec 14, 2017
d50b9dd
Update containerd to 6c7abf7c76c1973d4fb4b0bad51691de84869a51.
Random-Liu Dec 15, 2017
680e21c
Update all glog flags to `log-level`.
Random-Liu Jan 17, 2018
be72f47
Add runtime cgroup and fix a cli panic.
Random-Liu Jan 25, 2018
9f0816a
Configure container runtime cgroups for cgroup.
Random-Liu Jan 30, 2018
7cbc1c8
Set registry mirror.
Random-Liu Feb 1, 2018
ec64907
Put version into metadata so that version won't be changed across
Random-Liu Feb 1, 2018
a843a30
Use registry-1.docker.io as backup
Random-Liu Feb 2, 2018
a010715
Add a separate CLI for cri-containerd `ctrcri`.
Random-Liu Feb 2, 2018
8bc30e7
Update ocicni to main stream.
Random-Liu Feb 7, 2018
24a3a0a
change crictl sandboxes to pods; other references to sandboxes
mikebrow Feb 7, 2018
56b7ef2
The ENV is finalized as KUBE_KUBELET_EXTRA_ARGS.
Random-Liu Feb 8, 2018
2ea6584
Add initial wait for health-monitor and use pkill -x.
Random-Liu Feb 14, 2018
85b4e69
Do not block on stream server close.
Random-Liu Feb 14, 2018
59e65e1
Enable container log rotation.
Random-Liu Feb 27, 2018
0e2bd21
Update GCE cluster bootstrapping and e2e test
Random-Liu Mar 5, 2018
005da4a
Replace `ctrcri` with `ctr cri`.
Random-Liu Mar 15, 2018
af8bd80
Fix for kube-up.sh and update several documments.
Random-Liu Mar 20, 2018
cdb4aec
Use systemd service cgroup and oom score adj.
Random-Liu Mar 28, 2018
d520fac
Enable TLS streaming in all the setup.
Random-Liu Apr 3, 2018
1bd3cdc
Add cni config template support.
Random-Liu Apr 7, 2018
4453aac
Improve gce bootstrapping in various ways.
Random-Liu Apr 17, 2018
c67a38b
Add log level support.
Random-Liu Apr 18, 2018
48457a2
Try using preloaded containerd if no version is specified.
Random-Liu Apr 19, 2018
1b995fc
Add KUBE_CONTAINER_RUNTIME_NAME to fix fluentd support.
Random-Liu Apr 20, 2018
5161f66
Add `unix://` prefix for socket addresses used by CRI remote client.
Random-Liu Apr 21, 2018
91f8e61
Use crictl installed in kube-up.sh
Random-Liu May 22, 2018
f938a16
Fix kube-container-runtime-monitor.
Random-Liu May 22, 2018
b58b6fe
Disable restart plugin on GCE.
Random-Liu May 23, 2018
37f2eca
Update cni.template
BSWANG May 28, 2018
042378d
Disable TLS streaming to work with new kubelet streaming proxy.
Random-Liu May 19, 2018
1629bab
Make max container log line size configurable through cloud init.
Random-Liu Jun 20, 2018
d8ce08f
Set stream server to serve on localhost on GCE.
Random-Liu Jun 26, 2018
b553fda
Remove crictl on GCE for all cases.
Random-Liu Jun 26, 2018
5ce7057
Serve streaming on localhost by default to match k8s 1.11 default.
Random-Liu Jul 20, 2018
201ad4d
Support netd in GCE bootstrap.
Random-Liu Jul 31, 2018
1467121
Remove the unused `health-monitor.sh`.
Random-Liu Nov 13, 2018
ce12477
Support docker 18.09 in the test script.
Random-Liu Mar 11, 2019
474c79b
Expose vars to configure an additional runtime handler
tallclair Feb 28, 2019
ee6d69b
Set default "" to extra runtime handler.
Random-Liu Mar 14, 2019
d19aa0f
Use local env to avoid writing to passed-in readonly env.
Random-Liu Apr 3, 2019
e6e272e
Enable runc.v2 as the default runtime in test.
Random-Liu Apr 4, 2019
5b9d847
Use runc.v1 for now for debugging.
Random-Liu Apr 9, 2019
5e3ac16
Add `cri` as required plugin.
Random-Liu Apr 12, 2019
cfab98a
Use ctr images import.
Random-Liu Apr 12, 2019
87bd84a
Add DefaultRuntimeName option.
Random-Liu Apr 8, 2019
1e1688d
Use per-pod shim.
Random-Liu Apr 29, 2019
231d291
Use v2 config.
Random-Liu Jun 11, 2019
523b0b3
Remove `noSnat`
Random-Liu Jul 25, 2019
9c54517
Add TaskMax=infinity
Random-Liu Aug 29, 2019
3e03ba7
Update deployment and integration test
Random-Liu Sep 17, 2019
cb7ffd4
Fix indent in cni.template.
Random-Liu Sep 23, 2019
e973719
use containerd/project header test
mikebrow Apr 22, 2020
ccda537
Create etcd user in cloud init.
Random-Liu Apr 6, 2020
1c7312e
Update containerd systemd unit file
dmcgowan Aug 8, 2020
d2472ec
Add CRI release build
dmcgowan Aug 7, 2020
60fa35f
Fix DCO commit limit
dmcgowan Aug 10, 2020
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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
uses: actions/checkout@v2
with:
path: src/github.com/containerd/containerd
fetch-depth: 25
fetch-depth: 100

- name: Checkout project repo
uses: actions/checkout@v2
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
if [ -z "${GITHUB_COMMIT_URL}" ]; then
DCO_RANGE=$(jq -r '.after + "..HEAD"' ${GITHUB_EVENT_PATH})
else
DCO_RANGE=$(curl ${GITHUB_COMMIT_URL} | jq -r '.[0].parents[0].sha +".."+ .[-1].sha')
DCO_RANGE=$(curl ${GITHUB_COMMIT_URL} | jq -r '.[0].parents[0].sha + "..HEAD"')
fi
../project/script/validate/dco

Expand Down
110 changes: 99 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,18 @@ jobs:

- name: Set env
shell: bash
env:
MOS: ${{ matrix.os }}
run: |
releasever=${{ github.ref }}
releasever="${releasever#refs/tags/}"
os=linux
[[ "${MOS}" =~ "windows" ]] && {
os=windows
}
echo "::set-env name=RELEASE_VER::${releasever}"
echo "::set-env name=GOPATH::${{ github.workspace }}"
echo "::set-env name=OS::${os}"
echo "::add-path::${{ github.workspace }}/bin"

- name: Checkout containerd
Expand All @@ -79,29 +86,29 @@ jobs:
repository: containerd/containerd
ref: ${{ github.ref }}
path: src/github.com/containerd/containerd

- name: HCS Shim commit
id: hcsshim_commit
if: startsWith(matrix.os, 'windows')
shell: bash
run: echo "::set-output name=sha::$(grep Microsoft/hcsshim vendor.conf | awk '{print $2}')"
working-directory: src/github.com/containerd/containerd

- name: Checkout hcsshim source
if: startsWith(matrix.os, 'windows')
uses: actions/checkout@v2
with:
repository: Microsoft/hcsshim
ref: ${{ steps.hcsshim_commit.outputs.sha }}
path: src/github.com/Microsoft/hcsshim

- name: Make
shell: bash
env:
MOS: ${{ matrix.os }}
OS: linux
run: |
make build
make binaries
[[ "${MOS}" =~ "windows" ]] && {
OS=windows
rm bin/containerd-stress*
[[ "${OS}" == "windows" ]] && {
(
bindir="$(pwd)/bin"
cd ../../Microsoft/hcsshim
Expand All @@ -119,6 +126,47 @@ jobs:
name: containerd-binaries-${{ matrix.os }}
path: src/github.com/containerd/containerd/*.tar.gz*

- name: Install cri-containerd dependencies
shell: bash
env:
RUNC_FLAVOR: runc
DESTDIR: ${{ github.workspace }}/cri-release
run: |
mkdir ${DESTDIR}
if [[ "${OS}" == "linux" ]]; then
sudo install -d ${DESTDIR}/usr/local/bin
sudo install -D -m 755 bin/* ${DESTDIR}/usr/local/bin
sudo install -d ${DESTDIR}/opt/containerd/cluster
sudo cp -r contrib/gce ${DESTDIR}/opt/containerd/cluster/
sudo install -d ${DESTDIR}/etc/systemd/system
sudo install -m 644 containerd.service ${DESTDIR}/etc/systemd/system
echo "CONTAINERD_VERSION: '${RELEASE_VER#v}'" | sudo tee ${DESTDIR}/opt/containerd/cluster/version

sudo PATH=$PATH script/setup/install-seccomp
USESUDO=true script/setup/install-runc
script/setup/install-cni
script/setup/install-critools
elif [[ "${OS}" == "windows" ]]; then
script/setup/install-cni-windows
cp bin/* ${DESTDIR}/
fi
working-directory: src/github.com/containerd/containerd

- name: Make cri-containerd tar
Comment thread
AkihiroSuda marked this conversation as resolved.
Outdated
shell: bash
run: |
TARFILE="cri-containerd-cni-${RELEASE_VER#v}-${OS}-amd64.tar.gz"
[[ "${OS}" == "linux" ]] && tar czf ${TARFILE} etc usr opt
[[ "${OS}" == "windows" ]] && tar czf ${TARFILE} *
sha256sum ${TARFILE} >${TARFILE}.sha256sum
working-directory: cri-release

- name: Save cri-containerd binaries
uses: actions/upload-artifact@v2
with:
name: cri-containerd-binaries-${{ matrix.os }}
path: cri-release/cri-containerd-cni-*.tar.gz*

release:
name: Create containerd Release
runs-on: ubuntu-18.04
Expand All @@ -135,8 +183,12 @@ jobs:
run: |
_filenum=1
for i in "ubuntu-18.04" "windows-2019"; do
for i in `ls builds/containerd-binaries-${i}`; do
echo "::set-output name=file${_filenum}::${i}"
for f in `ls builds/containerd-binaries-${i}`; do
echo "::set-output name=file${_filenum}::${f}"
let "_filenum+=1"
done
for f in `ls builds/cri-containerd-binaries-${i}`; do
echo "::set-output name=file${_filenum}::${f}"
let "_filenum+=1"
done
done
Expand Down Expand Up @@ -169,21 +221,57 @@ jobs:
asset_path: ./builds/containerd-binaries-ubuntu-18.04/${{ steps.catalog.outputs.file2 }}
asset_name: ${{ steps.catalog.outputs.file2 }}
asset_content_type: text/plain
- name: Upload Windows containerd tarball
- name: Upload Linux cri containerd tarball
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./builds/containerd-binaries-windows-2019/${{ steps.catalog.outputs.file3 }}
asset_path: ./builds/cri-containerd-binaries-ubuntu-18.04/${{ steps.catalog.outputs.file3 }}
asset_name: ${{ steps.catalog.outputs.file3 }}
asset_content_type: application/gzip
- name: Upload Windows sha256 sum
- name: Upload Linux cri sha256 sum
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./builds/containerd-binaries-windows-2019/${{ steps.catalog.outputs.file4 }}
asset_path: ./builds/cri-containerd-binaries-ubuntu-18.04/${{ steps.catalog.outputs.file4 }}
asset_name: ${{ steps.catalog.outputs.file4 }}
asset_content_type: text/plain
- name: Upload Windows containerd tarball
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./builds/containerd-binaries-windows-2019/${{ steps.catalog.outputs.file5 }}
asset_name: ${{ steps.catalog.outputs.file5 }}
asset_content_type: application/gzip
- name: Upload Windows sha256 sum
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./builds/containerd-binaries-windows-2019/${{ steps.catalog.outputs.file6 }}
asset_name: ${{ steps.catalog.outputs.file6 }}
asset_content_type: text/plain
- name: Upload Windows cri containerd tarball
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./builds/cri-containerd-binaries-windows-2019/${{ steps.catalog.outputs.file7 }}
asset_name: ${{ steps.catalog.outputs.file7 }}
asset_content_type: application/gzip
- name: Upload Windows cri sha256 sum
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./builds/cri-containerd-binaries-windows-2019/${{ steps.catalog.outputs.file8 }}
asset_name: ${{ steps.catalog.outputs.file8 }}
asset_content_type: text/plain
2 changes: 2 additions & 0 deletions containerd.service
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Type=notify
Delegate=yes
KillMode=process
Restart=always
RestartSec=5
# Having non-zero Limit*s causes performance problems due to accounting overhead
# in the kernel. We recommend using cgroups to do container-local accounting.
LimitNPROC=infinity
Expand All @@ -19,6 +20,7 @@ LimitNOFILE=1048576
# Comment TasksMax if your systemd version does not supports it.
# Only systemd 226 and above support this version.
TasksMax=infinity
OOMScoreAdjust=-999

[Install]
WantedBy=multi-user.target
Loading