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

Unable to start a Kubevela app with local helm chart or git helm chart. #6487

Open
sarojbehera1 opened this issue Mar 19, 2024 · 0 comments
Open

Comments

@sarojbehera1
Copy link

sarojbehera1 commented Mar 19, 2024

Describe the bug
Unable to start a Kubevela app with local helm chart or git helm chart.

To Reproduce
Steps to reproduce the behavior:

  1. Created a helm chart helloworld
  2. Installed it to ensure, it is working fine. Then uninstalled the helm chart
  3. Created a file "hello.yaml" with following contents
cat hello.yaml 
apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
  name: sarojhelloworldapp
spec:
  components:
    - name: sarojhellocomponent
      type: helm
      properties:
        repoType: "helm"
        url: "./helloworld.tgz"
        chart: "helloworld"
        version: "0.1.0"
        values: 
          master:
            persistence:
              size: 16Gi
          replica:
            persistence:
              size: 16Gi
  1. vela up -f hello.yaml
  2. vela ls
APP               	COMPONENT          	TYPE      	TRAITS                 	PHASE          	HEALTHY  	STATUS                                                      	CREATED-TIME                 
sarojhelloworldapp	sarojhellocomponent	helm      	                       	runningWorkflow	unhealthy	Fetch repository fail, Delivery helm release in progress,   	2024-03-19 09:15:47 +0530 IST
                  	                   	          	                       	               	         	message: HelmChart 'prod/prod-sarojhellocomponent' is not   
  1. It shows that the helm "Unhealthy Fetch repository fail,"
  2. vela status sarojhelloworldapp
About:

  Name:      	sarojhelloworldapp           
  Namespace: 	prod                         
  Created at:	2024-03-19 09:15:47 +0530 IST
  Status:    	runningWorkflow              

Workflow:

  mode: DAG-DAG
  finished: false
  Suspend: false
  Terminated: false
  Steps
  - id: julrmw9yuw
    name: sarojhellocomponent
    type: apply-component
    phase: running 
    message: wait healthy

Services:

  - Name: sarojhellocomponent  
    Cluster: local  Namespace: prod
    Type: helm
    Unhealthy Fetch repository fail, Delivery helm release in progress, message: HelmChart 'prod/prod-sarojhellocomponent' is not ready
    No trait applied
  1. I have already started the vela app using this: https://kubevela.io/docs/tutorials/helm/
    This woks fine

  2. I have also tried it hosting on my git: https://github.com/sarojbehera1/helmtest/tree/master/helloworld

  3. So modified my hello.yaml as following url: "https://github.com/sarojbehera1/helmtest/":
    cat hello.yaml
    apiVersion: core.oam.dev/v1beta1
    kind: Application
    metadata:
    name: sarojhelloworldapp
    spec:
    components:

    • name: sarojhellocomponent
      type: helm
      properties:
      repoType: "helm"
      url: "https://github.com/sarojbehera1/helmtest/"
      chart: "helloworld"
      version: "0.1.0"
      values:
      master:
      persistence:
      size: 16Gi
      replica:
      persistence:
      size: 16Gi
  4. Still it is not woking fine

Expected behavior
Expecting it to fetch the helm chart and start the application.

Screenshots

KubeVela Version

Cluster information

kubectl version
Client Version: v1.29.1
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.25.9
WARNING: version difference between client (1.29) and server (1.25) exceeds the supported minor version skew of +/-1

Additional context

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

1 participant