Comments (2)
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.
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)
- gcr: handle config.json with both https://gcr.io and gcr.io
- driver: firecracker
- driver: podman HOT 3
- trim docker for windows errors HOT 1
- kubernetes: support named ports HOT 6
- Allow custom pod annotations (per job) HOT 1
- Allow to set DRONE_RUNNER_LABELS on kubernetes jobs HOT 6
- driver: knative / tekton HOT 18
- kubernetes: support resource qutoas HOT 2
- Empty secret places ******** between every character HOT 1
- [Kubernetes] - missing architecture for amd64 jobs HOT 4
- Kubernetes: Planned Changes / Deprecation / Replacement HOT 10
- bug: unable to cancel HOT 8
- Pipeline pods cannot be scheduled in Drone for Kubernetes HOT 7
- Pipeline shared volume is mounted with `noexec` flag, preventing execution of scripts in source code / local dependencies HOT 3
- failed to create fsnotify watcher: too many open files HOT 1
- DRONE_KUBERNETES_TTL_AFTER_FINISHED HOT 2
- driver: compose HOT 2
- emulate 0.8 networking and bridge network HOT 1
- [feature] support custom volume to mapping source-code when use k8s mode HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drone-runtime.