51 lines
1.0 KiB
YAML
51 lines
1.0 KiB
YAML
kind: Deployment
|
|
apiVersion: apps/v1
|
|
metadata:
|
|
name: ipfs
|
|
namespace: ipfs
|
|
spec:
|
|
strategy:
|
|
type: Recreate
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: ipfs
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: ipfs
|
|
spec:
|
|
volumes:
|
|
- name: data
|
|
hostPath:
|
|
path: /data/ipfs
|
|
type: DirectoryOrCreate
|
|
containers:
|
|
- name: ipfs
|
|
# image: cr.wetofu.me/ipfs/kubo:v0.41.0
|
|
image: image
|
|
ports:
|
|
- containerPort: 4001
|
|
name: ipfs-p2p
|
|
- containerPort: 5001
|
|
name: ipfs-api
|
|
- containerPort: 8080
|
|
name: ipfs-webui
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /data/ipfs
|
|
subPath: ipfs
|
|
- name: data
|
|
mountPath: /export
|
|
subPath: export
|
|
resources:
|
|
requests:
|
|
cpu: 250m
|
|
memory: 256M
|
|
limits:
|
|
cpu: '1'
|
|
memory: '1Gi'
|
|
envFrom:
|
|
- configMapRef:
|
|
name: ipfs-env
|