Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.49 KB | None | 0 0
  1. apiVersion: apps/v1
  2. kind: StatefulSet
  3. metadata:
  4.   name: statuful-parity-fast-ss
  5. spec:
  6.   serviceName: "statuful-parity-fast"
  7.   replicas: 1
  8.   selector:
  9.     matchLabels:
  10.       app: statuful-parity-fast
  11.   template:
  12.     metadata:
  13.       labels:
  14.         app: statuful-parity-fast
  15.     spec:
  16.       securityContext:
  17.         fsGroup: 1000
  18.       containers:
  19.       - name: statuful-parity-fast
  20.         image: parity/parity:stable
  21.         args: [
  22.           "--warp",
  23.           "--no-ancient-blocks",
  24.           "--no-serve-light",
  25.           "--max-peers",
  26.           "250",
  27.           "--snapshot-peers",
  28.           "50",
  29.           "--min-peers",
  30.           "50",
  31.           "--mode",
  32.           "active",
  33.           "--tracing",
  34.           "off",
  35.           "--pruning",
  36.           "fast",
  37.           "--db-compaction",
  38.           "ssd",
  39.           "--cache-size",
  40.           "4096",
  41.           "--jsonrpc-port",
  42.           "8545",
  43.           "--jsonrpc-hosts",
  44.           "all",
  45.           "--jsonrpc-interface",
  46.           "all",
  47.           "--jsonrpc-apis",
  48.           "all",
  49.           "-d",
  50.           "/ethereum-data"
  51.         ]
  52.         ports:
  53.         - containerPort: 8545
  54.           name: rpc
  55.         - containerPort: 30303
  56.           name: default
  57.         volumeMounts:
  58.         - name: vct
  59.           mountPath: /ethereum-data
  60.   volumeClaimTemplates:
  61.   - metadata:
  62.       name: vct
  63.     spec:
  64.       accessModes: [ "ReadWriteOnce" ]
  65.       resources:
  66.         requests:
  67.           storage: 400Gi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement