Skip to content

Commit

Permalink
Change the order when deploying projectsveltos
Browse files Browse the repository at this point in the history
First deploy addon-controller, which will create projectsveltos
namespace.
Then sveltoscluster-controller and finally the register-mgmt-cluster.
  • Loading branch information
mgianluc committed Apr 29, 2024
1 parent 6e24089 commit 091f3f2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -258,17 +258,17 @@ deploy-projectsveltos: $(KUSTOMIZE)
@echo 'Install register-mgmt-cluster'
$(KUBECTL) apply -f https://raw.githubusercontent.com/projectsveltos/register-mgmt-cluster/$(TAG)/manifest/manifest.yaml

# Install projectsveltos ui-backend components
@echo 'Install projectsveltos ui-backend-manager components'
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
$(KUSTOMIZE) build config/default | $(ENVSUBST) | $(KUBECTL) apply -f-

# Install addon-controller
$(KUBECTL) apply -f https://raw.githubusercontent.com/projectsveltos/addon-controller/$(TAG)/manifest/manifest.yaml

# Install sveltoscluster-manager
$(KUBECTL) apply -f https://raw.githubusercontent.com/projectsveltos/sveltoscluster-manager/$(TAG)/manifest/manifest.yaml

# Install projectsveltos ui-backend components
@echo 'Install projectsveltos ui-backend-manager components'
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
$(KUSTOMIZE) build config/default | $(ENVSUBST) | $(KUBECTL) apply -f-

@echo "Waiting for projectsveltos ui-backend to be available..."
$(KUBECTL) wait --for=condition=Available deployment/ui-backend-manager -n projectsveltos --timeout=$(TIMEOUT)

Expand Down

0 comments on commit 091f3f2

Please sign in to comment.