Git Product home page Git Product logo

Comments (7)

l0rd avatar l0rd commented on July 16, 2024

cc @johnmcollier @elsony

from api.

l0rd avatar l0rd commented on July 16, 2024

@johnmcollier will provide another example using a component of type Kubernetes

from api.

sleshchenko avatar sleshchenko commented on July 16, 2024

Does it duplicate #16 ?

There is another interesting option to think about - add an ability to specify PVC name for volume eclipse-che/che#15652

from api.

johnmcollier avatar johnmcollier commented on July 16, 2024

@sleshchenko Yeah it's the same, since there's already some discussion here, I'll close out my issue in favour of this one.

from api.

johnmcollier avatar johnmcollier commented on July 16, 2024

Sample with Kubernetes component:

---
projects:
  - name: "my-project"
components:
  - container:
      image: "busybox"
      name: "mycontainer"
      memoryLimit: "128M"
      mountSources: true
      volumeMount:
        - name: my-data-volume
          path: /some/folder
  - kubernetes:
      referenceContent: |
        kind: Pod
        metadata:
          name: sample-pod
        spec:
          containers:
            image: docker.io/my-sample-image:latest
            volumeMounts:
            - mountPath: /some/path
              name: my-data-volume
  - volume:
     name: my-data-volume
     size: 5Gi

In this scenario, the Kubernetes component references the my-data-volume defined in the volume section under components, rather than having to define one via a persistent volume claim in the pod spec.

from api.

l0rd avatar l0rd commented on July 16, 2024

Reviewed and approved the version provided on this comment.
We also agreed that the name field should be mandatory for volume components.

from api.

davidfestal avatar davidfestal commented on July 16, 2024

implemented

from api.

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.