benchmark/kubernetes: fix consensus

This commit is contained in:
Alan Chen 2017-09-21 17:50:46 +08:00
parent 74a3b06e4d
commit a51e1a5397
1 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
apiVersion: v1
kind: Service
metadata:
name: {{ template "fullname" . }}
labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
environment: {{ template "environment" . }}
spec:
type: {{ .Values.service.type }}
{{- if .Values.service.staticIP }}
clusterIP: {{ .Values.service.staticIP | quote }}
{{- end }}
ports:
- port: {{ .Values.ethereum.port }}
targetPort: {{ .Values.ethereum.port }}
protocol: TCP
name: p2p
selector:
app: {{ template "fullname" . }}