Nova-compute service deployment

Adds service-level helm deployment for Nova compute components

Partially-Implements: blueprint helm-services
Change-Id: I276bf62b22907dad48642466e46e021fb1a6fb1d
This commit is contained in:
Mark Giles 2016-12-22 12:44:23 -05:00
parent 771ff4f3d5
commit 6c5b7f3ac8
6 changed files with 55 additions and 8 deletions

View File

@ -29,7 +29,14 @@
{{- $selectorValue := include "kolla_val_get_str" (dict "key" "selector_value" "searchPath" $searchPath "Values" .Values ) }}
{{- $tunnelInterface := include "kolla_val_get_str" (dict "key" "tunnel_interface" "searchPath" $searchPath "Values" .Values ) }}
{{- $elementName := .Values.element_name | default $resourceName }}
{{- with $env := dict "netHostTrue" $netHostTrue "podTypeBootstrap" $podTypeBootstrap "imageFull" $imageFull "resourceName" $resourceName "serviceName" $serviceName "serviceType" $serviceType "privileged" $privileged "Values" .Values "Release" .Release "searchPath" $searchPath }}
{{- define "nova_compute_extra_dep_volume_mounts" }}
{
"name": "run",
"mountPath": "/var/run"
}
{{- end }}
{{- $extraDepVolumeMounts := "nova_compute_extra_dep_volume_mounts" }}
{{- with $env := dict "netHostTrue" $netHostTrue "podTypeBootstrap" $podTypeBootstrap "imageFull" $imageFull "resourceName" $resourceName "serviceName" $serviceName "serviceType" $serviceType "privileged" $privileged "Values" .Values "Release" .Release "searchPath" $searchPath "extraDepVolumeMounts" $extraDepVolumeMounts }}
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:

View File

@ -0,0 +1,12 @@
name: nova-compute
version: 0.4.0-1
description: Helm chart for nova libvirt and compute
keywords:
- openstack
- nova
- compute
home: http://www.openstack.org
sources:
- http://github.com/openstack
engine: gotpl
#icon: A URL to an SVG or PNG image to be used as an icon (optional). make this point to the new project icons when ready

View File

@ -0,0 +1,7 @@
dependencies:
- name: nova-compute-daemonset
repository: http://localhost:10191
version: 0.4.0-1
- name: nova-libvirt-daemonset
repository: http://localhost:10191
version: 0.4.0-1

View File

@ -0,0 +1,21 @@
global:
kolla:
nova:
all:
ceph_backend: true
compute:
daemonset:
kubernetes_entrypoint: true
dependencies:
service:
- nova-metadata
- nova-api
socket:
- /var/run/libvirt/libvirt-sock
libvirt:
daemonset:
kubernetes_entrypoint: true
dependencies:
service:
- nova-metadata
- nova-api

View File

@ -0,0 +1,4 @@
---
features:
- |
nova-compute service level package using kubernetes entrypoint.

View File

@ -273,13 +273,9 @@ helm install kolla/horizon-deployment --version $VERSION \
$DIR/tools/pull_containers.sh kolla
$DIR/tools/wait_for_pods.sh kolla
helm install kolla/nova-libvirt-daemonset --version $VERSION \
--set "$common_vars,ceph_backend=true,element_name=nova-libvirt" \
--namespace kolla --name nova-libvirt-daemonset
helm install kolla/nova-compute-daemonset --version $VERSION \
--set "$common_vars,ceph_backend=true,tunnel_interface=$tunnel_interface,element_name=nova-compute" \
--namespace kolla --name nova-compute-daemonset
helm install kolla/nova-compute --version $VERSION --namespace kolla \
--name nova-compute --set "$common_vars,element_name=nova" \
--values <(helm_entrypoint_general $1)
#kollakube res create pod keepalived