Update pod templates to use new snapshot approach

This commit is contained in:
2018-04-14 15:35:31 -05:00
parent 973400106f
commit 74009e5c81
2 changed files with 31 additions and 21 deletions
+15 -10
View File
@@ -1,16 +1,16 @@
apiVersion: v1
kind: Pod
metadata:
name: geth-mainnet
name: geth-mainnet-000
spec:
nodeSelector:
cloud.google.com/gke-nodepool: default-pool
cloud.google.com/gke-nodepool: geth-mainnet
containers:
- name: geth-mainnet
- name: geth-mainnet-000
image: gcr.io/hanzo-ai/geth:latest
resources:
requests:
cpu: 8
cpu: 3
memory: 8Gi
command:
- /bin/geth
@@ -20,14 +20,19 @@ spec:
- --cache=4096
- --rpc
- --rpcaddr=0.0.0.0
- --rpcport=13264
- --rpcport=8545
- --rpccorsdomain="*"
- --ws
- --wsaddr=0.0.0.0
- --wsport=8546
- --wsorigins="*"
- --syncmode=fast
- --maxpeers=50
- --rpccorsdomain="*"
volumeMounts:
- mountPath: '/data/geth/chaindata'
name: geth-mainnet-pv
name: geth-mainnet-000-pv
volumes:
- name: geth-mainnet-pv
persistentVolumeClaim:
claimName: geth-mainnet-pvc
- name: geth-mainnet-000-pv
gcePersistentDisk:
pdName: geth-mainnet-000-pd
fsType: ext4
+16 -11
View File
@@ -1,37 +1,42 @@
apiVersion: v1
kind: Pod
metadata:
name: geth-testnet
name: geth-testnet-000
spec:
nodeSelector:
cloud.google.com/gke-nodepool: default-pool
containers:
- name: geth-testnet
- name: geth-testnet-000
image: gcr.io/hanzo-ai/geth:latest
resources:
requests:
cpu: 1
memory: 4Gi
memory: 2Gi
limits:
cpu: 2
memory: 6Gi
memory: 4Gi
command:
- /bin/geth
args:
- --datadir=/data
- --ethash.dagdir=/data/geth/chaindata/dag
- --cache=2048
- --cache=1024
- --rpc
- --rpcaddr=0.0.0.0
- --rpcport=13264
- --rpcport=8545
- --rpccorsdomain="*"
- --ws
- --wsaddr=0.0.0.0
- --wsport=8546
- --wsorigins="*"
- --syncmode=fast
- --maxpeers=25
- --rpccorsdomain="*"
- --testnet
volumeMounts:
- mountPath: '/data/geth/chaindata'
name: geth-testnet-pv
name: geth-testnet-000-pv
volumes:
- name: geth-testnet-pv
persistentVolumeClaim:
claimName: geth-testnet-pvc
- name: geth-testnet-000-pv
gcePersistentDisk:
pdName: geth-testnet-000-pd
fsType: ext4