Merge "Use upstream ingress-nginx chart"
This commit is contained in:
commit
c48dffaaa2
80
tools/deployment/common/ingress.sh
Executable file
80
tools/deployment/common/ingress.sh
Executable file
@ -0,0 +1,80 @@
|
||||
#!/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
|
||||
|
||||
#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
|
||||
./tools/deployment/common/wait-for-pods.sh kube-system
|
||||
|
||||
#NOTE: Deploy namespace ingress
|
||||
helm upgrade --install ingress-nginx-openstack ingress-nginx/ingress-nginx \
|
||||
--version ${HELM_INGRESS_NGINX_VERSION} \
|
||||
--namespace=openstack \
|
||||
--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
|
||||
./tools/deployment/common/wait-for-pods.sh openstack
|
||||
|
||||
helm upgrade --install ingress-nginx-ceph ingress-nginx/ingress-nginx \
|
||||
--version ${HELM_INGRESS_NGINX_VERSION} \
|
||||
--namespace=ceph \
|
||||
--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
|
||||
./tools/deployment/common/wait-for-pods.sh ceph
|
||||
|
||||
helm upgrade --install ingress-nginx-osh-infra ingress-nginx/ingress-nginx \
|
||||
--version ${HELM_INGRESS_NGINX_VERSION} \
|
||||
--namespace=osh-infra \
|
||||
--set controller.admissionWebhooks.enabled="false" \
|
||||
--set controller.scope.enabled="true" \
|
||||
--set controller.service.enabled="false" \
|
||||
--set controller.ingressClassResource.name=nginx-osh-infra \
|
||||
--set controller.ingressClassResource.controllerValue="k8s.io/ingress-nginx-osh-infra" \
|
||||
--set controller.ingressClass=nginx-osh-infra \
|
||||
--set controller.labels.app=ingress-api
|
||||
|
||||
#NOTE: Wait for deploy
|
||||
./tools/deployment/common/wait-for-pods.sh osh-infra
|
@ -35,7 +35,7 @@ cd -
|
||||
helm upgrade --install keystone ${OSH_PATH}/keystone \
|
||||
--namespace=openstack \
|
||||
--values=${OSH_PATH}/keystone/values_overrides/ldap.yaml \
|
||||
--set network.api.ingress.classes.namespace=nginx-openstack \
|
||||
--set network.api.ingress.classes.namespace=nginx \
|
||||
${OSH_EXTRA_HELM_ARGS} \
|
||||
${OSH_EXTRA_HELM_ARGS_KEYSTONE}
|
||||
|
||||
|
@ -35,7 +35,7 @@ cd -
|
||||
helm upgrade --install keystone ${OSH_PATH}/keystone \
|
||||
--namespace=openstack \
|
||||
--values=${OSH_PATH}/keystone/values_overrides/ldap.yaml \
|
||||
--set network.api.ingress.classes.namespace=nginx-openstack \
|
||||
--set network.api.ingress.classes.namespace=nginx \
|
||||
--set endpoints.oslo_db.hosts.default=mariadb-server-primary \
|
||||
${OSH_EXTRA_HELM_ARGS} \
|
||||
${OSH_EXTRA_HELM_ARGS_KEYSTONE}
|
||||
|
@ -25,7 +25,7 @@ helm upgrade --install rabbitmq ./rabbitmq \
|
||||
--namespace=openstack \
|
||||
--recreate-pods \
|
||||
--force \
|
||||
--set network.management.ingress.classes.namespace=nginx-openstack \
|
||||
--set network.management.ingress.classes.namespace=nginx \
|
||||
${OSH_INFRA_EXTRA_HELM_ARGS} \
|
||||
${OSH_INFRA_EXTRA_HELM_ARGS_RABBITMQ}
|
||||
|
||||
|
@ -46,7 +46,7 @@ EOF
|
||||
helm upgrade --install radosgw-openstack ${OSH_INFRA_PATH}/ceph-rgw \
|
||||
--namespace=openstack \
|
||||
--values=/tmp/radosgw-openstack.yaml \
|
||||
--set network.api.ingress.classes.namespace=nginx-openstack \
|
||||
--set network.api.ingress.classes.namespace=nginx \
|
||||
${OSH_EXTRA_HELM_ARGS} \
|
||||
${OSH_EXTRA_HELM_ARGS_CEPH_RGW}
|
||||
|
||||
|
@ -46,7 +46,7 @@ EOF
|
||||
helm upgrade --install cinder ${OSH_PATH}/cinder \
|
||||
--namespace=openstack \
|
||||
--values=/tmp/cinder.yaml \
|
||||
--set network.api.ingress.classes.namespace=nginx-openstack \
|
||||
--set network.api.ingress.classes.namespace=nginx \
|
||||
${OSH_EXTRA_HELM_ARGS} \
|
||||
${OSH_EXTRA_HELM_ARGS_CINDER}
|
||||
|
||||
|
@ -25,7 +25,7 @@ helm upgrade --install rabbitmq ./rabbitmq \
|
||||
--namespace=openstack \
|
||||
--recreate-pods \
|
||||
--force \
|
||||
--set network.management.ingress.classes.namespace=nginx-openstack \
|
||||
--set network.management.ingress.classes.namespace=nginx \
|
||||
${OSH_INFRA_EXTRA_HELM_ARGS} \
|
||||
${OSH_INFRA_EXTRA_HELM_ARGS_RABBITMQ}
|
||||
|
||||
|
@ -34,7 +34,7 @@ network:
|
||||
api:
|
||||
ingress:
|
||||
classes:
|
||||
namespace: nginx-openstack
|
||||
namespace: nginx
|
||||
deployment:
|
||||
ceph: true
|
||||
rgw_keystone_user_and_endpoints: true
|
||||
|
@ -46,7 +46,7 @@ EOF
|
||||
helm upgrade --install cinder ${OSH_PATH}/cinder \
|
||||
--namespace=openstack \
|
||||
--values=/tmp/cinder.yaml \
|
||||
--set network.api.ingress.classes.namespace=nginx-openstack \
|
||||
--set network.api.ingress.classes.namespace=nginx \
|
||||
${OSH_EXTRA_HELM_ARGS} \
|
||||
${OSH_EXTRA_HELM_ARGS_CINDER}
|
||||
|
||||
|
@ -119,7 +119,7 @@
|
||||
container_distro_version: focal
|
||||
gate_scripts:
|
||||
- ./tools/deployment/osh-infra-logging/000-prepare-k8s.sh
|
||||
- ./tools/deployment/osh-infra-logging/010-ingress.sh
|
||||
- ./tools/deployment/common/ingress.sh
|
||||
- ./tools/deployment/ceph/ceph-rook.sh
|
||||
- ./tools/deployment/ceph/ceph-adapter-rook.sh
|
||||
- ./tools/deployment/osh-infra-logging/040-ldap.sh
|
||||
@ -145,7 +145,7 @@
|
||||
gate_scripts:
|
||||
- ./tools/deployment/osh-infra-monitoring/000-prepare-k8s.sh
|
||||
- ./tools/deployment/osh-infra-monitoring/010-deploy-docker-registry.sh
|
||||
- ./tools/deployment/osh-infra-monitoring/020-ingress.sh
|
||||
- ./tools/deployment/common/ingress.sh
|
||||
- ./tools/deployment/osh-infra-monitoring/030-nfs-provisioner.sh
|
||||
- ./tools/deployment/osh-infra-monitoring/040-ldap.sh
|
||||
- ./tools/deployment/osh-infra-monitoring/045-mariadb.sh
|
||||
@ -195,7 +195,7 @@
|
||||
gate_scripts:
|
||||
- ./tools/deployment/openstack-support/000-prepare-k8s.sh
|
||||
- ./tools/deployment/openstack-support/007-namespace-config.sh
|
||||
- ./tools/deployment/openstack-support/010-ingress.sh
|
||||
- ./tools/deployment/common/ingress.sh
|
||||
- ./tools/deployment/ceph/ceph.sh
|
||||
- ./tools/deployment/openstack-support/025-ceph-ns-activate.sh
|
||||
- ./tools/deployment/openstack-support/030-rabbitmq.sh
|
||||
@ -222,7 +222,7 @@
|
||||
gate_scripts:
|
||||
- ./tools/deployment/openstack-support-rook/000-prepare-k8s.sh
|
||||
- ./tools/deployment/openstack-support-rook/007-namespace-config.sh
|
||||
- ./tools/deployment/openstack-support-rook/010-ingress.sh
|
||||
- ./tools/deployment/common/ingress.sh
|
||||
- ./tools/deployment/ceph/ceph-rook.sh
|
||||
- ./tools/deployment/ceph/ceph-adapter-rook.sh
|
||||
- ./tools/deployment/openstack-support-rook/030-rabbitmq.sh
|
||||
@ -251,7 +251,7 @@
|
||||
gate_scripts:
|
||||
- ./tools/deployment/openstack-support/000-prepare-k8s.sh
|
||||
- ./tools/deployment/openstack-support/007-namespace-config.sh
|
||||
- ./tools/deployment/openstack-support/010-ingress.sh
|
||||
- ./tools/deployment/common/ingress.sh
|
||||
- ./tools/deployment/ceph/ceph.sh
|
||||
- ./tools/deployment/openstack-support/025-ceph-ns-activate.sh
|
||||
- ./tools/deployment/openstack-support/030-rabbitmq.sh
|
||||
@ -279,7 +279,7 @@
|
||||
gate_scripts:
|
||||
- ./tools/deployment/openstack-support/000-prepare-k8s.sh
|
||||
- ./tools/deployment/openstack-support/007-namespace-config.sh
|
||||
- ./tools/deployment/openstack-support/010-ingress.sh
|
||||
- ./tools/deployment/common/ingress.sh
|
||||
- ./tools/deployment/ceph/ceph.sh
|
||||
- ./tools/deployment/openstack-support/025-ceph-ns-activate.sh
|
||||
- ./tools/deployment/openstack-support/030-rabbitmq.sh
|
||||
@ -308,7 +308,7 @@
|
||||
gate_scripts:
|
||||
- ./tools/deployment/openstack-support/000-prepare-k8s.sh
|
||||
- ./tools/deployment/openstack-support/007-namespace-config.sh
|
||||
- ./tools/deployment/openstack-support/010-ingress.sh
|
||||
- ./tools/deployment/common/ingress.sh
|
||||
- ./tools/deployment/ceph/ceph.sh
|
||||
- ./tools/deployment/openstack-support/025-ceph-ns-activate.sh
|
||||
- ./tools/deployment/common/setup-client.sh
|
||||
|
Loading…
Reference in New Issue
Block a user