init
This commit is contained in:
13
runtimeclass/class.yaml
Normal file
13
runtimeclass/class.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
apiVersion: node.k8s.io/v1
|
||||
kind: RuntimeClass
|
||||
metadata:
|
||||
name: runc
|
||||
handler: runc # requires containerd
|
||||
overhead:
|
||||
podFixed:
|
||||
memory: 100Mi
|
||||
cpu: 100m
|
||||
scheduling:
|
||||
nodeSelector:
|
||||
kubernetes.io/os: linux
|
||||
# tolerations:
|
||||
6
runtimeclass/commands
Normal file
6
runtimeclass/commands
Normal file
@ -0,0 +1,6 @@
|
||||
minikube start --cpus 4 --memory 8192 --ports 80:80 --container-runtime=containerd
|
||||
|
||||
kubectl get node -o jsonpath='{.items[*].status.nodeInfo.containerRuntimeVersion}'
|
||||
|
||||
minikube ssh
|
||||
sudo cat /etc/containerd/config.toml
|
||||
13
runtimeclass/pod.yaml
Normal file
13
runtimeclass/pod.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: demo
|
||||
spec:
|
||||
runtimeClassName: runc
|
||||
containers:
|
||||
- name: demo
|
||||
image: ghcr.io/trion-development/echoserver:1
|
||||
resources: {}
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
|
||||
Reference in New Issue
Block a user