* resource requests and limits for cinder, heat, nova
This commit is contained in:
parent
43fee7bfed
commit
1e7203a523
@ -31,6 +31,15 @@ spec:
|
||||
- name: cinder-api
|
||||
image: {{ .Values.images.api }}
|
||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
||||
{{- if .Values.resources.enabled }}
|
||||
resources:
|
||||
requests:
|
||||
memory: {{ .Values.resources.cinder_api.requests.memory | quote }}
|
||||
cpu: {{ .Values.resources.cinder_api.requests.cpu | quote }}
|
||||
limits:
|
||||
memory: {{ .Values.resources.cinder_api.limits.memory | quote }}
|
||||
cpu: {{ .Values.resources.cinder_api.limits.cpu | quote }}
|
||||
{{- end }}
|
||||
command:
|
||||
- cinder-api
|
||||
- --config-dir
|
||||
|
@ -31,6 +31,15 @@ spec:
|
||||
- name: cinder-scheduler
|
||||
image: {{ .Values.images.scheduler }}
|
||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
||||
{{- if .Values.resources.enabled }}
|
||||
resources:
|
||||
requests:
|
||||
memory: {{ .Values.resources.cinder_scheduler.requests.memory | quote }}
|
||||
cpu: {{ .Values.resources.cinder_scheduler.requests.cpu | quote }}
|
||||
limits:
|
||||
memory: {{ .Values.resources.cinder_scheduler.limits.memory | quote }}
|
||||
cpu: {{ .Values.resources.cinder_scheduler.limits.cpu | quote }}
|
||||
{{- end }}
|
||||
command:
|
||||
- cinder-scheduler
|
||||
- --config-dir
|
||||
|
@ -31,6 +31,15 @@ spec:
|
||||
- name: cinder-volume
|
||||
image: {{ .Values.images.volume }}
|
||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
||||
{{- if .Values.resources.enabled }}
|
||||
resources:
|
||||
requests:
|
||||
memory: {{ .Values.resources.cinder_volume.requests.memory | quote }}
|
||||
cpu: {{ .Values.resources.cinder_volume.requests.cpu | quote }}
|
||||
limits:
|
||||
memory: {{ .Values.resources.cinder_volume.limits.memory | quote }}
|
||||
cpu: {{ .Values.resources.cinder_volume.limits.cpu | quote }}
|
||||
{{- end }}
|
||||
command:
|
||||
- cinder-volume
|
||||
- --config-dir
|
||||
|
@ -19,6 +19,15 @@ spec:
|
||||
- name: cinder-db-init
|
||||
image: {{ .Values.images.db_init | quote }}
|
||||
imagePullPolicy: {{ .Values.images.pull_policy | quote }}
|
||||
{{- if .Values.resources.enabled }}
|
||||
resources:
|
||||
requests:
|
||||
memory: {{ .Values.resources.cinder_db_init.requests.memory | quote }}
|
||||
cpu: {{ .Values.resources.cinder_db_init.requests.cpu | quote }}
|
||||
limits:
|
||||
memory: {{ .Values.resources.cinder_db_init.limits.memory | quote }}
|
||||
cpu: {{ .Values.resources.cinder_db_init.limits.cpu | quote }}
|
||||
{{- end }}
|
||||
env:
|
||||
- name: ANSIBLE_LIBRARY
|
||||
value: /usr/share/ansible/
|
||||
|
@ -19,6 +19,15 @@ spec:
|
||||
- name: cinder-db-sync
|
||||
image: {{ .Values.images.db_sync }}
|
||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
||||
{{- if .Values.resources.enabled }}
|
||||
resources:
|
||||
requests:
|
||||
memory: {{ .Values.resources.cinder_db_sync.requests.memory | quote }}
|
||||
cpu: {{ .Values.resources.cinder_db_sync.requests.cpu | quote }}
|
||||
limits:
|
||||
memory: {{ .Values.resources.cinder_db_sync.limits.memory | quote }}
|
||||
cpu: {{ .Values.resources.cinder_db_sync.limits.cpu | quote }}
|
||||
{{- end }}
|
||||
command:
|
||||
- cinder-manage
|
||||
args:
|
||||
|
@ -22,6 +22,15 @@ spec:
|
||||
- name: {{ $osServiceType }}-ks-endpoints-{{ $osServiceEndPoint }}
|
||||
image: {{ $envAll.Values.images.ks_endpoints }}
|
||||
imagePullPolicy: {{ $envAll.Values.images.pull_policy }}
|
||||
{{- if $envAll.Values.resources.enabled }}
|
||||
resources:
|
||||
requests:
|
||||
memory: {{ $envAll.Values.resources.cinder_ks_endpoints.requests.memory | quote }}
|
||||
cpu: {{ $envAll.Values.resources.cinder_ks_endpoints.requests.cpu | quote }}
|
||||
limits:
|
||||
memory: {{ $envAll.Values.resources.cinder_ks_endpoints.limits.memory | quote }}
|
||||
cpu: {{ $envAll.Values.resources.cinder_ks_endpoints.limits.cpu | quote }}
|
||||
{{- end }}
|
||||
command:
|
||||
- bash
|
||||
- /tmp/ks-endpoints.sh
|
||||
|
@ -21,6 +21,15 @@ spec:
|
||||
- name: {{ $osServiceType }}-ks-service-registration
|
||||
image: {{ $envAll.Values.images.ks_service }}
|
||||
imagePullPolicy: {{ $envAll.Values.images.pull_policy }}
|
||||
{{- if $envAll.Values.resources.enabled }}
|
||||
resources:
|
||||
requests:
|
||||
memory: {{ $envAll.Values.resources.cinder_ks_service.requests.memory | quote }}
|
||||
cpu: {{ $envAll.Values.resources.cinder_ks_service.requests.cpu | quote }}
|
||||
limits:
|
||||
memory: {{ $envAll.Values.resources.cinder_ks_service.limits.memory | quote }}
|
||||
cpu: {{ $envAll.Values.resources.cinder_ks_service.limits.cpu | quote }}
|
||||
{{- end }}
|
||||
command:
|
||||
- bash
|
||||
- /tmp/ks-service.sh
|
||||
|
@ -21,6 +21,15 @@ spec:
|
||||
- name: cinder-ks-user
|
||||
image: {{ .Values.images.ks_user }}
|
||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
||||
{{- if .Values.resources.enabled }}
|
||||
resources:
|
||||
requests:
|
||||
memory: {{ .Values.resources.cinder_ks_user.requests.memory | quote }}
|
||||
cpu: {{ .Values.resources.cinder_ks_user.requests.cpu | quote }}
|
||||
limits:
|
||||
memory: {{ .Values.resources.cinder_ks_user.limits.memory | quote }}
|
||||
cpu: {{ .Values.resources.cinder_ks_user.limits.cpu | quote }}
|
||||
{{- end }}
|
||||
command:
|
||||
- bash
|
||||
- /tmp/ks-user.sh
|
||||
|
@ -183,3 +183,63 @@ endpoints:
|
||||
scheme: 'http'
|
||||
port:
|
||||
api: 8776
|
||||
|
||||
resources:
|
||||
enabled: false
|
||||
cinder_api:
|
||||
requests:
|
||||
memory: "124Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
cinder_scheduler:
|
||||
requests:
|
||||
memory: "124Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
cinder_volume:
|
||||
requests:
|
||||
memory: "124Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
cinder_db_init:
|
||||
requests:
|
||||
memory: "124Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
cinder_db_sync:
|
||||
requests:
|
||||
memory: "124Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
cinder_ks_endpoints:
|
||||
requests:
|
||||
memory: "124Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
cinder_ks_service:
|
||||
requests:
|
||||
memory: "124Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
cinder_ks_user:
|
||||
requests:
|
||||
memory: "124Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
|
||||
|
@ -21,6 +21,15 @@ spec:
|
||||
- name: heat-api
|
||||
image: {{ .Values.images.api }}
|
||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
||||
{{- if .Values.resources.enabled }}
|
||||
resources:
|
||||
requests:
|
||||
memory: {{ .Values.resources.heat_api.requests.memory | quote }}
|
||||
cpu: {{ .Values.resources.heat_api.requests.cpu | quote }}
|
||||
limits:
|
||||
memory: {{ .Values.resources.heat_api.limits.memory | quote }}
|
||||
cpu: {{ .Values.resources.heat_api.limits.cpu | quote }}
|
||||
{{- end }}
|
||||
command:
|
||||
- heat-api
|
||||
- --config-dir
|
||||
|
@ -21,6 +21,15 @@ spec:
|
||||
- name: heat-cfn
|
||||
image: {{ .Values.images.cfn }}
|
||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
||||
{{- if .Values.resources.enabled }}
|
||||
resources:
|
||||
requests:
|
||||
memory: {{ .Values.resources.heat_cfn.requests.memory | quote }}
|
||||
cpu: {{ .Values.resources.heat_cfn.requests.cpu | quote }}
|
||||
limits:
|
||||
memory: {{ .Values.resources.heat_cfn.limits.memory | quote }}
|
||||
cpu: {{ .Values.resources.heat_cfn.limits.cpu | quote }}
|
||||
{{- end }}
|
||||
command:
|
||||
- heat-api-cfn
|
||||
- --config-dir
|
||||
|
@ -21,6 +21,15 @@ spec:
|
||||
- name: heat-cloudwatch
|
||||
image: {{ .Values.images.cloudwatch }}
|
||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
||||
{{- if .Values.resources.enabled }}
|
||||
resources:
|
||||
requests:
|
||||
memory: {{ .Values.resources.heat_cloudwatch.requests.memory | quote }}
|
||||
cpu: {{ .Values.resources.heat_cloudwatch.requests.cpu | quote }}
|
||||
limits:
|
||||
memory: {{ .Values.resources.heat_cloudwatch.limits.memory | quote }}
|
||||
cpu: {{ .Values.resources.heat_cloudwatch.limits.cpu | quote }}
|
||||
{{- end }}
|
||||
command:
|
||||
- heat-api-cloudwatch
|
||||
- --config-dir
|
||||
|
@ -19,6 +19,15 @@ spec:
|
||||
- name: heat-db-init
|
||||
image: {{ .Values.images.db_init | quote }}
|
||||
imagePullPolicy: {{ .Values.images.pull_policy | quote }}
|
||||
{{- if .Values.resources.enabled }}
|
||||
resources:
|
||||
requests:
|
||||
memory: {{ .Values.resources.heat_db_init.requests.memory | quote }}
|
||||
cpu: {{ .Values.resources.heat_db_init.requests.cpu | quote }}
|
||||
limits:
|
||||
memory: {{ .Values.resources.heat_db_init.limits.memory | quote }}
|
||||
cpu: {{ .Values.resources.heat_db_init.limits.cpu | quote }}
|
||||
{{- end }}
|
||||
env:
|
||||
- name: ANSIBLE_LIBRARY
|
||||
value: /usr/share/ansible/
|
||||
|
@ -19,6 +19,15 @@ spec:
|
||||
- name: heat-db-sync
|
||||
image: {{ .Values.images.db_sync }}
|
||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
||||
{{- if .Values.resources.enabled }}
|
||||
resources:
|
||||
requests:
|
||||
memory: {{ .Values.resources.heat_db_sync.requests.memory | quote }}
|
||||
cpu: {{ .Values.resources.heat_db_sync.requests.cpu | quote }}
|
||||
limits:
|
||||
memory: {{ .Values.resources.heat_db_sync.limits.memory | quote }}
|
||||
cpu: {{ .Values.resources.heat_db_sync.limits.cpu | quote }}
|
||||
{{- end }}
|
||||
command:
|
||||
- heat-manage
|
||||
args:
|
||||
|
@ -22,6 +22,15 @@ spec:
|
||||
- name: {{ $osServiceName }}-ks-endpoints-{{ $osServiceEndPoint }}
|
||||
image: {{ $envAll.Values.images.ks_endpoints }}
|
||||
imagePullPolicy: {{ $envAll.Values.images.pull_policy }}
|
||||
{{- if $envAll.Values.resources.enabled }}
|
||||
resources:
|
||||
requests:
|
||||
memory: {{ $envAll.Values.resources.heat_ks_endpoints.requests.memory | quote }}
|
||||
cpu: {{ $envAll.Values.resources.heat_ks_endpoints.requests.cpu | quote }}
|
||||
limits:
|
||||
memory: {{ $envAll.Values.resources.heat_ks_endpoints.limits.memory | quote }}
|
||||
cpu: {{ $envAll.Values.resources.heat_ks_endpoints.limits.cpu | quote }}
|
||||
{{- end }}
|
||||
command:
|
||||
- bash
|
||||
- /tmp/ks-endpoints.sh
|
||||
|
@ -21,6 +21,15 @@ spec:
|
||||
- name: {{ $osServiceName }}-ks-service-registration
|
||||
image: {{ $envAll.Values.images.ks_service }}
|
||||
imagePullPolicy: {{ $envAll.Values.images.pull_policy }}
|
||||
{{- if $envAll.Values.resources.enabled }}
|
||||
resources:
|
||||
requests:
|
||||
memory: {{ $envAll.Values.resources.heat_ks_service.requests.memory | quote }}
|
||||
cpu: {{ $envAll.Values.resources.heat_ks_service.requests.cpu | quote }}
|
||||
limits:
|
||||
memory: {{ $envAll.Values.resources.heat_ks_service.limits.memory | quote }}
|
||||
cpu: {{ $envAll.Values.resources.heat_ks_service.limits.cpu | quote }}
|
||||
{{- end }}
|
||||
command:
|
||||
- bash
|
||||
- /tmp/ks-service.sh
|
||||
@ -38,6 +47,7 @@ spec:
|
||||
- name: OS_SERVICE_TYPE
|
||||
value: {{ tuple $osServiceName $envAll | include "endpoint_type_lookup" }}
|
||||
{{- end }}
|
||||
|
||||
volumes:
|
||||
- name: ks-service-sh
|
||||
configMap:
|
||||
|
@ -24,6 +24,15 @@ spec:
|
||||
- name: heat-ks-user
|
||||
image: {{ .Values.images.ks_user }}
|
||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
||||
{{- if .Values.resources.enabled }}
|
||||
resources:
|
||||
requests:
|
||||
memory: {{ .Values.resources.heat_ks_user.requests.memory | quote }}
|
||||
cpu: {{ .Values.resources.heat_ks_user.requests.cpu | quote }}
|
||||
limits:
|
||||
memory: {{ .Values.resources.heat_ks_user.limits.memory | quote }}
|
||||
cpu: {{ .Values.resources.heat_ks_user.limits.cpu | quote }}
|
||||
{{- end }}
|
||||
command:
|
||||
- bash
|
||||
- /tmp/ks-user.sh
|
||||
|
@ -22,6 +22,15 @@ spec:
|
||||
- name: heat-engine
|
||||
image: {{ .Values.images.engine }}
|
||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
||||
{{- if .Values.resources.enabled }}
|
||||
resources:
|
||||
requests:
|
||||
memory: {{ .Values.resources.heat_engine.requests.memory | quote }}
|
||||
cpu: {{ .Values.resources.heat_engine.requests.cpu | quote }}
|
||||
limits:
|
||||
memory: {{ .Values.resources.heat_engine.limits.memory | quote }}
|
||||
cpu: {{ .Values.resources.heat_engine.limits.cpu | quote }}
|
||||
{{- end }}
|
||||
command:
|
||||
- heat-engine
|
||||
- --config-dir
|
||||
|
@ -97,16 +97,6 @@ memcached:
|
||||
host: memcached
|
||||
port: 11211
|
||||
|
||||
resources:
|
||||
api:
|
||||
workers: 8
|
||||
cfn:
|
||||
workers: 8
|
||||
cloudwatch:
|
||||
workers: 8
|
||||
engine:
|
||||
workers: 8
|
||||
|
||||
misc:
|
||||
debug: true
|
||||
|
||||
@ -206,3 +196,77 @@ endpoints:
|
||||
scheme: 'http'
|
||||
port:
|
||||
api: 8003
|
||||
|
||||
resources:
|
||||
enabled: false
|
||||
heat_api:
|
||||
requests:
|
||||
memory: "124Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
heat_cfn:
|
||||
requests:
|
||||
memory: "124Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
heat_cloudwatch:
|
||||
requests:
|
||||
memory: "124Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
heat_db_init:
|
||||
requests:
|
||||
memory: "124Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
heat_db_sync:
|
||||
requests:
|
||||
memory: "124Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
heat_ks_endpoints:
|
||||
requests:
|
||||
memory: "124Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
heat_ks_service:
|
||||
requests:
|
||||
memory: "124Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
heat_ks_user:
|
||||
requests:
|
||||
memory: "124Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
heat_engine:
|
||||
requests:
|
||||
memory: "124Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
api:
|
||||
workers: 8
|
||||
cfn:
|
||||
workers: 8
|
||||
cloudwatch:
|
||||
workers: 8
|
||||
engine:
|
||||
workers: 8
|
||||
|
@ -27,6 +27,15 @@ spec:
|
||||
- name: nova-compute
|
||||
image: {{ .Values.images.compute }}
|
||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
||||
{{- if .Values.resources.enabled }}
|
||||
resources:
|
||||
requests:
|
||||
memory: {{ .Values.resources.nova_compute.requests.memory | quote }}
|
||||
cpu: {{ .Values.resources.nova_compute.requests.cpu | quote }}
|
||||
limits:
|
||||
memory: {{ .Values.resources.nova_compute.limits.memory | quote }}
|
||||
cpu: {{ .Values.resources.nova_compute.limits.cpu | quote }}
|
||||
{{- end }}
|
||||
securityContext:
|
||||
privileged: true
|
||||
command:
|
||||
|
@ -26,6 +26,15 @@ spec:
|
||||
- name: nova-libvirt
|
||||
image: {{ .Values.images.libvirt }}
|
||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
||||
{{- if .Values.resources.enabled }}
|
||||
resources:
|
||||
requests:
|
||||
memory: {{ .Values.resources.nova_libvirt.requests.memory | quote }}
|
||||
cpu: {{ .Values.resources.nova_libvirt.requests.cpu | quote }}
|
||||
limits:
|
||||
memory: {{ .Values.resources.nova_libvirt.limits.memory | quote }}
|
||||
cpu: {{ .Values.resources.nova_libvirt.limits.cpu | quote }}
|
||||
{{- end }}
|
||||
securityContext:
|
||||
privileged: true
|
||||
command:
|
||||
|
@ -32,6 +32,15 @@ spec:
|
||||
image: {{ .Values.images.api }}
|
||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
||||
# https://bugs.launchpad.net/kolla-mesos/+bug/1546007
|
||||
{{- if .Values.resources.enabled }}
|
||||
resources:
|
||||
requests:
|
||||
memory: {{ .Values.resources.nova_api_metadata.requests.memory | quote }}
|
||||
cpu: {{ .Values.resources.nova_api_metadata.requests.cpu | quote }}
|
||||
limits:
|
||||
memory: {{ .Values.resources.nova_api_metadata.limits.memory | quote }}
|
||||
cpu: {{ .Values.resources.nova_api_metadata.limits.cpu | quote }}
|
||||
{{- end }}
|
||||
securityContext:
|
||||
capabilities:
|
||||
add:
|
||||
|
@ -35,6 +35,15 @@ spec:
|
||||
capabilities:
|
||||
add:
|
||||
- NET_ADMIN
|
||||
{{- if .Values.resources.enabled }}
|
||||
resources:
|
||||
requests:
|
||||
memory: {{ .Values.resources.nova_osapi.requests.memory | quote }}
|
||||
cpu: {{ .Values.resources.nova_osapi.requests.cpu | quote }}
|
||||
limits:
|
||||
memory: {{ .Values.resources.nova_osapi.limits.memory | quote }}
|
||||
cpu: {{ .Values.resources.nova_osapi.limits.cpu | quote }}
|
||||
{{- end }}
|
||||
command:
|
||||
- nova-api
|
||||
- --config-file=/etc/nova/nova.conf
|
||||
|
@ -31,6 +31,15 @@ spec:
|
||||
- name: nova-conductor
|
||||
image: {{ .Values.images.conductor }}
|
||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
||||
{{- if .Values.resources.enabled }}
|
||||
resources:
|
||||
requests:
|
||||
memory: {{ .Values.resources.nova_conductor.requests.memory | quote }}
|
||||
cpu: {{ .Values.resources.nova_conductor.requests.cpu | quote }}
|
||||
limits:
|
||||
memory: {{ .Values.resources.nova_conductor.limits.memory | quote }}
|
||||
cpu: {{ .Values.resources.nova_conductor.limits.cpu | quote }}
|
||||
{{- end }}
|
||||
command:
|
||||
- nova-conductor
|
||||
- --config-file
|
||||
|
@ -31,6 +31,15 @@ spec:
|
||||
- name: nova-consoleauth
|
||||
image: {{ .Values.images.consoleauth }}
|
||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
||||
{{- if .Values.resources.enabled }}
|
||||
resources:
|
||||
requests:
|
||||
memory: {{ .Values.resources.nova_consoleauth.requests.memory | quote }}
|
||||
cpu: {{ .Values.resources.nova_consoleauth.requests.cpu | quote }}
|
||||
limits:
|
||||
memory: {{ .Values.resources.nova_consoleauth.limits.memory | quote }}
|
||||
cpu: {{ .Values.resources.nova_consoleauth.limits.cpu | quote }}
|
||||
{{- end }}
|
||||
command:
|
||||
- nova-consoleauth
|
||||
- --config-file
|
||||
|
@ -31,6 +31,15 @@ spec:
|
||||
- name: nova-scheduler
|
||||
image: {{ .Values.images.scheduler }}
|
||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
||||
{{- if .Values.resources.enabled }}
|
||||
resources:
|
||||
requests:
|
||||
memory: {{ .Values.resources.nova_scheduler.requests.memory | quote }}
|
||||
cpu: {{ .Values.resources.nova_scheduler.requests.cpu | quote }}
|
||||
limits:
|
||||
memory: {{ .Values.resources.nova_scheduler.limits.memory | quote }}
|
||||
cpu: {{ .Values.resources.nova_scheduler.limits.cpu | quote }}
|
||||
{{- end }}
|
||||
command:
|
||||
- nova-scheduler
|
||||
- --config-file
|
||||
|
@ -19,6 +19,15 @@ spec:
|
||||
- name: nova-db-init
|
||||
image: {{ .Values.images.db_init }}
|
||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
||||
{{- if .Values.resources.enabled }}
|
||||
resources:
|
||||
requests:
|
||||
memory: {{ .Values.resources.nova_init.requests.memory | quote }}
|
||||
cpu: {{ .Values.resources.nova_init.requests.cpu | quote }}
|
||||
limits:
|
||||
memory: {{ .Values.resources.nova_init.limits.memory | quote }}
|
||||
cpu: {{ .Values.resources.nova_init.limits.cpu | quote }}
|
||||
{{- end }}
|
||||
command:
|
||||
- bash
|
||||
- /tmp/init.sh
|
||||
|
@ -19,6 +19,15 @@ spec:
|
||||
- name: nova-db-sync
|
||||
image: {{ .Values.images.db_sync }}
|
||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
||||
{{- if .Values.resources.enabled }}
|
||||
resources:
|
||||
requests:
|
||||
memory: {{ .Values.resources.nova_db_sync.requests.memory | quote }}
|
||||
cpu: {{ .Values.resources.nova_db_sync.requests.cpu | quote }}
|
||||
limits:
|
||||
memory: {{ .Values.resources.nova_db_sync.limits.memory | quote }}
|
||||
cpu: {{ .Values.resources.nova_db_sync.limits.cpu | quote }}
|
||||
{{- end }}
|
||||
command:
|
||||
- bash
|
||||
- /tmp/db-sync.sh
|
||||
|
@ -19,6 +19,15 @@ spec:
|
||||
- name: nova-post
|
||||
image: {{ .Values.images.post }}
|
||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
||||
{{- if .Values.resources.enabled }}
|
||||
resources:
|
||||
requests:
|
||||
memory: {{ .Values.resources.nova_post.requests.memory | quote }}
|
||||
cpu: {{ .Values.resources.nova_post.requests.cpu | quote }}
|
||||
limits:
|
||||
memory: {{ .Values.resources.nova_post.limits.memory | quote }}
|
||||
cpu: {{ .Values.resources.nova_post.limits.cpu | quote }}
|
||||
{{- end }}
|
||||
command:
|
||||
- bash
|
||||
- /tmp/post.sh
|
||||
|
@ -217,3 +217,76 @@ endpoints:
|
||||
scheme: 'http'
|
||||
port:
|
||||
api: 9696
|
||||
|
||||
resources:
|
||||
enabled: false
|
||||
nova_compute:
|
||||
requests:
|
||||
memory: "124Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
nova_libvirt:
|
||||
requests:
|
||||
memory: "124Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
nova_api_metadata:
|
||||
requests:
|
||||
memory: "124Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
nova_osapi:
|
||||
requests:
|
||||
memory: "124Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
nova_conductor:
|
||||
requests:
|
||||
memory: "124Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
nova_consoleauth:
|
||||
requests:
|
||||
memory: "124Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
nova_scheduler:
|
||||
requests:
|
||||
memory: "124Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
nova_db_sync:
|
||||
requests:
|
||||
memory: "124Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
nova_init:
|
||||
requests:
|
||||
memory: "124Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
nova_post:
|
||||
requests:
|
||||
memory: "124Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
|
Loading…
Reference in New Issue
Block a user