charts icon indicating copy to clipboard operation
charts copied to clipboard

[stable/nextcloud] Deployment not created when service.type set to LoadBalancer

Open adamdodev opened this issue 7 years ago • 2 comments

Is this a request for help?: No


Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT

Version of Helm and Kubernetes:

→ helm version                                                                                                                                  
Client: &version.Version{SemVer:"v2.13.1", GitCommit:"618447cbf203d147601b4b9bd7f8c37a5d39fbb4", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.13.1", GitCommit:"618447cbf203d147601b4b9bd7f8c37a5d39fbb4", GitTreeState:"clean"}

→ kubectl version                                                                                                                               
Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.0", GitCommit:"641856db18352033a0d96dbc99153fa3b27298e5", GitTreeState:"clean", BuildDate:"2019-03-26T00:04:52Z", GoVersion:"go1.12.1", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.11", GitCommit:"637c7e288581ee40ab4ca210618a89a555b6e7e9", GitTreeState:"clean", BuildDate:"2018-11-26T14:25:46Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}

Which chart: stable/nextcloud

What happened: When service.type configuration is set to LoadBalancer, Secret and Service resources are created correctly, but Deployment and Pod resources are not.

What you expected to happen: Deployment, Pod, Secret and Service Resources are created for all service types.

How to reproduce it (as minimally and precisely as possible): Working:

→ helm install stable/nextcloud --atomic --name nextcloud-release

NAME:   nextcloud-release
LAST DEPLOYED: Sun Apr 21 13:44:03 2019
NAMESPACE: default
STATUS: DEPLOYED

RESOURCES:
==> v1/Deployment
NAME               READY  UP-TO-DATE  AVAILABLE  AGE
nextcloud-release  1/1    1           1          36s

==> v1/Pod(related)
NAME                                READY  STATUS   RESTARTS  AGE
nextcloud-release-745d67d456-qr6n2  1/1    Running  0         36s

==> v1/Secret
NAME               TYPE    DATA  AGE
nextcloud-release  Opaque  2     36s

==> v1/Service
NAME               TYPE       CLUSTER-IP     EXTERNAL-IP  PORT(S)   AGE
nextcloud-release  ClusterIP  10.96.147.245  <none>       8080/TCP  36s

Not working:

→ helm install stable/nextcloud --atomic --name nextcloud-release --set service.type=LoadBalancer,nextcloud.host=example.com

NAME:   nextcloud-release
LAST DEPLOYED: Sun Apr 21 13:46:09 2019
NAMESPACE: default
STATUS: DEPLOYED

RESOURCES:
==> v1/Secret
NAME               TYPE    DATA  AGE
nextcloud-release  Opaque  2     2s

==> v1/Service
NAME               TYPE          CLUSTER-IP      EXTERNAL-IP  PORT(S)         AGE
nextcloud-release  LoadBalancer  10.101.247.106  localhost    8080:30165/TCP  2s

Anything else we need to know:

I'm guessing this part of the helpers either isn't working or I'm misunderstanding the comments and documentation - https://github.com/helm/charts/blob/e3ba6f2b662e26c1fbcee189baffd61fb277de58/stable/nextcloud/templates/_helpers.tpl#L52

adamdodev avatar Apr 21 '19 12:04 adamdodev

cc @chrisingenhaag (sorry, I don't know if there's a better way of notifying chart owners)

adamdodev avatar Apr 29 '19 14:04 adamdodev

No worries, I´ll take a look onto this. After first look, I think you´re right. The helper method has an issue as its nulls nextcloud.host if serviceType is LoadBalancer. And without this no Deployment will be rendered by helm.

chrisingenhaag avatar Apr 29 '19 14:04 chrisingenhaag