config/kubernetes/helm-charts/rbd-provisioner/templates/deployment.yaml
Irina Mihai e4ff1ef2c3 Decouple Ceph pools creation from sysinv
For a containerized deployment:
- the following Ceph pools are no longer created by sysinv:
  cinder-volumes, images, ephemeral, kube-rbd; the creation has
  been left/moved to the helm charts as follows:
    -> the cinder chart: cinder-volumes, cinder.backup
    -> the rbd-provisioner chart: kube-rbd pools and
       the ephemeral pool for nova (temporary)
    -> glance: images
- sysinv no longer supports updating the pool quotas
- sysinv no longer supports updating the replication for Ceph pools:
  the replication is updated in the DB through the
  'system storage-backend-modify' command, but the chart is applying
  the change through the helm overrides when the application is
  (re)applied
- sysinv no longer audits the Ceph pools and adjusts the PG num
- sysinv no longer generates the Ceph keys for the Ceph pools and the
  k8s secrets, as these have been moved to the rbd-provisioner chart
- upon storage node lock, we determine which are the existing data
  Ceph pools and deny lock if they are not empty

NOTE: There are still parts of the pool management code that
will have to be removed once we switch to a containerized
deployment only. I've marked that with "TODO(CephPoolsDecouple)"
to easily track it.

Validation:
- install AIO-SX & Storage setups with --kubernetes and
  -> add Ceph (primary and secondary tier)
  -> lock/unlock host/storage hosts
  -> check pools are not created by sysinv
  -> generate the stx-openstack application tarball
  -> system application-upload stx-openstack
     helm-charts-manifest-no-tests.tgz
  -> system application-apply stx-openstack

- install AIO-SX without --kubernetes
  -> check lock/unlock

- install Storage setup without --kubernetes
  -> check lock/unlock of storage nodes
  -> check Ceph pools are created
  -> test quotas can be changed

Story: 2002844
Task: 28190
Change-Id: Ic2190e488917bffebcd16daf895dcddd92c6d9c5
Signed-off-by: Irina Mihai <irina.mihai@windriver.com>
2018-12-01 16:21:31 +00:00

46 lines
1.2 KiB
YAML

{{/*
#
# Copyright (c) 2018 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
*/}}
{{- if eq .Values.global.deployAs "Deployment" }}
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: {{ .Values.global.name }}
namespace: {{ .Values.global.namespace }}
spec:
replicas: {{ .Values.global.replicas }}
strategy:
type: Recreate
template:
metadata:
labels:
app: {{ .Values.global.name }}
spec:
{{- if (.Values.global.rbac) or (.Values.global.reuseRbac)}}
serviceAccount: {{ .Values.rbac.serviceAccount }}
{{- end }}
containers:
- name: {{ .Values.global.name }}
image: {{ .Values.images.tags.rbd_provisioner | quote }}
env:
- name: PROVISIONER_NAME
value: ceph.com/rbd
{{- if .Values.global.nodeSelector }}
nodeSelector:
{{ .Values.global.nodeSelector | toYaml | trim | indent 8 }}
{{- end }}
{{- if .Values.global.tolerations }}
tolerations:
{{ .Values.global.tolerations | toYaml | trim | indent 8 }}
{{- end}}
{{- if .Values.global.resources }}
resources:
{{ .Values.global.resources | toYaml | trim | indent 8 }}
{{- end }}
{{- end }}