mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Use a kubernetes-hosted minimal container for skydns
This commit is contained in:
parent
e045c6ce2f
commit
b0268f3833
@ -25,13 +25,13 @@ desiredState:
|
||||
"-peer-bind-addr=127.0.0.1",
|
||||
]
|
||||
- name: kube2sky
|
||||
image: kubernetes/kube2sky:latest
|
||||
image: kubernetes/kube2sky:1.0
|
||||
command: [
|
||||
# entrypoint = "/kube2sky",
|
||||
"-domain={DNS_DOMAIN}",
|
||||
]
|
||||
- name: skydns
|
||||
image: skynetservices/skydns:latest
|
||||
image: kubernetes/skydns:2014-12-23-001
|
||||
command: [
|
||||
# entrypoint = "/skydns",
|
||||
"-machines=http://localhost:4001",
|
||||
|
4
contrib/dns/skydns/Dockerfile
Normal file
4
contrib/dns/skydns/Dockerfile
Normal file
@ -0,0 +1,4 @@
|
||||
FROM busybox
|
||||
MAINTAINER Tim Hockin <thockin@google.com>
|
||||
ADD skydns skydns
|
||||
ENTRYPOINT ["/skydns"]
|
13
contrib/dns/skydns/Makefile
Normal file
13
contrib/dns/skydns/Makefile
Normal file
@ -0,0 +1,13 @@
|
||||
all: skydns
|
||||
|
||||
skydns:
|
||||
CGO_ENABLED=0 go build -a --ldflags '-w' github.com/skynetservices/skydns
|
||||
|
||||
container: skydns
|
||||
sudo docker build -t kubernetes/skydns .
|
||||
|
||||
push:
|
||||
sudo docker push kubernetes/skydns
|
||||
|
||||
clean:
|
||||
rm -f skydns
|
5
contrib/dns/skydns/README.md
Normal file
5
contrib/dns/skydns/README.md
Normal file
@ -0,0 +1,5 @@
|
||||
# skydns for kubernetes
|
||||
=======================
|
||||
|
||||
This container only exists until skydns itself is reduced in some way. At the
|
||||
time of this writing, it is over 600 MB large.
|
Loading…
Reference in New Issue
Block a user