PR_NUMBER=
git fetch origin pull/${PR_NUMBER}/head:TARGET
git checkout TARGET
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -o errexit | |
set -o nounset | |
set -o pipefail | |
set -o errtrace | |
sudo modprobe vfio_pci | |
sudo modprobe vfio_iommu_type1 allow_unsafe_interrupts | |
bus_slot="03:00.0" |
Test based workloads from: kata-containers/tests#1975
Pod size (using limits): cpus: 4 memory: 2Gbi
Notes: 721.423095: Odd this should be at most 4 cpus cpu stats are in percentage so 400 is = 5 cpus
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Copyright (c) 2018 Intel Corporation | |
# | |
# SPDX-License-Identifier: Apache-2.0 | |
# | |
set -o errexit | |
set -o nounset | |
set -o pipefail |
Kata Containers is an OCI compatible runtime, but sometimes with the extra security layer (VM), compatibility is difficult.
One feature that is difficult to be compatible is cgroups in host.
The runtime caller will provide in the config.json
a set requeriments for cgroups.
CgroupPath
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
name: iperf-overlay-client | |
spec: | |
template: | |
metadata: | |
labels: | |
app: iperf-overlay-client | |
spec: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create runc container | |
ef10581a552ca4bc529be8789e63acb662501f78fbc1856d5c42a29c8b364a61 | |
cgroup info: runc-1/ef10581a552ca4bc529be8789e63acb662501f78fbc1856d5c42a29c8b364a61 | |
type: memory | |
procs: | |
process:bash� | |
pid: 4083 | |
tasks: | |
process:bash� | |
pid: 4083 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setup_url=https://raw.githubusercontent.com/jcvenegas/cloud-native-setup/setup_system_ubuntu.sh/clr-k8s-examples/setup_system_ubuntu.sh | |
curl ${setup_url} | bash /dev/stdin all |