diff --git a/tools/deployment/common/ingress.sh b/tools/deployment/common/ingress.sh deleted file mode 100755 index 3b14d0f2fe..0000000000 --- a/tools/deployment/common/ingress.sh +++ /dev/null @@ -1,70 +0,0 @@ -#!/bin/bash - -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -set -xe - -: ${HELM_INGRESS_NGINX_VERSION:="4.8.3"} - -helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx - -if ! [[ ${FEATURES//,/ } =~ (^|[[:space:]])metallb($|[[:space:]]) ]]; then - #NOTE: Deploy cluster ingress - helm upgrade --install ingress-nginx-cluster ingress-nginx/ingress-nginx \ - --version ${HELM_INGRESS_NGINX_VERSION} \ - --namespace=kube-system \ - --set controller.admissionWebhooks.enabled="false" \ - --set controller.kind=DaemonSet \ - --set controller.service.type=ClusterIP \ - --set controller.scope.enabled="false" \ - --set controller.hostNetwork="true" \ - --set controller.ingressClassResource.name=nginx-cluster \ - --set controller.ingressClassResource.controllerValue="k8s.io/ingress-nginx-cluster" \ - --set controller.ingressClassResource.default="true" \ - --set controller.ingressClass=nginx-cluster \ - --set controller.labels.app=ingress-api - - #NOTE: Wait for deploy - helm osh wait-for-pods kube-system -fi - -#NOTE: Deploy namespace ingress -helm upgrade --install ingress-nginx-openstack ingress-nginx/ingress-nginx \ - --version ${HELM_INGRESS_NGINX_VERSION} \ - --namespace=openstack \ - --set controller.kind=DaemonSet \ - --set controller.admissionWebhooks.enabled="false" \ - --set controller.scope.enabled="true" \ - --set controller.service.enabled="false" \ - --set controller.ingressClassResource.name=nginx \ - --set controller.ingressClassResource.controllerValue="k8s.io/ingress-nginx-openstack" \ - --set controller.ingressClass=nginx \ - --set controller.labels.app=ingress-api - -#NOTE: Wait for deploy -helm osh wait-for-pods openstack - -helm upgrade --install ingress-nginx-ceph ingress-nginx/ingress-nginx \ - --version ${HELM_INGRESS_NGINX_VERSION} \ - --namespace=ceph \ - --set controller.kind=DaemonSet \ - --set controller.admissionWebhooks.enabled="false" \ - --set controller.scope.enabled="true" \ - --set controller.service.enabled="false" \ - --set controller.ingressClassResource.name=nginx-ceph \ - --set controller.ingressClassResource.controllerValue="k8s.io/ingress-nginx-ceph" \ - --set controller.ingressClass=nginx-ceph \ - --set controller.labels.app=ingress-api - -#NOTE: Wait for deploy -helm osh wait-for-pods ceph diff --git a/tools/deployment/common/ldap.sh b/tools/deployment/common/ldap.sh deleted file mode 100755 index d6b6d5d65e..0000000000 --- a/tools/deployment/common/ldap.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash - -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -set -xe - -: ${OSH_HELM_REPO:="../openstack-helm"} -: ${OSH_VALUES_OVERRIDES_PATH:="../openstack-helm/values_overrides"} -: ${OSH_EXTRA_HELM_ARGS_LDAP:="$(helm osh get-values-overrides -p ${OSH_VALUES_OVERRIDES_PATH} -c ldap ${FEATURES})"} -: ${NAMESPACE:="osh-infra"} - -#NOTE: Deploy command -helm upgrade --install ldap ${OSH_HELM_REPO}/ldap \ - --namespace=${NAMESPACE} \ - --set bootstrap.enabled=true \ - ${OSH_EXTRA_HELM_ARGS:=} \ - ${OSH_EXTRA_HELM_ARGS_LDAP} - -#NOTE: Wait for deploy -helm osh wait-for-pods ${NAMESPACE} diff --git a/tools/deployment/common/memcached.sh b/tools/deployment/common/memcached.sh deleted file mode 100755 index 524aab28cd..0000000000 --- a/tools/deployment/common/memcached.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash - -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -set -xe - -#NOTE: Define variables -: ${OSH_HELM_REPO:="../openstack-helm"} -: ${OSH_VALUES_OVERRIDES_PATH:="../openstack-helm/values_overrides"} -: ${OSH_EXTRA_HELM_ARGS_MEMCACHED:="$(helm osh get-values-overrides ${DOWNLOAD_OVERRIDES:-} -p ${OSH_VALUES_OVERRIDES_PATH} -c memcached ${FEATURES})"} - -#NOTE: Deploy command -helm upgrade --install memcached ${OSH_HELM_REPO}/memcached \ - --namespace=openstack \ - ${OSH_EXTRA_HELM_ARGS} \ - ${OSH_EXTRA_HELM_ARGS_MEMCACHED} - -#NOTE: Wait for deploy -helm osh wait-for-pods openstack diff --git a/tools/deployment/common/nfs-provisioner.sh b/tools/deployment/common/nfs-provisioner.sh deleted file mode 100755 index 0fcb7b9fd3..0000000000 --- a/tools/deployment/common/nfs-provisioner.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/bash - -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -set -xe - -: ${OSH_HELM_REPO:="../openstack-helm"} - -tee /tmp/nfs-ns.yaml << EOF -apiVersion: v1 -kind: Namespace -metadata: - labels: - kubernetes.io/metadata.name: nfs - name: nfs - name: nfs -EOF - -kubectl create -f /tmp/nfs-ns.yaml - -#NOTE: Deploy nfs instance for logging, monitoring and alerting components -tee /tmp/nfs-provisioner.yaml << EOF -labels: - node_selector_key: openstack-control-plane - node_selector_value: enabled -storageclass: - name: general -EOF -helm upgrade --install nfs-provisioner \ - ${OSH_HELM_REPO}/nfs-provisioner --namespace=nfs \ - --values=/tmp/nfs-provisioner.yaml - -#NOTE: Wait for deployment -helm osh wait-for-pods nfs diff --git a/tools/deployment/common/rabbitmq.sh b/tools/deployment/common/rabbitmq.sh deleted file mode 100755 index 90bd285aa1..0000000000 --- a/tools/deployment/common/rabbitmq.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/bash - -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -set -xe - -#NOTE: Define variables -: ${OSH_HELM_REPO:="../openstack-helm"} -: ${OSH_VALUES_OVERRIDES_PATH:="../openstack-helm/values_overrides"} -: ${OSH_EXTRA_HELM_ARGS_RABBITMQ:="$(helm osh get-values-overrides ${DOWNLOAD_OVERRIDES:-} -p ${OSH_VALUES_OVERRIDES_PATH} -c rabbitmq ${FEATURES})"} -: ${NAMESPACE:=openstack} - -#NOTE: Deploy command -helm upgrade --install rabbitmq ${OSH_HELM_REPO}/rabbitmq \ - --namespace=${NAMESPACE} \ - --set pod.replicas.server=1 \ - --timeout=600s \ - ${VOLUME_HELM_ARGS:="--set volume.enabled=false --set volume.use_local_path.enabled=true"} \ - ${OSH_EXTRA_HELM_ARGS:=} \ - ${OSH_EXTRA_HELM_ARGS_RABBITMQ} - -#NOTE: Wait for deploy -helm osh wait-for-pods ${NAMESPACE} - -helm test rabbitmq --namespace openstack diff --git a/tools/deployment/component/common/ldap.sh b/tools/deployment/component/common/ldap.sh index c27f6ef26a..cf3feba8b5 100755 --- a/tools/deployment/component/common/ldap.sh +++ b/tools/deployment/component/common/ldap.sh @@ -18,6 +18,7 @@ set -xe : ${OSH_HELM_REPO:="../openstack-helm"} : ${OSH_VALUES_OVERRIDES_PATH:="../openstack-helm/values_overrides"} : ${OSH_EXTRA_HELM_ARGS_LDAP:="$(helm osh get-values-overrides ${DOWNLOAD_OVERRIDES:-} -p ${OSH_VALUES_OVERRIDES_PATH} -c ldap ${FEATURES})"} +: ${NAMESPACE:=openstack} #NOTE: Deploy command tee /tmp/ldap.yaml <