Code Monkey home page Code Monkey logo

kaoto-standalone's People

Contributors

apupier avatar delawen avatar dependabot[bot] avatar lburgazzoli avatar lordrip avatar mmelko avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

kaoto-standalone's Issues

Deploy standalone on kubernetes with a custom ingress path

I'm trying to make the installation of multiple version of kaoto through the operator possible (since in fact we have 1-1 relation between the Kaoto CR and the related backend+frontend or standalone set-up) but I'm unable to make it working if I configure path substitution in the ingress, as example with this set-up:

---
apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app.kubernetes.io/component: designer
    app.kubernetes.io/instance: kaoto-sample
    app.kubernetes.io/managed-by: kaoto-operator
    app.kubernetes.io/name: kaoto
    app.kubernetes.io/part-of: kaoto
  name: kaoto-sample
  namespace: default
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/component: designer
      app.kubernetes.io/instance: kaoto-sample
      app.kubernetes.io/managed-by: kaoto-operator
      app.kubernetes.io/name: kaoto
      app.kubernetes.io/part-of: kaoto
  template:
    metadata:
      creationTimestamp: null
      labels:
        app.kubernetes.io/component: designer
        app.kubernetes.io/instance: kaoto-sample
        app.kubernetes.io/managed-by: kaoto-operator
        app.kubernetes.io/name: kaoto
        app.kubernetes.io/part-of: kaoto
    spec:
      containers:
        - env:
            - name: NAMESPACE
              valueFrom:
                fieldRef:
                  apiVersion: v1
                  fieldPath: metadata.namespace
            - name: QUARKUS_LOG_LEVEL
              value: DEBUG
          image: docker.io/kaotoio/standalone:main
          imagePullPolicy: Always
          name: standalone
          ports:
            - containerPort: 8081
              name: http
              protocol: TCP
          resources: {}
          terminationMessagePath: /dev/termination-log
          terminationMessagePolicy: File
---
apiVersion: v1
kind: Service
metadata:
  labels:
    app.kubernetes.io/component: designer
    app.kubernetes.io/instance: kaoto-sample
    app.kubernetes.io/managed-by: kaoto-operator
    app.kubernetes.io/name: kaoto
    app.kubernetes.io/part-of: kaoto
  name: kaoto-sample
spec:
  ports:
    - name: http
      port: 80
      protocol: TCP
      targetPort: 8081
  selector:
    app.kubernetes.io/instance: kaoto-sample
    app.kubernetes.io/name: kaoto
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /$2
    nginx.ingress.kubernetes.io/use-regex: "true"
  labels:
    app.kubernetes.io/component: designer
    app.kubernetes.io/instance: kaoto-sample
    app.kubernetes.io/managed-by: kaoto-operator
    app.kubernetes.io/name: kaoto
    app.kubernetes.io/part-of: kaoto
  name: kaoto-sample
  namespace: default
spec:
  ingressClassName: nginx
  rules:
    - http:
        paths:
          - backend:
              service:
                name: kaoto-sample
                port:
                  name: http
            path: /kaoto-sample(/|$)(.*)
            pathType: Prefix

Any request hitting the ingress with a path prefix of /kaoto-sample is forwarded to the kaoto-sample deployment, however when hitting the endpoint with the browser, a blank page shows up.

Main build KO due to Out of date version of GraalVM detected: GraalVM 22.1.0 Java 17

Error: #21 81.92 [ERROR]     [error]: Build step io.quarkus.deployment.pkg.steps.NativeImageBuildStep#build threw an exception: java.lang.IllegalStateException: Out of date version of GraalVM detected: GraalVM 22.1.0 Java 17 CE (Java Version 17.0.3+7-jvmci-22.1-b06). Quarkus currently supports 22.3.0. Please upgrade GraalVM to this version.

Kaoto backend native builds are broken

Context

After building Kaoto backend natively, when running the image, we get an error that the backend cannot parse the available capabilities.

Backend Stacktrace:

2023-07-21 14:54:30,593 ERROR [io.kao.bac.api.res.v1.CapabilitiesResource] (executor-thread-2) Error getting capabilities.: java.lang.NullPointerException
        at io.kaoto.backend.camel.service.dsl.kamelet.KameletDSLSpecification.validationSchema(KameletDSLSpecification.java:52)2023-07-21 14:54:30,593 ERROR 

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.