Giter Site home page Giter Site logo

example's Issues

deploys fails

I try to deploy coredns in my k8s 1.9 using your example configs.

no matter I remove serviceaccountname or not, it causes the same error: is this coded in your code in this version or did I do something wrong ?

2018/04/27 03:37:48 plugin/kubernetes: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory

Example is not compiling

The mod was recnetly removed, and there's no information about how to build from scratch without the mod.

if you remove the mod then you will need to document what dependencies should be included on the $GOPATh, and how to do it please?


MacBook-Pro:coredns-example clebertsuconic$ go build
setup.go:8:2: cannot find package "github.com/caddyserver/caddy" in any of:
	/usr/local/go/src/github.com/caddyserver/caddy (from $GOROOT)
	/Users/clebertsuconic/go/src/github.com/caddyserver/caddy (from $GOPATH)
setup.go:4:2: cannot find package "github.com/coredns/coredns/core/dnsserver" in any of:
	/usr/local/go/src/github.com/coredns/coredns/core/dnsserver (from $GOROOT)
	/Users/clebertsuconic/go/src/github.com/coredns/coredns/core/dnsserver (from $GOPATH)
example.go:12:2: cannot find package "github.com/coredns/coredns/plugin" in any of:
	/usr/local/go/src/github.com/coredns/coredns/plugin (from $GOROOT)
	/Users/clebertsuconic/go/src/github.com/coredns/coredns/plugin (from $GOPATH)
example.go:13:2: cannot find package "github.com/coredns/coredns/plugin/metrics" in any of:
	/usr/local/go/src/github.com/coredns/coredns/plugin/metrics (from $GOROOT)
	/Users/clebertsuconic/go/src/github.com/coredns/coredns/plugin/metrics (from $GOPATH)
example.go:14:2: cannot find package "github.com/coredns/coredns/plugin/pkg/log" in any of:
	/usr/local/go/src/github.com/coredns/coredns/plugin/pkg/log (from $GOROOT)
	/Users/clebertsuconic/go/src/github.com/coredns/coredns/plugin/pkg/log (from $GOPATH)
example.go:16:2: cannot find package "github.com/miekg/dns" in any of:
	/usr/local/go/src/github.com/miekg/dns (from $GOROOT)
	/Users/clebertsuconic/go/src/github.com/miekg/dns (from $GOPATH)
metrics.go:8:2: cannot find package "github.com/prometheus/client_golang/prometheus" in any of:
	/usr/local/go/src/github.com/prometheus/client_golang/prometheus (from $GOROOT)
	/Users/clebertsuconic/go/src/github.com/prometheus/client_golang/prometheus (from $GOPATH)


This PR would fix this issue, which is pretty much re-adding the module, but if this is not desirable than an alternative needs to be documented.

#8

Nothing is printed by the plugin

$ git clone https://github.com/coredns/coredns.git
$ cd coredns/plugin
$ git clone https://github.com/coredns/example
$ cd ..
$ vim plugin.cfg
# Comments here.
log:log
example:example
# Nothing else in this file.
$ make
$ vim ./Corefile
. {
  example
}
$ ./coredns -dns.port 1337
# In another terminal:
$ dig @127.0.0.1 -p 1337 example.com
# Expected: "example" must be printed in the `./coredns` output.
# Actually: 
$ ./coredns -dns.port 1337 
.:1337
CoreDNS-1.7.0
linux/amd64, go1.14.3, 8c6d016a-dirty

add metrics

Add a simple metrics to show how this is done.

Example doesn't print anything

Example plugin does not print anything using provided Corefile

.:1053 {
example
log
forward . 8.8.8.8
}

Sample output:
CoreDNS-1.11.1
linux/amd64, go1.20.12, 945db2fa-dirty
[INFO] 127.0.0.1:45207 - 6605 "A IN google.com. udp 39 false 4096" NOERROR qr,rd,ra 195 0.002194196s

Also a new plugin created using the instructions provided for creating plugins similarly does not print anything

I have tried moving the example plugin around in the corefile with no differences viewed.

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.