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 do helm update trino-gateway-configuration nil #333

Open
Nexengineer opened this issue May 7, 2024 · 3 comments
Open

Unable do helm update trino-gateway-configuration nil #333

Nexengineer opened this issue May 7, 2024 · 3 comments

Comments

@Nexengineer
Copy link

Hi,

I am trying to use helm deployment of trino gateway.

trino gateway version: 8

gateway_ovverides.yaml

# Default values for gateway.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

replicaCount: 1

image:
  repository: trinodb/trino-gateway
  pullPolicy: IfNotPresent
  tag: "8"

imagePullSecrets: []

# Provide configuration for the Trino Gateway dataStore in dataStoreSecret. This node can
# be left undefined if dataStore is defined under the config node. For production deployments
# sensitive values should be stored in a Secret
dataStoreSecret:
  name: ''
  key: ''
# Provide configuration for the Trino Gateway backendState in backendStateSecret. This should
# be used with health check configurations that require backend credentials. This node can
# be left undefined if dataStore is defined under the config node.
backendStateSecret:
  name: ''
  key: ''
# Provide configuration for the Trino Gateway authentication configuration in authenticationSecret.
# This node can be left undefined if dataStore is defined under the config node.
authenticationSecret:
  name: ''
  key: ''
config:
  logging:
    type: external
  requestRouter:
    port: 8085
    name: trinoRouter
    historySize: 1000
  server:
    applicationConnectors:
      - type: http
        port: 8090
        useForwardedHeaders: true
    adminConnectors:
      - type: http
        port: 8091
        useForwardedHeaders: true
  clusterStatsConfiguration:
    monitorType: INFO_API
  modules:
    - io.trino.gateway.ha.module.HaGatewayProviderModule
    - io.trino.gateway.ha.module.ClusterStateListenerModule
    - io.trino.gateway.ha.module.ClusterStatsMonitorModule
  managedApps:
    - io.trino.gateway.ha.GatewayManagedApp
    - io.trino.gateway.ha.clustermonitor.ActiveClusterMonitor
  dataStore:
    jdbcUrl: >-
      jdbc:postgresql://local:5432/postgres?currentSchema=master
    user: admin
    password:postgres
    driver: org.postgresql.Driver
service:
  type: ClusterIP
ingress:
  enabled: false
  className: ''
  annotations: {}
  hosts:
    - host: chart-example.local
      paths:
        - path: /
          pathType: ImplementationSpecific
  tls: []
resources:
  limits:
    cpu: 2
    memory: 4Gi
  requests:
    cpu: 2
    memory: 4Gi
autoscaling:
  enabled: false
  minReplicas: 1
  maxReplicas: 100
  targetCPUUtilizationPercentage: 80
livenessProbe:
  initialDelaySeconds: 30
  periodSeconds: 10
  failureThreshold: 3
  timeoutSeconds: 1
  scheme: HTTP
readinessProbe:
  initialDelaySeconds: 5
  periodSeconds: 5
  failureThreshold: 12
  timeoutSeconds: 1
  scheme: HTTP
volumes: {}
volumeMounts: {}
nodeSelector: {}
tolerations: []
affinity: {}
podAnnotations: {}
podLabels: {}
podSecurityContext: {}
securityContext: {}
serviceAccount:
  create: true
  automount: true
  annotations: {}
  name: ''

command :

helm upgrade gateway --create-namespace ./trino_gateway/helm/ --install \
          --values trino_gateway/populated/gateway_ovverides.yaml \
          -n trino-gateway

error:

  Release "gateway" does not exist. Installing it now.
  Error: template: trino-gateway/templates/deployment.yaml:20:71: executing "trino-gateway/templates/deployment.yaml" at <"trino-gateway-configuration">: nil pointer evaluating interface {}.resourceVersion

@mosabua
Copy link
Member

mosabua commented May 7, 2024

fyi @willmostly .. need to test this now that the release is out.

@Nexengineer we are just getting started and this is our first release of the Helm chart. Thank you for filing this ticket. We would love to get fixes if you find any .. and also suggestions for documentation improvements.

@Nexengineer
Copy link
Author

Nexengineer commented May 7, 2024

@mosabua thanks for reply.
Coincidently we are trying to use this in the production environment. As of now I am proceeding with using deployment and config yamls for deployment of trino gateway on k8s.

Do include me, I would also like to contribute.

@mosabua
Copy link
Member

mosabua commented May 7, 2024

Join us in trino-gateway-dev slack channel and help wherever you want here..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants