I’m facing to a strange issue with the last version of Drone with Kubernetes mode.
Here is the simple pipeline :
kind: pipeline name: default services: - name: nats image: nats-streaming commands: - -cid - libmed - name: postgres image: postgres environement: POSTGRES_PASSWORD: password steps: - name: build image: golang environment: DB_PASSWORD: password DB_NAME: postgres DB_HOST: postgres NATS_URL: nats://nats:4222 commands: - go build - go test
The Drone itself has been of course deployed with :
- name: DRONE_KUBERNETES_ENABLED
- name: DRONE_KUBERNETES_NAMESPACE
- name: DRONE_KUBERNETES_SERVICE_ACCOUNT
The services are spawned but when my tests begins :
2019/04/08 18:31:54 connecting to PostgreSQL database
2019/04/08 18:31:54 error when trying to connect to PostgreSQL : dial tcp: lookup postgres on
10.96.0.10:53: no such host
10.96.0.10 is the K8s DNS server.
I’ve I missed something ?