mirror of
https://github.com/hanzo-labs/ethereum-cluster.git
synced 2026-10-30 18:54:23 +00:00
37 lines
1.0 KiB
YAML
37 lines
1.0 KiB
YAML
apiVersion: apps/v1beta2
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ template "ethereum.fullname" . }}-ethstats
|
|
labels:
|
|
app: {{ template "ethereum.name" . }}
|
|
chart: {{ template "ethereum.chart" . }}
|
|
release: {{ .Release.Name }}
|
|
heritage: {{ .Release.Service }}
|
|
component: ethstats
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: {{ template "ethereum.name" . }}
|
|
release: {{ .Release.Name }}
|
|
component: ethstats
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: {{ template "ethereum.name" . }}
|
|
release: {{ .Release.Name }}
|
|
component: ethstats
|
|
spec:
|
|
containers:
|
|
- name: ethstats
|
|
image: {{ .Values.ethstats.image.repository }}:{{ .Values.ethstats.image.tag }}
|
|
imagePullPolicy: {{ .Values.imagePullPolicy }}
|
|
ports:
|
|
- name: http
|
|
containerPort: 3000
|
|
env:
|
|
- name: WS_SECRET
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: {{ template "ethereum.fullname" . }}-ethstats
|
|
key: WS_SECRET |