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

ingress_grpc.enabled=true helm install error #107

Open
cyxinda opened this issue Sep 26, 2023 · 0 comments
Open

ingress_grpc.enabled=true helm install error #107

cyxinda opened this issue Sep 26, 2023 · 0 comments

Comments

@cyxinda
Copy link

cyxinda commented Sep 26, 2023

If ingress_grpc.enabled=true,some error would happend,like this:

  ingress:
    enabled: true
    ingressClassName: nginx
    hostname: "dgraph.knowdee.com"
    # annotations: {}
    tls: 
    - hosts: 
      - dgraph.knowdee.com
      secretName: dgraph-dgraph-alpha-tls-secret

  ## alpha GRPC ingress resource configuration
  ## This requires an ingress controller to be installed into your k8s cluster
  ingress_grpc:
    enabled: true
    ingressClassName: nginx
    hostname: "grpc-dgraph.knowdee.com"
    annotations: 
      nginx.ingress.kubernetes.io/backend-protocol: GRPC
      nginx.ingress.kubernetes.io/ssl-redirect: "true"
    tls: 
    - hosts: 
      - grpc-dgraph.knowdee.com
      secretName: dgraph-dgraph-alpha-tls-secret
        Helm install failed: error while running post render on files:
        map[string]interface {}(nil): yaml: unmarshal errors:
          line 31: mapping key "apiVersion" already defined at line 2
          line 32: mapping key "kind" already defined at line 3
          line 33: mapping key "metadata" already defined at line 4
          line 41: mapping key "spec" already defined at line 14

it is because there are the extra "-" in the file of dgraph/templates/alpha/ingress.yaml at the line 64.
截图 2023-09-26 15-05-00
it should remove the symbol "-".

the helm chart version is dgraph/dgraph:0.2.2 .

root@oldsix:/data2/tmp/dgraph/package# helm search repo dgraph
NAME                    CHART VERSION   APP VERSION     DESCRIPTION                                       
dgraph/dgraph           0.2.2           v23.0.1         Dgraph is a horizontally scalable and distribut...
dgraph/dgraph-lambda    0.0.2           v1.2.4          Serverless platform for running JavaScript on S...
dgraph/ratel            0.1.1           v21.12.0        A Helm chart for Kubernetes 

that all.

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