Skip to content

Instantly share code, notes, and snippets.

@serefyarar
Created July 18, 2023 08:46
Show Gist options
  • Save serefyarar/8b1eee134bef4217666121dc8fbf2884 to your computer and use it in GitHub Desktop.
Save serefyarar/8b1eee134bef4217666121dc8fbf2884 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: ConfigMap
metadata:
name: ipfs-env
labels:
app: ipfs
data:
IPFS_ENABLE_S3: "true"
IPFS_S3_REGION: "us-east-1"
IPFS_S3_BUCKET_NAME: "**"
IPFS_S3_ROOT_DIRECTORY: "ipfs"
IPFS_S3_ACCESS_KEY_ID: "***"
IPFS_S3_SECRET_ACCESS_KEY: "***"
IPFS_S3_KEY_TRANSFORM: "next-to-last/2"
apiVersion: apps/v1
kind: Deployment
metadata:
name: ipfs
labels:
app: ipfs
spec:
replicas: 1
selector:
matchLabels:
app: ipfs
template:
metadata:
labels:
app: ipfs
spec:
containers:
- name: ipfs-daemon
image: ceramicnetwork/go-ipfs-daemon:latest
envFrom:
- configMapRef:
name: ipfs-env
ports:
- name: api
containerPort: 5001
- name: healthcheck
containerPort: 8011
startupProbe:
httpGet:
port: healthcheck
path: /
failureThreshold: 20
periodSeconds: 5
livenessProbe:
httpGet:
port: healthcheck
path: /
failureThreshold: 1
periodSeconds: 5
---
apiVersion: v1
kind: Service
metadata:
name: ipfs
labels:
app: ipfs
spec:
type: ClusterIP
selector:
app: ipfs
ports:
- name: api
port: 5001
targetPort: api
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment