This commit is contained in:
Binjie Yang 2022-09-22 17:53:42 +08:00 committed by GitHub
parent 9f20aabb48
commit 1d6939bdf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 8 deletions

View File

@ -79,7 +79,7 @@ spec:
- '-c'
- "until {{ range until (.Values.masterReplicas |int) }}nslookup shuffleservice-master-{{ . }}.rss-master-svc && {{ end }}true; do echo waiting for master; sleep 2; done && /opt/rss-{{ .Values.rssVersion }}-bin-release/sbin/start-master.sh"
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- toYaml .Values.resources.master | nindent 12 }}
ports:
- containerPort: {{ .Values.service.port }}
- containerPort: {{ get .Values.rss "rss.master.prometheus.metric.port" | default 9098 }}

View File

@ -79,7 +79,7 @@ spec:
- '-c'
- "until {{ range until (.Values.masterReplicas |int) }}nslookup shuffleservice-master-{{ . }}.rss-master-svc && {{ end }}true; do echo waiting for master; sleep 2; done && /opt/rss-{{ .Values.rssVersion }}-bin-release/sbin/start-worker.sh"
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- toYaml .Values.resources.worker | nindent 12 }}
ports:
- containerPort: {{ get .Values.rss "rss.worker.prometheus.metric.port" | default 9096 }}
name: metrics

View File

@ -83,12 +83,20 @@ resources: {}
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
#master:
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
#worker:
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
podAnnotations: {}