mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-21 01:13:56 +00:00
Merge pull request #4514 from stevenhorsman/CCv0-update-crictl-pod-config
doc: Update crictl pod-config
This commit is contained in:
commit
0782f4a43b
@ -432,8 +432,8 @@ call_crictl_create_cc_pod() {
|
|||||||
# Update iptables to allow forwarding to the cni0 bridge avoiding issues caused by the docker0 bridge
|
# Update iptables to allow forwarding to the cni0 bridge avoiding issues caused by the docker0 bridge
|
||||||
sudo iptables -P FORWARD ACCEPT
|
sudo iptables -P FORWARD ACCEPT
|
||||||
|
|
||||||
# Create crictl pod config
|
# get_pod_config in tests_common exports `pod_config` that points to the prepared pod config yaml
|
||||||
local pod_config="${FIXTURES_DIR}/pod-config.yaml"
|
get_pod_config
|
||||||
|
|
||||||
crictl_delete_cc_pod_if_exists "${crictl_sandbox_name}"
|
crictl_delete_cc_pod_if_exists "${crictl_sandbox_name}"
|
||||||
crictl_create_cc_pod "${pod_config}"
|
crictl_create_cc_pod "${pod_config}"
|
||||||
@ -442,7 +442,9 @@ call_crictl_create_cc_pod() {
|
|||||||
|
|
||||||
call_crictl_create_cc_container() {
|
call_crictl_create_cc_container() {
|
||||||
# Create container configuration yaml based on our test copy of busybox
|
# Create container configuration yaml based on our test copy of busybox
|
||||||
local pod_config="${FIXTURES_DIR}/pod-config.yaml"
|
# get_pod_config in tests_common exports `pod_config` that points to the prepared pod config yaml
|
||||||
|
get_pod_config
|
||||||
|
|
||||||
local container_config="${FIXTURES_DIR}/${CONTAINER_CONFIG_FILE:-container-config.yaml}"
|
local container_config="${FIXTURES_DIR}/${CONTAINER_CONFIG_FILE:-container-config.yaml}"
|
||||||
local pod_name=${crictl_sandbox_name}
|
local pod_name=${crictl_sandbox_name}
|
||||||
crictl_create_cc_container ${pod_name} ${pod_config} ${container_config}
|
crictl_create_cc_container ${pod_name} ${pod_config} ${container_config}
|
||||||
|
@ -27,6 +27,8 @@ $ image="quay.io/prometheus/busybox:latest"
|
|||||||
$ cat << EOF > "${pod_yaml}"
|
$ cat << EOF > "${pod_yaml}"
|
||||||
metadata:
|
metadata:
|
||||||
name: busybox-sandbox1
|
name: busybox-sandbox1
|
||||||
|
uid: $(uuidgen)
|
||||||
|
namespace: default
|
||||||
EOF
|
EOF
|
||||||
$ cat << EOF > "${container_yaml}"
|
$ cat << EOF > "${container_yaml}"
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -32,6 +32,7 @@ The `nydus-sandbox.yaml` looks like below:
|
|||||||
metadata:
|
metadata:
|
||||||
attempt: 1
|
attempt: 1
|
||||||
name: nydus-sandbox
|
name: nydus-sandbox
|
||||||
|
uid: nydus-uid
|
||||||
namespace: default
|
namespace: default
|
||||||
log_directory: /tmp
|
log_directory: /tmp
|
||||||
linux:
|
linux:
|
||||||
|
@ -42,6 +42,8 @@ $ image="quay.io/prometheus/busybox:latest"
|
|||||||
$ cat << EOF > "${pod_yaml}"
|
$ cat << EOF > "${pod_yaml}"
|
||||||
metadata:
|
metadata:
|
||||||
name: busybox-sandbox1
|
name: busybox-sandbox1
|
||||||
|
uid: $(uuidgen)
|
||||||
|
namespace: default
|
||||||
EOF
|
EOF
|
||||||
$ cat << EOF > "${container_yaml}"
|
$ cat << EOF > "${container_yaml}"
|
||||||
metadata:
|
metadata:
|
||||||
|
Loading…
Reference in New Issue
Block a user