Skip to content

Instantly share code, notes, and snippets.

@Aracki
Last active May 30, 2022 21:49
Show Gist options
  • Save Aracki/6ce59ace7c64afed3c606812850e69da to your computer and use it in GitHub Desktop.
Save Aracki/6ce59ace7c64afed3c606812850e69da to your computer and use it in GitHub Desktop.
Used for AWS/GCP testing
apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
labels:
app: fantom-testnet-node
name: fantom-testnet-node
namespace: blockchain
spec:
selector:
matchLabels:
app: fantom-testnet-node
serviceName: fantom-testnet-node
template:
metadata:
labels:
app: fantom-testnet-node
spec:
containers:
- args:
- -c
- /opera --genesis /testnet-genesis.json --datadir=/root/.ethereum --cache
4092 --http --http.addr 0.0.0.0 --http.port 18545 --http.api eth,net,web3,admin,debug,personal,txpool
--http.corsdomain '*' --http.vhosts '*' --ws --ws.addr 0.0.0.0 --ws.port
18546 --ws.api eth,net,web3,admin,debug,personal,txpool --ws.origins '*'
command:
- /bin/sh
image: tenderly/opera:1.1.0-rc.3-tenderly
imagePullPolicy: IfNotPresent
name: fantom
ports:
- containerPort: 18545
name: http
protocol: TCP
- containerPort: 18546
name: ws
protocol: TCP
resources:
requests:
cpu: 500m
memory: 1Gi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /root
name: nodedata
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
updateStrategy:
type: RollingUpdate
volumeClaimTemplates:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: nodedata
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 256Gi
storageClassName: premium-rwo
volumeMode: Filesystem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment