#marcosnils 3545 do you know of any

1 messages ยท Page 1 of 1 (latest)

rigid saffron
#

like docs or tutorials? haven't seen anything yet. cc @quaint bolt @potent cosmos

river radish
#

๐Ÿ‘ - just looking for shortcuts. ๐Ÿ™‚ I guess I can build an image that runs a Dagger pipeline, push it, and run it as a pod?

#

not even sure how engine provisioning will work in that case, tbh

rigid saffron
#

maybe @last herald or @frigid finch can provide anything that for that?

rigid saffron
# river radish ๐Ÿ‘ - just looking for shortcuts. ๐Ÿ™‚ I guess I can build an image that runs a Dag...

I'd assume you could also start a pod by exporting the dagger engine TCP port and use the tcp connection interface from your machine? https://github.com/dagger/dagger/blob/main/core/docs/d7yxc-operator_manual.md#connection-interface

GitHub

A programmable CI/CD engine that runs your pipelines in containers - dagger/d7yxc-operator_manual.md at main ยท dagger/dagger

#

oh wow! kube-pod uses kubectl to establish the connection to the engine pod. its' even easier

#
  1. Start a pod with the engine
  2. Use the kube-pod connection interface to run your pipeline against that pod from your local machine
quaint bolt
#

I'm assuming @flint basalt might have tips on this as well

river radish
rigid saffron
river radish
#

oh nice party_blob

flint basalt
#

I've done some work with Dagger in k8s (as has @potent cosmos), but I'm currently using Docker-in-Docker (so running dagger in Docker in a k8s pod)...

#

Planning on changing that up soon, though.

river radish
#

got it working! but it doesn't reproduce the issue. probably need to try this against a real k8s cluster. I can try GKE or something next, since I'm somewhat familiar with it.

for posterity, here's my pod + env setup:

apiVersion: v1
kind: Pod
metadata:
  name: dagger
spec:
  containers:
  - name: dagger
    image: registry.dagger.io/engine:v0.3.13
    securityContext:
      privileged: true
$ kubectl apply -f dagpod.yml
$ export _EXPERIMENTAL_DAGGER_RUNNER_HOST=kube-pod://dagger
$ go run main.go

i kubectl exec'd into the pod and confirmed it was running everything there.

quaint bolt
river radish
#

kind

last herald
#
      - name: setup k3s
        run: |
          curl -sfL https://get.k3s.io | K3S_KUBECONFIG_MODE="644" sh -s -
          kubectl version
      - run: |
          kubectl apply -f dagpod.yml
          export _EXPERIMENTAL_DAGGER_RUNNER_HOST=kube-pod://dagger
          go run main.go
        env:
          KUBECONFIG: /etc/rancher/k3s/k3s.yaml

It could be easy to setup k8s/k8s-like in github action.