Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Swithcing nova-compute-ironic to use statefulset
Browse files Browse the repository at this point in the history
Swithcing nova-compute-ironic to use statefulset

Change-Id: I8f6de41e0d8d7b46cfc4144b2ddfafaef1e5b3a3
  • Loading branch information
sbezverk committed Mar 9, 2017
1 parent c532ed1 commit 2cdd48e
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: nova-compute-ironic-daemonset
name: nova-compute-ironic-statefulset
version: 0.6.0-1
description: Chart for nova compute ironic microservice
keywords:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- $searchPath := ":global.kolla.nova.compute-ironic.daemonset:global.kolla.nova.compute-ironic.all:global.kolla.nova.all:global.kolla.all" }}
{{- $searchPath := ":global.kolla.nova.compute-ironic.statefulset:global.kolla.nova.compute-ironic.all:global.kolla.nova.all:global.kolla.all" }}
{{- $resourceName := "nova-compute-ironic" }}
{{- $netHostTrue := false }}
{{- $podTypeBootstrap := false }}
Expand All @@ -15,16 +15,16 @@
{{- $selectorKey := include "kolla_val_get_str" (dict "key" "selector_key" "searchPath" $searchPath "Values" .Values ) }}
{{- $selectorValue := include "kolla_val_get_str" (dict "key" "selector_value" "searchPath" $searchPath "Values" .Values ) }}
{{- $tunnelInterface := "eth0" }}
{{- $replicas := include "kolla_val_get_str" (dict "key" "replicas" "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 }}
apiVersion: extensions/v1beta1
kind: DaemonSet
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
name: {{ $elementName }}
labels:
component: {{ $serviceName }}
system: {{ $elementName }}
spec:
serviceName: {{ $elementName }}
replicas: {{ $replicas }}
template:
metadata:
labels:
Expand Down
4 changes: 2 additions & 2 deletions helm/service/nova-compute-ironic/requirements.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dependencies:
- name: nova-compute-ironic-daemonset
repository: file://../../microservice/nova-compute-ironic-daemonset
- name: nova-compute-ironic-statefulset
repository: file://../../microservice/nova-compute-ironic-statefulset
version: 0.6.0-1
2 changes: 1 addition & 1 deletion helm/service/nova-compute-ironic/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ global:
kubernetes_entrypoint: true
nova:
compute-ironic:
daemonset:
statefulset:
dependencies:
service:
- nova-metadata
Expand Down
4 changes: 2 additions & 2 deletions tests/bin/deploy_ironic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ helm install kolla/ironic-conductor-daemonset --version $VERSION \
--namespace kolla --name ironic-conductor-daemonset \
--values /tmp/general_config.yaml --values /tmp/iscsi_config.yaml

helm install kolla/nova-compute-ironic-daemonset --version $VERSION \
--namespace kolla --name nova-compute-ironic-daemonset \
helm install kolla/nova-compute-ironic-statefulset --version $VERSION \
--namespace kolla --name nova-compute-ironic-statefulset \
--values /tmp/general_config.yaml --values /tmp/iscsi_config.yaml

$DIR/tools/pull_containers.sh kolla
Expand Down
2 changes: 1 addition & 1 deletion tools/setup_kubernetes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cat <<"EOEF" > /etc/yum.repos.d/kubernetes.repo
name=Kubernetes
baseurl=http://yum.kubernetes.io/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=1
gpgcheck=0
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg
https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
Expand Down

0 comments on commit 2cdd48e

Please sign in to comment.