tutor icon indicating copy to clipboard operation
tutor copied to clipboard

K8s deployment fails when there's no persistent volume claims to apply

Open snglth opened this issue 1 year ago • 4 comments

Bug description

I have following options in my config.yml:

RUN_ELASTICSEARCH: false
RUN_MONGODB: false
RUN_MYSQL: false
RUN_REDIS: false
RUN_SMTP: false

It blocks k8s deployment since there's no persistent volume claims to apply:

-x tutor k8s start
kubectl get namespaces openedx
NAME      STATUS   AGE
openedx   Active   2d21h
Namespace already exists: skipping creation.
kubectl apply --kustomize /Users/snglth/Development/Abstract/fc-tutor/env --wait --selector app.kubernetes.io/component=volume
error: no objects passed to apply
Error: Command failed with status 1: kubectl apply --kustomize /Users/snglth/Development/Abstract/fc-tutor/env --wait --selector app.kubernetes.io/component=volume

I think that it should not be like that.

How to reproduce

Described above

Environment

macOS 14.4.1, tutor 17.0.3 Additional context

snglth avatar Apr 02 '24 10:04 snglth

Hi. Under what circumstances would we not want any volumes for k8s (by disabling all the configs)? In all the cases, are you relying on externally hosted services?

DawoudSheraz avatar May 10 '24 07:05 DawoudSheraz

Hello @DawoudSheraz, that's exactly our use case. We have all the services externallized in another machine, out of our cluster.

yagouam avatar May 10 '24 08:05 yagouam

This is also our case. We keep all the stateful services outsite of K8s cluster.

snglth avatar May 10 '24 13:05 snglth

Same case here. Fix works nicely. Thanks @snglth.

angellareo avatar May 13 '24 08:05 angellareo