* 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
|
- name: cinder-api
|
||||||
image: {{ .Values.images.api }}
|
image: {{ .Values.images.api }}
|
||||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
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:
|
command:
|
||||||
- cinder-api
|
- cinder-api
|
||||||
- --config-dir
|
- --config-dir
|
||||||
|
@ -31,6 +31,15 @@ spec:
|
|||||||
- name: cinder-scheduler
|
- name: cinder-scheduler
|
||||||
image: {{ .Values.images.scheduler }}
|
image: {{ .Values.images.scheduler }}
|
||||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
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:
|
command:
|
||||||
- cinder-scheduler
|
- cinder-scheduler
|
||||||
- --config-dir
|
- --config-dir
|
||||||
|
@ -31,6 +31,15 @@ spec:
|
|||||||
- name: cinder-volume
|
- name: cinder-volume
|
||||||
image: {{ .Values.images.volume }}
|
image: {{ .Values.images.volume }}
|
||||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
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:
|
command:
|
||||||
- cinder-volume
|
- cinder-volume
|
||||||
- --config-dir
|
- --config-dir
|
||||||
|
@ -19,6 +19,15 @@ spec:
|
|||||||
- name: cinder-db-init
|
- name: cinder-db-init
|
||||||
image: {{ .Values.images.db_init | quote }}
|
image: {{ .Values.images.db_init | quote }}
|
||||||
imagePullPolicy: {{ .Values.images.pull_policy | 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:
|
env:
|
||||||
- name: ANSIBLE_LIBRARY
|
- name: ANSIBLE_LIBRARY
|
||||||
value: /usr/share/ansible/
|
value: /usr/share/ansible/
|
||||||
|
@ -19,6 +19,15 @@ spec:
|
|||||||
- name: cinder-db-sync
|
- name: cinder-db-sync
|
||||||
image: {{ .Values.images.db_sync }}
|
image: {{ .Values.images.db_sync }}
|
||||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
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:
|
command:
|
||||||
- cinder-manage
|
- cinder-manage
|
||||||
args:
|
args:
|
||||||
|
@ -22,6 +22,15 @@ spec:
|
|||||||
- name: {{ $osServiceType }}-ks-endpoints-{{ $osServiceEndPoint }}
|
- name: {{ $osServiceType }}-ks-endpoints-{{ $osServiceEndPoint }}
|
||||||
image: {{ $envAll.Values.images.ks_endpoints }}
|
image: {{ $envAll.Values.images.ks_endpoints }}
|
||||||
imagePullPolicy: {{ $envAll.Values.images.pull_policy }}
|
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:
|
command:
|
||||||
- bash
|
- bash
|
||||||
- /tmp/ks-endpoints.sh
|
- /tmp/ks-endpoints.sh
|
||||||
|
@ -21,6 +21,15 @@ spec:
|
|||||||
- name: {{ $osServiceType }}-ks-service-registration
|
- name: {{ $osServiceType }}-ks-service-registration
|
||||||
image: {{ $envAll.Values.images.ks_service }}
|
image: {{ $envAll.Values.images.ks_service }}
|
||||||
imagePullPolicy: {{ $envAll.Values.images.pull_policy }}
|
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:
|
command:
|
||||||
- bash
|
- bash
|
||||||
- /tmp/ks-service.sh
|
- /tmp/ks-service.sh
|
||||||
|
@ -21,6 +21,15 @@ spec:
|
|||||||
- name: cinder-ks-user
|
- name: cinder-ks-user
|
||||||
image: {{ .Values.images.ks_user }}
|
image: {{ .Values.images.ks_user }}
|
||||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
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:
|
command:
|
||||||
- bash
|
- bash
|
||||||
- /tmp/ks-user.sh
|
- /tmp/ks-user.sh
|
||||||
|
@ -183,3 +183,63 @@ endpoints:
|
|||||||
scheme: 'http'
|
scheme: 'http'
|
||||||
port:
|
port:
|
||||||
api: 8776
|
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
|
- name: heat-api
|
||||||
image: {{ .Values.images.api }}
|
image: {{ .Values.images.api }}
|
||||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
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:
|
command:
|
||||||
- heat-api
|
- heat-api
|
||||||
- --config-dir
|
- --config-dir
|
||||||
|
@ -21,6 +21,15 @@ spec:
|
|||||||
- name: heat-cfn
|
- name: heat-cfn
|
||||||
image: {{ .Values.images.cfn }}
|
image: {{ .Values.images.cfn }}
|
||||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
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:
|
command:
|
||||||
- heat-api-cfn
|
- heat-api-cfn
|
||||||
- --config-dir
|
- --config-dir
|
||||||
|
@ -21,6 +21,15 @@ spec:
|
|||||||
- name: heat-cloudwatch
|
- name: heat-cloudwatch
|
||||||
image: {{ .Values.images.cloudwatch }}
|
image: {{ .Values.images.cloudwatch }}
|
||||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
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:
|
command:
|
||||||
- heat-api-cloudwatch
|
- heat-api-cloudwatch
|
||||||
- --config-dir
|
- --config-dir
|
||||||
|
@ -19,6 +19,15 @@ spec:
|
|||||||
- name: heat-db-init
|
- name: heat-db-init
|
||||||
image: {{ .Values.images.db_init | quote }}
|
image: {{ .Values.images.db_init | quote }}
|
||||||
imagePullPolicy: {{ .Values.images.pull_policy | 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:
|
env:
|
||||||
- name: ANSIBLE_LIBRARY
|
- name: ANSIBLE_LIBRARY
|
||||||
value: /usr/share/ansible/
|
value: /usr/share/ansible/
|
||||||
|
@ -19,6 +19,15 @@ spec:
|
|||||||
- name: heat-db-sync
|
- name: heat-db-sync
|
||||||
image: {{ .Values.images.db_sync }}
|
image: {{ .Values.images.db_sync }}
|
||||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
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:
|
command:
|
||||||
- heat-manage
|
- heat-manage
|
||||||
args:
|
args:
|
||||||
|
@ -22,6 +22,15 @@ spec:
|
|||||||
- name: {{ $osServiceName }}-ks-endpoints-{{ $osServiceEndPoint }}
|
- name: {{ $osServiceName }}-ks-endpoints-{{ $osServiceEndPoint }}
|
||||||
image: {{ $envAll.Values.images.ks_endpoints }}
|
image: {{ $envAll.Values.images.ks_endpoints }}
|
||||||
imagePullPolicy: {{ $envAll.Values.images.pull_policy }}
|
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:
|
command:
|
||||||
- bash
|
- bash
|
||||||
- /tmp/ks-endpoints.sh
|
- /tmp/ks-endpoints.sh
|
||||||
|
@ -21,6 +21,15 @@ spec:
|
|||||||
- name: {{ $osServiceName }}-ks-service-registration
|
- name: {{ $osServiceName }}-ks-service-registration
|
||||||
image: {{ $envAll.Values.images.ks_service }}
|
image: {{ $envAll.Values.images.ks_service }}
|
||||||
imagePullPolicy: {{ $envAll.Values.images.pull_policy }}
|
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:
|
command:
|
||||||
- bash
|
- bash
|
||||||
- /tmp/ks-service.sh
|
- /tmp/ks-service.sh
|
||||||
@ -38,6 +47,7 @@ spec:
|
|||||||
- name: OS_SERVICE_TYPE
|
- name: OS_SERVICE_TYPE
|
||||||
value: {{ tuple $osServiceName $envAll | include "endpoint_type_lookup" }}
|
value: {{ tuple $osServiceName $envAll | include "endpoint_type_lookup" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: ks-service-sh
|
- name: ks-service-sh
|
||||||
configMap:
|
configMap:
|
||||||
|
@ -24,6 +24,15 @@ spec:
|
|||||||
- name: heat-ks-user
|
- name: heat-ks-user
|
||||||
image: {{ .Values.images.ks_user }}
|
image: {{ .Values.images.ks_user }}
|
||||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
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:
|
command:
|
||||||
- bash
|
- bash
|
||||||
- /tmp/ks-user.sh
|
- /tmp/ks-user.sh
|
||||||
|
@ -22,6 +22,15 @@ spec:
|
|||||||
- name: heat-engine
|
- name: heat-engine
|
||||||
image: {{ .Values.images.engine }}
|
image: {{ .Values.images.engine }}
|
||||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
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:
|
command:
|
||||||
- heat-engine
|
- heat-engine
|
||||||
- --config-dir
|
- --config-dir
|
||||||
|
@ -97,16 +97,6 @@ memcached:
|
|||||||
host: memcached
|
host: memcached
|
||||||
port: 11211
|
port: 11211
|
||||||
|
|
||||||
resources:
|
|
||||||
api:
|
|
||||||
workers: 8
|
|
||||||
cfn:
|
|
||||||
workers: 8
|
|
||||||
cloudwatch:
|
|
||||||
workers: 8
|
|
||||||
engine:
|
|
||||||
workers: 8
|
|
||||||
|
|
||||||
misc:
|
misc:
|
||||||
debug: true
|
debug: true
|
||||||
|
|
||||||
@ -206,3 +196,77 @@ endpoints:
|
|||||||
scheme: 'http'
|
scheme: 'http'
|
||||||
port:
|
port:
|
||||||
api: 8003
|
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
|
- name: nova-compute
|
||||||
image: {{ .Values.images.compute }}
|
image: {{ .Values.images.compute }}
|
||||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
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:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
command:
|
command:
|
||||||
|
@ -26,6 +26,15 @@ spec:
|
|||||||
- name: nova-libvirt
|
- name: nova-libvirt
|
||||||
image: {{ .Values.images.libvirt }}
|
image: {{ .Values.images.libvirt }}
|
||||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
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:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
command:
|
command:
|
||||||
|
@ -32,6 +32,15 @@ spec:
|
|||||||
image: {{ .Values.images.api }}
|
image: {{ .Values.images.api }}
|
||||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
imagePullPolicy: {{ .Values.images.pull_policy }}
|
||||||
# https://bugs.launchpad.net/kolla-mesos/+bug/1546007
|
# 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:
|
securityContext:
|
||||||
capabilities:
|
capabilities:
|
||||||
add:
|
add:
|
||||||
|
@ -35,6 +35,15 @@ spec:
|
|||||||
capabilities:
|
capabilities:
|
||||||
add:
|
add:
|
||||||
- NET_ADMIN
|
- 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:
|
command:
|
||||||
- nova-api
|
- nova-api
|
||||||
- --config-file=/etc/nova/nova.conf
|
- --config-file=/etc/nova/nova.conf
|
||||||
|
@ -31,6 +31,15 @@ spec:
|
|||||||
- name: nova-conductor
|
- name: nova-conductor
|
||||||
image: {{ .Values.images.conductor }}
|
image: {{ .Values.images.conductor }}
|
||||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
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:
|
command:
|
||||||
- nova-conductor
|
- nova-conductor
|
||||||
- --config-file
|
- --config-file
|
||||||
|
@ -31,6 +31,15 @@ spec:
|
|||||||
- name: nova-consoleauth
|
- name: nova-consoleauth
|
||||||
image: {{ .Values.images.consoleauth }}
|
image: {{ .Values.images.consoleauth }}
|
||||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
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:
|
command:
|
||||||
- nova-consoleauth
|
- nova-consoleauth
|
||||||
- --config-file
|
- --config-file
|
||||||
|
@ -31,6 +31,15 @@ spec:
|
|||||||
- name: nova-scheduler
|
- name: nova-scheduler
|
||||||
image: {{ .Values.images.scheduler }}
|
image: {{ .Values.images.scheduler }}
|
||||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
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:
|
command:
|
||||||
- nova-scheduler
|
- nova-scheduler
|
||||||
- --config-file
|
- --config-file
|
||||||
|
@ -19,6 +19,15 @@ spec:
|
|||||||
- name: nova-db-init
|
- name: nova-db-init
|
||||||
image: {{ .Values.images.db_init }}
|
image: {{ .Values.images.db_init }}
|
||||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
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:
|
command:
|
||||||
- bash
|
- bash
|
||||||
- /tmp/init.sh
|
- /tmp/init.sh
|
||||||
|
@ -19,6 +19,15 @@ spec:
|
|||||||
- name: nova-db-sync
|
- name: nova-db-sync
|
||||||
image: {{ .Values.images.db_sync }}
|
image: {{ .Values.images.db_sync }}
|
||||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
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:
|
command:
|
||||||
- bash
|
- bash
|
||||||
- /tmp/db-sync.sh
|
- /tmp/db-sync.sh
|
||||||
|
@ -19,6 +19,15 @@ spec:
|
|||||||
- name: nova-post
|
- name: nova-post
|
||||||
image: {{ .Values.images.post }}
|
image: {{ .Values.images.post }}
|
||||||
imagePullPolicy: {{ .Values.images.pull_policy }}
|
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:
|
command:
|
||||||
- bash
|
- bash
|
||||||
- /tmp/post.sh
|
- /tmp/post.sh
|
||||||
|
@ -217,3 +217,76 @@ endpoints:
|
|||||||
scheme: 'http'
|
scheme: 'http'
|
||||||
port:
|
port:
|
||||||
api: 9696
|
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