This repository was archived by the owner on Jul 14, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
This repository was archived by the owner on Jul 14, 2025. It is now read-only.
Using limits with the shim makes the pod fail. #194
Copy link
Copy link
Open
Description
The livenessProbe reports failure continuously. Not sure if the pod is restarted because of that, but that it actually runs, or what the problem is.
Repro using k3d
k3d cluster create wasm-cluster \
--image ghcr.io/deislabs/containerd-wasm-shims/examples/k3d:v0.10.0 \
-p "8081:80@loadbalancer" \
--agents 0
kubectl apply -f https://raw.githubusercontent.com/deislabs/containerd-wasm-shims/main/deployments/workloads/runtime.yaml
Then apply the following workloads for comparison:
apiVersion: apps/v1
kind: Deployment
metadata:
name: fails
spec:
replicas: 1
selector:
matchLabels:
app: fails
template:
metadata:
labels:
app: fails
spec:
runtimeClassName: wasmtime-spin
containers:
- name: fails
image: ghcr.io/deislabs/containerd-wasm-shims/examples/spin-rust-hello:latest
command: ["/"]
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
livenessProbe:
httpGet:
path: .well-known/spin/health
port: 80
initialDelaySeconds: 3
periodSeconds: 3
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: works
spec:
replicas: 1
selector:
matchLabels:
app: works
template:
metadata:
labels:
app: works
spec:
runtimeClassName: wasmtime-spin
containers:
- name: works
image: ghcr.io/deislabs/containerd-wasm-shims/examples/spin-rust-hello:latest
command: ["/"]
resources:
requests:
cpu: 100m
memory: 128Mi
livenessProbe:
httpGet:
path: .well-known/spin/health
port: 80
initialDelaySeconds: 3
periodSeconds: 3
jsturtevant
Metadata
Metadata
Assignees
Labels
No labels