indigo-dc / orchestrator

The INDIGO PaaS Orchestrator
https://www.indigo-datacloud.eu/paas-orchestrator
Apache License 2.0
16 stars 21 forks source link

Problems with kubernetes deployments #416

Closed maricaantonacci closed 3 years ago

maricaantonacci commented 3 years ago

I'm testing the following template:

topology_template:

  node_templates:

    helm:
      type: tosca.nodes.indigo.Kubernetes.HelmChart
      properties:
        repository: https://charts.bitnami.com/bitnami
        name: mysql
        version: 8.2.3
        values: 
          auth:
            rootPassword: hjhyuy8gf
          primary:
            persistence:
              enabled: false
            service:
              type: NodePort
          secondary:
            persistence:
              enabled: false
            service:
              type: NodePort
  outputs:
    endpoint:
      value:  { concat: [  { get_attribute : [ helm, worker_nodes_ips, 0 ] }, ':', { get_attribute : [ helm, service_ports, mysql, mysql, target ] } ] }

and I see two issues:

  1. the chart cannot be installed successfully as the parameters *.persistence.enabled are passed as string instead of boolean
  2. the service port is not returned as the label "release" is not attached to the release resources and therefore the filter on this label returns an empty set.

Possible solutions: