Skip to content

Commit 0bea2b1

Browse files
author
Katie Horne
authored
chore: add link to Podman limitations list (coder#817)
1 parent 77bcd0c commit 0bea2b1

File tree

1 file changed

+44
-41
lines changed

1 file changed

+44
-41
lines changed

guides/deployments/podman.md

Lines changed: 44 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ containers specification. Podman is useful if you'd like an alternative to
1111
[CVM workspaces](../../admin/workspace-management/cvms/index.md) or if your
1212
Linux kernel doesn't support CVMs.
1313

14+
> Please be aware that there are
15+
> [limitations related to running Podman in rootless mode](https://github.com/containers/podman/blob/main/rootless.md#shortcomings-of-rootless-podman).
16+
1417
1. Install `smarter-device-manager` and expose the FUSE device through it. To do
1518
so, create a file called `smarter-device-manager.yaml` with the following
1619
contents:
@@ -22,7 +25,7 @@ Linux kernel doesn't support CVMs.
2225
name: smarter-device-manager
2326
labels:
2427
name: smarter-device-manager
25-
28+
2629
---
2730
apiVersion: v1
2831
kind: ResourceQuota
@@ -34,11 +37,11 @@ Linux kernel doesn't support CVMs.
3437
pods: 50
3538
scopeSelector:
3639
matchExpressions:
37-
- operator: In
38-
scopeName: PriorityClass
39-
values:
40-
- system-node-critical
41-
- system-cluster-critical
40+
- operator: In
41+
scopeName: PriorityClass
42+
values:
43+
- system-node-critical
44+
- system-cluster-critical
4245
---
4346
apiVersion: v1
4447
kind: ConfigMap
@@ -47,9 +50,9 @@ Linux kernel doesn't support CVMs.
4750
namespace: smarter-device-manager
4851
data:
4952
conf.yaml: |+
50-
- devicematch: ^fuse$
51-
nummaxdevices: 50
52-
53+
- devicematch: ^fuse$
54+
nummaxdevices: 50
55+
5356
---
5457
apiVersion: apps/v1
5558
kind: DaemonSet
@@ -79,42 +82,42 @@ Linux kernel doesn't support CVMs.
7982
hostNetwork: true
8083
dnsPolicy: ClusterFirstWithHostNet
8184
containers:
82-
- name: smarter-device-manager
83-
image: registry.gitlab.com/arm-research/smarter/smarter-device-manager:v1.20.7
84-
imagePullPolicy: IfNotPresent
85-
securityContext:
86-
allowPrivilegeEscalation: false
87-
capabilities:
88-
drop: ["ALL"]
89-
resources:
90-
limits:
91-
cpu: 100m
92-
memory: 15Mi
93-
requests:
94-
cpu: 10m
95-
memory: 15Mi
96-
volumeMounts:
85+
- name: smarter-device-manager
86+
image: registry.gitlab.com/arm-research/smarter/smarter-device-manager:v1.20.7
87+
imagePullPolicy: IfNotPresent
88+
securityContext:
89+
allowPrivilegeEscalation: false
90+
capabilities:
91+
drop: ["ALL"]
92+
resources:
93+
limits:
94+
cpu: 100m
95+
memory: 15Mi
96+
requests:
97+
cpu: 10m
98+
memory: 15Mi
99+
volumeMounts:
100+
- name: device-plugin
101+
mountPath: /var/lib/kubelet/device-plugins
102+
- name: dev-dir
103+
mountPath: /dev
104+
- name: sys-dir
105+
mountPath: /sys
106+
- name: config
107+
mountPath: /root/config
108+
volumes:
97109
- name: device-plugin
98-
mountPath: /var/lib/kubelet/device-plugins
110+
hostPath:
111+
path: /var/lib/kubelet/device-plugins
99112
- name: dev-dir
100-
mountPath: /dev
113+
hostPath:
114+
path: /dev
101115
- name: sys-dir
102-
mountPath: /sys
116+
hostPath:
117+
path: /sys
103118
- name: config
104-
mountPath: /root/config
105-
volumes:
106-
- name: device-plugin
107-
hostPath:
108-
path: /var/lib/kubelet/device-plugins
109-
- name: dev-dir
110-
hostPath:
111-
path: /dev
112-
- name: sys-dir
113-
hostPath:
114-
path: /sys
115-
- name: config
116-
configMap:
117-
name: smarter-device-manager
119+
configMap:
120+
name: smarter-device-manager
118121
terminationGracePeriodSeconds: 30
119122
```
120123

0 commit comments

Comments
 (0)