pvc

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: lotus-data
  namespace: fil
spec:
  accessModes:
  - ReadWriteOnce
  resources:
    requests:
      storage: "1000Gi"
  volumeName: 
  storageClassName: nas

Deployment

apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    k8s.kuboard.cn/name: lotus
  name: lotus
  namespace: fil
spec:
  replicas: 1
  selector:
    matchLabels:
      k8s.kuboard.cn/name: lotus
  template:
    metadata:
      annotations:
        k8s.aliyun.com/pod-eip-instanceid: eip-222222222222222222
        k8s.aliyun.com/pod-with-eip: 'true'
      labels:
        k8s.kuboard.cn/name: lotus
    spec:
      containers:
        - env:
            - name: INFRA_LOTUS_DAEMON
              value: 'true'
            - name: INFRA_LOTUS_HOME
              value: /home/lotus_user
            - name: INFRA_IMPORT_SNAPSHOT
              value: 'true'
            - name: SNAPSHOTURL
              value: >-
                https://fil-chain-snapshots-fallback.s3.amazonaws.com/mainnet/minimal_finality_stateroots_latest.car
            - name: INFRA_SYNC
              value: 'true'
          image: 'glif/lotus:v1.11.0'
          imagePullPolicy: IfNotPresent
          name: lotus
          ports:
            - containerPort: 1234
              name: api
              protocol: TCP
            - containerPort: 1235
              name: p2p
              protocol: TCP
          volumeMounts:
            - mountPath: /home/lotus_user
              name: lotus-data
      volumes:
        - name: lotus-data
          persistentVolumeClaim:
            claimName: lotus-data


config.toml

# Default config:
[API]
  ListenAddress = "/ip4/0.0.0.0/tcp/1234/http"
  RemoteListenAddress = "0.0.0.0"
#  Timeout = "30s"
#
[Backup]
#  DisableMetadataLog = false
#
[Libp2p]
  ListenAddresses = ["/ip4/0.0.0.0/tcp/1235", "/ip6/::/tcp/1235"]
  AnnounceAddresses = ["/ip4/111.111.111.111/tcp/1235"]
#改成自己的公网ip
#  NoAnnounceAddresses = []
#  ConnMgrLow = 150
#  ConnMgrHigh = 180
#  ConnMgrGrace = "20s"
#
[Pubsub]
#  Bootstrapper = false
#  RemoteTracer = "/dns4/pubsub-tracer.filecoin.io/tcp/4001/p2p/QmTd6UvR47vUidRNZ1ZKXHrAFhqTJAD27rKL9XYghEKgKX"
#
[Client]
#  UseIpfs = false
#  IpfsOnlineMode = false
#  IpfsMAddr = ""
#  IpfsUseForRetrieval = false
#  SimultaneousTransfers = 20
#
[Metrics]
#  Nickname = ""
#  HeadNotifs = false
#
[Wallet]
#  RemoteBackend = ""
#  EnableLedger = false
#  DisableLocal = false
#
[Fees]
#  DefaultMaxFee = "0.07 FIL"
#
[Chainstore]
#  EnableSplitstore = false
#  [Chainstore.Splitstore]
#    HotStoreType = "badger"
#    TrackingStoreType = ""
#    MarkSetType = ""
#    EnableFullCompaction = false
#    EnableGC = false
#    Archival = false
#

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code