# Enable TLS between drone server and k8s runner fails

**URL:** <https://drone.discourse.group/t/enable-tls-between-drone-server-and-k8s-runner-fails/4679>\
**Category:** Drone Support\
**Created:** [June 20, 2021, 3:31pm UTC](https://drone.discourse.group/t/enable-tls-between-drone-server-and-k8s-runner-fails/4679 "2021-06-20T15:31:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ErezWeinstein](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/erezweinstein/32/3419_2.png) [@ErezWeinstein](https://drone.discourse.group/u/ErezWeinstein)\
**Post date:** [June 20, 2021, 3:31pm UTC](https://drone.discourse.group/t/enable-tls-between-drone-server-and-k8s-runner-fails/4679/1 "2021-06-20T15:31:32Z")

</div>

Hi, we deployed drone server and k8s runner via helm.  
Drone server is behind nginx load balancer equipped with managed certificate (ACM).

We would like to enable encryption between drone server and runner as well.

I already created a tls secret.

from the k8s runner helm chart:

```auto
ingress:
  enabled: true
# annotations:
# kubernetes.io/ingress.class: nginx
  hosts:
    - host: myhost.com
      paths:
        - "/"
  tls:
    - secretName: k8s-runner-tls-secret
      hosts:
      - myhost.com

```

I’m getting this error when I switch the `enabled: true`:

```auto
Error: UPGRADE FAILED: error validating "": error validating data: [ValidationError(Ingress.spec.rules[0].http.paths[0].backend): unknown field "serviceName" in io.k8s.api.networking.v1.IngressBackend, ValidationError(Ingress.spec.rules[0].http.paths[0].backend): unknown field "servicePort" in io.k8s.api.networking.v1.IngressBackend]

```

Is it a known issue with the chart?

Thanks in advance,  
Erez

---

<div class="post-metadata">

**Author:** ![Yuval\_Shapiro](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/yuval_shapiro/32/6462_2.png) [@Yuval\_Shapiro](https://drone.discourse.group/u/Yuval_Shapiro)\
**Post date:** [August 16, 2021, 5:06am UTC](https://drone.discourse.group/t/enable-tls-between-drone-server-and-k8s-runner-fails/4679/2 "2021-08-16T05:06:33Z")

</div>

some updates in this issue:  
we made more changes to try to connect with https from the drone runner to the drone server:  
using the below:  
extraSecretNamesForEnvFrom:

- k8s-runner-tls-secret  
and also changing the service as follows:  
service:  
type: ClusterIP  
port: 443  
we also used kustomize to change the service updated as follows:  
spec:  
type: ClusterIP  
ports:
  - port: 443  
targetPort: https  
protocol: TCP  
name: https  
when we ssh to the drone-runner and try perform https api call to the server we it is not succeed.  
from the drone server logs we see the following:

> {“acme”:false,“host”:“[opsys-drone-us-west-2.cpipe-csec.com](http://opsys-drone-us-west-2.cpipe-csec.com)”,“level”:“info”,“msg”:“starting the http server”,“port”:“:443”,“proto”:“https”,“time”:“2021-08-16T04:46:33Z”,“url”:“[https://opsys-drone-us-west-2.cpipe-csec.com](https://opsys-drone-us-west-2.cpipe-csec.com)”}  
> {“interval”:“24h0m0s”,“level”:“info”,“msg”:“starting the zombie build reaper”,“time”:“2021-08-16T04:46:33Z”}  
> interrupt received, terminating process  
> {“error”:“context canceled”,“level”:“fatal”,“msg”:“program terminated”,“time”:“2021-08-16T04:47:02Z”}

---

<div class="post-metadata">

**Author:** ![Yuval\_Shapiro](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/yuval_shapiro/32/6462_2.png) [@Yuval\_Shapiro](https://drone.discourse.group/u/Yuval_Shapiro)\
**Post date:** [August 16, 2021, 5:07am UTC](https://drone.discourse.group/t/enable-tls-between-drone-server-and-k8s-runner-fails/4679/3 "2021-08-16T05:07:22Z")

</div>

and when perform pod describe we see the following error:

> Liveness probe failed: Get “[https://192.168.128.5:443/](https://192.168.128.5:443/)”: dial tcp 192.168.128.5:443: connect: connection refused

> Blockquote  
> we also tried to update the deployment.yaml with customize as follows but with no success:

> apiVersion: apps/v1  
> kind: Deployment  
> metadata:  
> name: opsys-drone  
> spec:  
> template:  
> spec:  
> containers:  
> - name: server  
> ports:  
> - name: https  
> containerPort: 443  
> protocol: TCP

last comment:  
we see that the server listen on port 443 and we tried to ssh to the drone-server and perform:

> / # curl -k [https://localhost](https://localhost)  
> but again we got:

> curl: (7) Failed to connect to localhost port 443: Connection refused

please advise what we may have missed here.  
Thanks.
