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 -ue | |
usage() | |
{ | |
cat << _EOF_ | |
Usage: $0 options | |
OPTIONS: | |
-h Display help. | |
-i Path to the image. |
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
{ | |
"ociVersion": "1.0.0-rc5-dev", | |
"platform": { | |
"os": "linux", | |
"arch": "amd64" | |
}, | |
"process": { | |
"terminal": true, | |
"user": { | |
"uid": 0, |
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
package main | |
import ( | |
"fmt" | |
"log" | |
"os" | |
"syscall" | |
"time" | |
) |
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
diff --git a/cmd/kpod/load.go b/cmd/kpod/load.go | |
index ae346bc8..97783682 100644 | |
--- a/cmd/kpod/load.go | |
+++ b/cmd/kpod/load.go | |
@@ -1,6 +1,8 @@ | |
package main | |
import ( | |
+ "fmt" | |
+ "os" |
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
kubeletArguments: | |
container-runtime: | |
- remote | |
container-runtime-endpoint: | |
- /var/run/crio.sock | |
experimental-cri: | |
- 'true' | |
image-service-endpoint: | |
- /var/run/crio.sock | |
node-labels: |
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
{ | |
"default": [ | |
{ | |
"type": "insecureAcceptAnything" | |
} | |
], | |
"transports": | |
{ | |
"docker-daemon": | |
{ |
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 -e | |
set -x | |
RUNC_GOPATH="$(mktemp -d)" | |
CONTAINERD_GOPATH="$(mktemp -d)" | |
PWD="$(pwd)" | |
function cleanup() { | |
rm -rf "${RUNC_GOPATH}" | |
rm -rf "${CONTAINERD_GOPATH}" |
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
package crierrors | |
import "errors" | |
import "google.golang.org/grpc/codes" | |
import "google.golang.org/grpc/status" | |
var ( | |
// ErrNotFound is a an error epresenting an object not found | |
// like a pod or a container. | |
ErrNotFound = errors.New("cri: not found") |
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
[mrunalp@fedora ~]$ oc debug node/ci-ln-448x92k-72292-wppv7-worker-a-v29zc | |
W0519 18:18:56.438639 166726 warnings.go:70] would violate PodSecurity "restricted:latest": host namespaces (hostNetwork=true, hostPID=true), hostPath volumes (volume "host"), privileged (container "container-00" must not set securityContext.privileged=true), allowPrivilegeEscalation != false (container "container-00" must set securityContext.allowPrivilegeEscalation=false), unrestricted capabilities (container "container-00" must set securityContext.capabilities.drop=["ALL"]), restricted volume types (volume "host" uses restricted volume type "hostPath"), runAsNonRoot != true (pod or container "container-00" must set securityContext.runAsNonRoot=true), runAsUser=0 (container "container-00" must not set runAsUser=0), seccompProfile (pod or container "container-00" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost") | |
Starting pod/ci-ln-448x92k-72292-wppv7-worker-a-v29zc-debug ... | |
To use host binaries, run `c |
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: v1 | |
kind: Pod | |
metadata: | |
name: httpd | |
spec: | |
containers: | |
- name: httpd | |
image: httpd:2.4-alpine |