Git Product home page Git Product logo

Comments (2)

everflux avatar everflux commented on July 19, 2024 1

Thanks for pointing out the thread and providing an example. I was using the documentation from https://docs.drone.io/user-guide/pipeline/services/

I triaged the problem: I did not specify any ports. This lead to no service beeing created, which is self explaining since kubernetes services require a port.

I suggest to remember adding it to the documentation and perhaps even add a safeguard against wrong usage. (Since migrating previous pipeline definitions to kubernetes runtime won't be a 1-to-1 match)

from drone-runtime.

bradrydzewski avatar bradrydzewski commented on July 19, 2024

I am unable to reproduce. Also per our issue template we generally prefer to triage issues in our mailing list before we create issues. The mailing list has thousands of subscribers, and we tend to get more participation and more developer feedback in the mailing list (which is especially important when an issue cannot be directly reproduced).

Regarding Drone for Kubernetes please see the following thread, which includes debug tools and verified examples of using with services: https://discourse.drone.io/t/contributing-to-drone-for-kubernetes/3159

Using the debug tools, you will see in this thread that the following yaml:

kind: pipeline
name: default

steps:
- name: test
  image: redis
  commands:
  - sleep 5
  - redis-cli -h $REDIS_SERVICE_HOST ping

services:
- name: redis
  image: redis
  ports:
  - 6379

Generates the following service definition:

---
kind: Service
metadata:
  creationTimestamp: null
  name: redis
  namespace: b9g01ck695yk7a7x2li10as5kq7m6lii
spec:
  ports:
  - port: 6379
    targetPort: 6379
  selector:
    io.drone.step.name: redis
  type: ClusterIP
status:
  loadBalancer: {}

from drone-runtime.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.