Code Monkey home page Code Monkey logo

Comments (8)

tico24 avatar tico24 commented on August 19, 2024

Hi there. I can assure you that it does deploy. The CI wouldn't let us release the helm chart until a deployment test has completed on all cncf-supported versions of k8s (Currently 1.20+): https://github.com/sorry-cypress/charts/actions/runs/1490150757

Edit: The above is slightly wrong. Out of the box, the dashboard indeed won't properly work. You do need to configure the values for your environment.

Can you provide information on your kubernetes version please, and your values.yml?

from charts.

abstrakct avatar abstrakct commented on August 19, 2024

Hi, I'm not the OP, but I'm having the same problem. Deployed on a microk8s cluster.

kubectl version:
Server Version: version.Info{Major:"1", Minor:"22+", GitVersion:"v1.22.4-3+adc4115d990346", GitCommit:"adc4115d990346b87714cc4f033d225711bf744d", GitTreeState:"clean", BuildDate:"2021-11-17T22:03:17Z", GoVersion:"go1.16.10", Compiler:"gc", Platform:"linux/amd64"}

The pods deploy/run, but something is wrong.

Screenshot:
image

Javascript console:
DevTools failed to load source map: Could not parse content for http://dashboard.chart-example.local/normalize.min.css.map: Unexpected token < in JSON at position 0
and
POST http://dashboard.chart-example.local/graphql 405 (Not Allowed)

wget http://dashboard.chart-example.local/normalize.min.css.map returns this:
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="description" content="sorry-cypress dashboard"/><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/><link rel="manifest" href="/site.webmanifest"/><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#fff"/><meta name="msapplication-TileColor" content="#fff"/><meta name="theme-color" content="#ffffff"/><title>Sorry-cypress dashboard</title><link href="/normalize.min.css" rel="stylesheet"/><link href="/fonts.css" rel="stylesheet"/><script>window.__sorryCypressEnvironment = { GRAPHQL_CLIENT_CREDENTIALS: "", GRAPHQL_SCHEMA_URL: "", CI_URL: "" };</script></head><body><div id="app"></div><script src="/index.mjs?7c414d4a50b2d7e877cb"></script></body></html>

I'm fairly new to kubernetes, but I'm guessing this might be related to settings in the values.yaml file? GraphQL credentials? I get this error even when I use the default values. The documentation for all the configuration options is a bit hard to understand for me - for example, are all of them optional, or are some mandatory? Should everything (in theory) work with the defaults?

Thanks for any help.

from charts.

tico24 avatar tico24 commented on August 19, 2024

Ah, that's a sorry cypress error. Not a helm chart error. Are you also running sorry-cypress 1.1.1?

from charts.

abstrakct avatar abstrakct commented on August 19, 2024

Ok, thanks! Yes, v1.1.1

from charts.

tico24 avatar tico24 commented on August 19, 2024

Having a copy of your values.yml will indeed be helpful. Or, if you don't want to do that, output a helm template to a yaml file, and maybe that'll help you pinpoint the root cause?

To answer your question though, no, the default values won't be enough for the dashboard to work. Looking again at that error in the UI, the problem here is that you have not set Dashboard environment variables: https://github.com/sorry-cypress/charts/blob/main/charts/sorry-cypress/values.yaml#L107

The POST error and the javascript error above is because you haven't set this URL: https://github.com/sorry-cypress/charts/blob/main/charts/sorry-cypress/values.yaml#L126

from charts.

abstrakct avatar abstrakct commented on August 19, 2024

Right, thanks a lot! And it looks like these urls must accessible from the outside, not just within the cluster.

I think I'm on the right track now.

from charts.

tico24 avatar tico24 commented on August 19, 2024

Yup. Your browser needs to see them. I get that it's confusing.

You might find looking at the docker-compose examples in the main repo will help you with the setup.

from charts.

tico24 avatar tico24 commented on August 19, 2024

I am going to close this as no further information has been provided by @adezxc

from charts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.