diff --git a/ingressclass.yaml b/ingressclass.yaml new file mode 100644 index 0000000..b84a791 --- /dev/null +++ b/ingressclass.yaml @@ -0,0 +1,6 @@ +apiVersion: networking.k8s.io/v1 +kind: IngressClass +metadata: + name: nginx-ext +spec: + controller: k8s.io/ingress-nginx diff --git a/src/mojafos/deployer/deployer.sh b/src/mojafos/deployer/deployer.sh index 630af21..80ee5c3 100755 --- a/src/mojafos/deployer/deployer.sh +++ b/src/mojafos/deployer/deployer.sh @@ -342,6 +342,12 @@ function postPaymenthubDeploymentScript(){ runFailedSQLStatements } +#Setup ingressClass +function setupIngressClass() { + kubectl apply -f "$BASE_DIR/ingressclass.yaml" + kubectl rollout restart deploy/ingress-nginx-controller +} + function deployMojaloop() { echo "Deploying Mojaloop vNext application manifests" createNamespace "$MOJALOOP_NAMESPACE" @@ -362,6 +368,7 @@ function deployMojaloop() { echo -e "Proceeding ..." fi done + setupIngressClass echo -e "\n${GREEN}============================" echo -e "Mojaloop Deployed"