Comments (3)
this seems to be a known issues with kubernetes. I was able to find this issue: https://github.com/kubernetes/kubernetes/issues/48912
I would caution against using the kubernetes runtime in production. The kubernetes runtime is labeled experimental (hopefully the docs convey this) which means it is not production ready and could (hypothetically) be removed in a future version. We are actively considering replacing it with a Tekton runner, for example. I recommend reading #65 and #69 to get a better sense of the state of native kubernetes.
from drone-runtime.
Thanks @bradrydzewski. I'm currently just experimenting with the k8s-native setup in parallel with our team's server/agent production setup. I guess I'll hold out for the future updates
from drone-runtime.
the kubernetes implementation in this repository was scrapped for reasons described here. We have a new implementation, created from scratch, that no longer mounts a host machine volume which obsoletes this issue. New codebase can be found here:
https://github.com/drone-runners/drone-runner-kube
I tested to confirm it is fixed:
$ cat .drone.yml
kind: pipeline
type: kubernetes
name: default
clone:
disable: true
steps:
- name: test
pull: if-not-exists
image: alpine
commands:
- echo "echo hello" > foo.sh
- chmod +x foo.sh
- ./foo.sh
$ drone-runner-kube exec --kubeconfig=$HOME/.kube/config
[test:1] + echo "echo hello" > foo.sh
[test:2] + chmod +x foo.sh
[test:3] + ./foo.sh
[test:4] hello
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
- 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.