From 9286d03d776b2e65f6abb8ddb7123918b5efe747 Mon Sep 17 00:00:00 2001 From: "Wahlstedt, Walter (ww229g)" Date: Wed, 18 Jan 2023 09:23:00 -0500 Subject: [PATCH] create namespace before deploying nfs Change-Id: I0a6641ac5e3b79c62999136839d651b923405b0c --- .../component/nfs-provisioner/nfs-provisioner.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tools/deployment/component/nfs-provisioner/nfs-provisioner.sh b/tools/deployment/component/nfs-provisioner/nfs-provisioner.sh index f9d8038960..b98e21eb4d 100755 --- a/tools/deployment/component/nfs-provisioner/nfs-provisioner.sh +++ b/tools/deployment/component/nfs-provisioner/nfs-provisioner.sh @@ -14,6 +14,18 @@ set -xe +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 command : ${OSH_INFRA_PATH:="../openstack-helm-infra"} helm upgrade --install nfs-provisioner ${OSH_INFRA_PATH}/nfs-provisioner \