mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-12 14:41:15 +00:00
extending the helm chart
exposing telemetry core service adding hpa support for telemetry shard
This commit is contained in:
@@ -39,7 +39,7 @@ spec:
|
||||
- "telemetry_core"
|
||||
args:
|
||||
- "--listen"
|
||||
- "0.0.0.0:8000"
|
||||
- "0.0.0.0:{{ .Values.service.core.targetPort }}"
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: {{ .Values.service.core.targetPort }}
|
||||
|
||||
@@ -39,9 +39,9 @@ spec:
|
||||
- "telemetry_shard"
|
||||
args:
|
||||
- "--listen"
|
||||
- "0.0.0.0:8000"
|
||||
- "0.0.0.0:{{ .Values.service.shard.targetPort }}"
|
||||
- "--core"
|
||||
- "http://telemetry-core/shard_submit"
|
||||
- "http://telemetry-core:{{ .Values.service.core.targetPort }}/shard_submit"
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: {{ .Values.service.shard.targetPort }}
|
||||
|
||||
@@ -2,14 +2,15 @@
|
||||
apiVersion: autoscaling/v2beta1
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
name: {{ include "substrate-telemetry.fullname" . }}
|
||||
name: telemetry-shard
|
||||
labels:
|
||||
{{- include "substrate-telemetry.labels" . | nindent 4 }}
|
||||
telemetry-component: shard
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
name: {{ include "substrate-telemetry.fullname" . }}
|
||||
name: telemetry-shard
|
||||
minReplicas: {{ .Values.autoscaling.minReplicas }}
|
||||
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
|
||||
metrics:
|
||||
@@ -1,15 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: "{{ include "substrate-telemetry.fullname" . }}-test-connection"
|
||||
labels:
|
||||
{{- include "substrate-telemetry.labels" . | nindent 4 }}
|
||||
annotations:
|
||||
"helm.sh/hook": test
|
||||
spec:
|
||||
containers:
|
||||
- name: wget
|
||||
image: busybox
|
||||
command: ['wget']
|
||||
args: ['{{ include "substrate-telemetry.fullname" . }}:{{ .Values.service.port }}']
|
||||
restartPolicy: Never
|
||||
+20
-9
@@ -7,10 +7,10 @@ replicaCount:
|
||||
core: 1
|
||||
|
||||
image:
|
||||
repository: parity/substrate-telemetry-backend
|
||||
repository: docker.io/parity/substrate-telemetry-backend
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: latest
|
||||
tag: master-b4117d3a
|
||||
|
||||
imagePullSecrets: []
|
||||
nameOverride: ""
|
||||
@@ -48,10 +48,13 @@ service:
|
||||
networking.gke.io/internal-load-balancer-allow-global-access: "true"
|
||||
external-dns.alpha.kubernetes.io/hostname: substrate-telemetry.parity-stg.parity.io.
|
||||
core:
|
||||
type: ClusterIP
|
||||
type: LoadBalancer
|
||||
port: 80
|
||||
targetPort: 8000
|
||||
annotations: {}
|
||||
annotations:
|
||||
cloud.google.com/load-balancer-type: Internal
|
||||
networking.gke.io/internal-load-balancer-allow-global-access: "true"
|
||||
external-dns.alpha.kubernetes.io/hostname: substrate-telemetry-core.parity-stg.parity.io.
|
||||
|
||||
|
||||
ingress:
|
||||
@@ -83,11 +86,19 @@ resources: {}
|
||||
# memory: 128Mi
|
||||
|
||||
autoscaling:
|
||||
enabled: false
|
||||
minReplicas: 1
|
||||
maxReplicas: 100
|
||||
targetCPUUtilizationPercentage: 80
|
||||
# targetMemoryUtilizationPercentage: 80
|
||||
shard:
|
||||
enabled: true
|
||||
minReplicas: 3
|
||||
maxReplicas: 6
|
||||
targetCPUUtilizationPercentage: 80
|
||||
targetMemoryUtilizationPercentage: 80
|
||||
# telemetry-core is not scalable atm.
|
||||
core:
|
||||
enabled: false
|
||||
minReplicas: 3
|
||||
maxReplicas: 6
|
||||
targetCPUUtilizationPercentage: 80
|
||||
targetMemoryUtilizationPercentage: 80
|
||||
|
||||
nodeSelector: {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user