62
k8s/spin.yaml
Normal file
62
k8s/spin.yaml
Normal file
@@ -0,0 +1,62 @@
|
||||
---
|
||||
# Source: spin-containerd-shim-installer/templates/daemonset.yaml
|
||||
apiVersion: apps/v1
|
||||
kind: DaemonSet
|
||||
metadata:
|
||||
name: spin-containerd-shim-installer
|
||||
labels:
|
||||
helm.sh/chart: spin-containerd-shim-installer-0.10.0
|
||||
app.kubernetes.io/name: spin-containerd-shim-installer
|
||||
app.kubernetes.io/instance: spin-containerd-shim-installer
|
||||
app.kubernetes.io/version: "0.10.0"
|
||||
app.kubernetes.io/managed-by: Helm
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: spin-containerd-shim-installer
|
||||
app.kubernetes.io/instance: spin-containerd-shim-installer
|
||||
updateStrategy:
|
||||
type: OnDelete
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: spin-containerd-shim-installer
|
||||
app.kubernetes.io/instance: spin-containerd-shim-installer
|
||||
spec:
|
||||
hostPID: true
|
||||
volumes:
|
||||
- name: host-etc-containerd
|
||||
hostPath:
|
||||
path: /var/lib/rancher/k3s/agent/etc/containerd
|
||||
- name: host-bin
|
||||
hostPath:
|
||||
path: /usr/local/bin
|
||||
initContainers:
|
||||
- name: installer
|
||||
image: "ghcr.io/fermyon/spin-containerd-shim-installer:0.10.0"
|
||||
imagePullPolicy: IfNotPresent
|
||||
resources:
|
||||
{}
|
||||
securityContext:
|
||||
privileged: true
|
||||
env:
|
||||
- name: HOST_CONTAINERD_CONFIG
|
||||
value: /host/etc/containerd/config.toml
|
||||
- name: HOST_BIN
|
||||
value: /host/bin
|
||||
volumeMounts:
|
||||
- name: host-etc-containerd
|
||||
mountPath: /host/etc/containerd
|
||||
- name: host-bin
|
||||
mountPath: /host/bin
|
||||
containers:
|
||||
- name: pause
|
||||
image: k8s.gcr.io/pause:3.1
|
||||
imagePullPolicy: IfNotPresent
|
||||
---
|
||||
# Source: spin-containerd-shim-installer/templates/runtimeclass.yaml
|
||||
apiVersion: node.k8s.io/v1
|
||||
kind: RuntimeClass
|
||||
metadata:
|
||||
name: wasmtime-spin-v1
|
||||
handler: spin
|
Reference in New Issue
Block a user