Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to reconcile BentoDeployment: unable to get: yatai-deployment/network because of unknown namespace for the cache #130

Closed
tmyhu opened this issue Nov 8, 2023 · 1 comment

Comments

@tmyhu
Copy link

tmyhu commented Nov 8, 2023

Following the installation instructions, when I create my first BentoDeployment I run into this error and the BentoDeployment is stuck as Available: False:

yatai-deployment-8586fcd67c-vtfsm manager 1.699404695103506e+09	ERROR	Failed to reconcile BentoDeployment.	{"controller": "bentodeployment", "controllerGroup": "serving.yatai.ai", "controllerKind": "BentoDeployment", "BentoDeployment": {"name":"example","namespace":"yatai"}, "namespace": "yatai", "name": "example", "reconcileID": "aa5d9fcb-9aa7-489d-b9e6-44f5ce1828e6", "bentoDeployment": "example", "namespace": "yatai", "error": "get domain suffix: failed to get configmap network: get configmap: unable to get: yatai-deployment/network because of unknown namespace for the cache", "errorVerbose": "unable to get: yatai-deployment/network because of unknown namespace for the cache
get configmap
github.com/bentoml/yatai-deployment/controllers.(*BentoDeploymentReconciler).generateDefaultHostname.func1
  /workspace/controllers/bentodeployment_controller.go:2750
github.com/bentoml/yatai-common/system.GetNetworkConfigConfigMap
  /go/pkg/mod/github.com/bentoml/yatai-common@v0.0.0-20231016054533-fb836e058cfb/system/network.go:12
github.com/bentoml/yatai-common/system.GetDomainSuffix
  /go/pkg/mod/github.com/bentoml/yatai-common@v0.0.0-20231016054533-fb836e058cfb/system/ingress.go:183
github.com/bentoml/yatai-deployment/controllers.(*BentoDeploymentReconciler).generateDefaultHostname
  /workspace/controllers/bentodeployment_controller.go:2744
github.com/bentoml/yatai-deployment/controllers.(*BentoDeploymentReconciler).generateIngressHost
 /workspace/controllers/bentodeployment_controller.go:2734
github.com/bentoml/yatai-deployment/controllers.(*BentoDeploymentReconciler).generateIngresses
  /workspace/controllers/bentodeployment_controller.go:2833
github.com/bentoml/yatai-deployment/controllers.(*BentoDeploymentReconciler).createOrUpdateIngresses
(...)

yatai-deployment installed with values:

    enableRestrictedSecurityContext: true
    network:
      domainSuffix: stg.int.phq.io
      automaticDomainSuffixGeneration: false  # to disable a job that would try to create ingress stuff
    bentoDeploymentAllNamespaces: false
    bentoDeploymentNamespaces: ['yatai', 'yatai-system']

Note that I do not want to use Ingress at all and have disabled it in the BentoDeployment via spec.ingress.enabled so network configmap should not even be needed?

@yetone
Copy link
Member

yetone commented Nov 29, 2023

The latest version has resolved this issue; please update to yatai-deployment v1.1.20.

@yetone yetone closed this as completed Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants