---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
k8s.kuboard.cn/name: swarm-rpc
name: swarm-rpc
namespace: swarm
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
k8s.kuboard.cn/name: swarm-rpc
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
annotations:
k8s.aliyun.com/pod-eip-instanceid: eip-122222222222222222
k8s.aliyun.com/pod-with-eip: 'true'
labels:
k8s.kuboard.cn/name: swarm-rpc
spec:
containers:
- args:
- '--JsonRpc.Enabled'
- 'true'
- '--JsonRpc.Host'
- 0.0.0.0
- '--datadir'
- data
image: nethermind/nethermind
imagePullPolicy: IfNotPresent
name: swarm-rpc
ports:
- containerPort: 8545
name: http
protocol: TCP
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /nethermind/data
name: rpc-data
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
terminationGracePeriodSeconds: 30
volumes:
- name: rpc-data
persistentVolumeClaim:
claimName: rpc-data