ipfs功能
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
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
|
||||
Reference in New Issue
Block a user