Giter VIP home page Giter VIP logo

Comments (6)

amouat avatar amouat commented on May 30, 2024

Probably the best way to do this is to use a daemon set and an image wolf namespace. Then we can just do a GET request for the pods in the namespace.

from imagewolf.

amouat avatar amouat commented on May 30, 2024

Actually, the downward API may be the easiest way to get the pod info, if it has the needed data https://kubernetes.io/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/#the-downward-api

I suspect it only exposes info about the given pod though :(

from imagewolf.

etiennetremel avatar etiennetremel commented on May 30, 2024

Using DaemonSet and headless Service allow proper peer discovery: #6

from imagewolf.

amouat avatar amouat commented on May 30, 2024

Thanks Etienne! Just taking a look at this now.

from imagewolf.

etiennetremel avatar etiennetremel commented on May 30, 2024

If you hit some version issue between Docker client and the api, you need to downgrade the Docker client version. I had that issue while testing on GKE. Using the following multistage Dockerfile fixed it:

# Build stage
FROM golang:1.8 as builder

WORKDIR /go/src/

COPY src .

RUN go get github.com/anacrolix/torrent
RUN go get github.com/anacrolix/utp
RUN go get github.com/docker/distribution/notifications

RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .

# Run stage
FROM alpine:3.4
RUN apk --no-cache add ca-certificates docker=1.11.2-r1

WORKDIR /root/

COPY --from=builder /go/src/app .

EXPOSE 6000

CMD ["./app"]

from imagewolf.

amouat avatar amouat commented on May 30, 2024

Closed via #7

from imagewolf.

Related Issues (7)

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.