Last active
May 22, 2018 04:16
-
-
Save DazWilkin/9389e000dae19ba5d0613d430b942fbb to your computer and use it in GitHub Desktop.
Ethereum on Google Cloud Platform
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: ethereum | |
spec: | |
storageClassName: standard | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 500Gi | |
... | |
--- | |
kind: Deployment | |
apiVersion: extensions/v1beta1 | |
metadata: | |
name: ethereum | |
labels: | |
run: ethereum | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
run: ethereum | |
template: | |
metadata: | |
labels: | |
run: ethereum | |
spec: | |
containers: | |
- name: ethereum | |
image: ethereum/client-go | |
args: [ | |
"--rpc", | |
"--rpcaddr=0.0.0.0" | |
] | |
imagePullPolicy: Always | |
ports: | |
- name: json-rpc | |
containerPort: 8545 | |
protocol: TCP | |
- name: default | |
containerPort: 30303 | |
protocol: TCP | |
volumeMounts: | |
- name: ethereum | |
mountPath: /root | |
volumes: | |
- name: ethereum | |
persistentVolumeClaim: | |
claimName: ethereum | |
... | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: ethereum | |
labels: | |
run: ethereum | |
spec: | |
ports: | |
- name: json-rpc | |
port: 30303 | |
protocol: TCP | |
targetPort: 30303 | |
- name: default | |
port: 8545 | |
protocol: TCP | |
targetPort: 8545 | |
selector: | |
run: ethereum | |
type: NodePort | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment