Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
a1c323fa
Commit
a1c323fa
authored
Aug 01, 2016
by
Salvatore Dario Minonne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvirt_coreos: to remove old skydns fork fetching from addons
parent
31da82df
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
149 deletions
+8
-149
config-default.sh
cluster/libvirt-coreos/config-default.sh
+4
-0
forShellEval.sed
cluster/libvirt-coreos/forShellEval.sed
+4
-0
skydns-rc.yaml
cluster/libvirt-coreos/skydns-rc.yaml
+0
-129
skydns-svc.yaml
cluster/libvirt-coreos/skydns-svc.yaml
+0
-20
No files found.
cluster/libvirt-coreos/config-default.sh
View file @
a1c323fa
...
@@ -58,3 +58,7 @@ ENABLE_CLUSTER_DNS="${KUBE_ENABLE_CLUSTER_DNS:-true}"
...
@@ -58,3 +58,7 @@ ENABLE_CLUSTER_DNS="${KUBE_ENABLE_CLUSTER_DNS:-true}"
DNS_SERVER_IP
=
"
${
SERVICE_CLUSTER_IP_RANGE
%.*
}
.254"
DNS_SERVER_IP
=
"
${
SERVICE_CLUSTER_IP_RANGE
%.*
}
.254"
DNS_DOMAIN
=
"cluster.local"
DNS_DOMAIN
=
"cluster.local"
DNS_REPLICAS
=
1
DNS_REPLICAS
=
1
#Generate dns files
sed
-f
"
${
KUBE_ROOT
}
/cluster/addons/dns/transforms2sed.sed"
<
"
${
KUBE_ROOT
}
/cluster/addons/dns/skydns-rc.yaml.base"
|
sed
-f
"
${
KUBE_ROOT
}
/cluster/libvirt-coreos/forShellEval.sed"
>
"
${
KUBE_ROOT
}
/cluster/libvirt-coreos/skydns-rc.yaml"
sed
-f
"
${
KUBE_ROOT
}
/cluster/addons/dns/transforms2sed.sed"
<
"
${
KUBE_ROOT
}
/cluster/addons/dns/skydns-svc.yaml.base"
|
sed
-f
"
${
KUBE_ROOT
}
/cluster/libvirt-coreos/forShellEval.sed"
>
"
${
KUBE_ROOT
}
/cluster/libvirt-coreos/skydns-svc.yaml"
cluster/libvirt-coreos/forShellEval.sed
0 → 100644
View file @
a1c323fa
s
/
\"
/
\\
"
/
g
s
/
DNS_SERVER_IP
/
{DNS_SERVER_IP}
/
g
s
/
DNS_REPLICAS
/
{DNS_REPLICAS}
/
g
s
/
DNS_DOMAIN
/
{DNS_DOMAIN}
/
g
cluster/libvirt-coreos/skydns-rc.yaml
deleted
100644 → 0
View file @
31da82df
apiVersion
:
v1
kind
:
ReplicationController
metadata
:
name
:
kube-dns-v11
namespace
:
kube-system
labels
:
k8s-app
:
kube-dns
version
:
v11
kubernetes.io/cluster-service
:
\"true\"
spec
:
replicas
:
${DNS_REPLICAS}
selector
:
k8s-app
:
kube-dns
version
:
v11
template
:
metadata
:
labels
:
k8s-app
:
kube-dns
version
:
v11
kubernetes.io/cluster-service
:
\"true\"
spec
:
containers
:
-
name
:
etcd
image
:
gcr.io/google_containers/etcd-amd64:2.2.1
resources
:
# TODO: Set memory limits when we've profiled the container for large
# clusters, then set request = limit to keep this container in
# guaranteed class. Currently, this container falls into the
# "burstable" category so the kubelet doesn't backoff from restarting it.
limits
:
cpu
:
100m
memory
:
500Mi
requests
:
cpu
:
100m
memory
:
50Mi
command
:
-
/usr/local/bin/etcd
-
-data-dir
-
/var/etcd/data
-
-listen-client-urls
-
http://127.0.0.1:2379,http://127.0.0.1:4001
-
-advertise-client-urls
-
http://127.0.0.1:2379,http://127.0.0.1:4001
-
-initial-cluster-token
-
skydns-etcd
volumeMounts
:
-
name
:
etcd-storage
mountPath
:
/var/etcd/data
-
name
:
kube2sky
image
:
gcr.io/google_containers/kube2sky:1.14
resources
:
# TODO: Set memory limits when we've profiled the container for large
# clusters, then set request = limit to keep this container in
# guaranteed class. Currently, this container falls into the
# "burstable" category so the kubelet doesn't backoff from restarting it.
limits
:
cpu
:
100m
# Kube2sky watches all pods.
memory
:
200Mi
requests
:
cpu
:
100m
memory
:
50Mi
livenessProbe
:
httpGet
:
path
:
/healthz
port
:
8080
scheme
:
HTTP
initialDelaySeconds
:
60
timeoutSeconds
:
5
successThreshold
:
1
failureThreshold
:
5
readinessProbe
:
httpGet
:
path
:
/readiness
port
:
8081
scheme
:
HTTP
# we poll on pod startup for the Kubernetes master service and
# only setup the /readiness HTTP server once that's available.
initialDelaySeconds
:
30
timeoutSeconds
:
5
args
:
# command = "/kube2sky"
-
--domain=${DNS_DOMAIN}
-
name
:
skydns
image
:
gcr.io/google_containers/skydns:2015-10-13-8c72f8c
resources
:
# TODO: Set memory limits when we've profiled the container for large
# clusters, then set request = limit to keep this container in
# guaranteed class. Currently, this container falls into the
# "burstable" category so the kubelet doesn't backoff from restarting it.
limits
:
cpu
:
100m
memory
:
200Mi
requests
:
cpu
:
100m
memory
:
50Mi
args
:
# command = "/skydns"
-
-machines=http://127.0.0.1:4001
-
-addr=0.0.0.0:53
-
-ns-rotate=false
-
-domain=${DNS_DOMAIN}.
ports
:
-
containerPort
:
53
name
:
dns
protocol
:
UDP
-
containerPort
:
53
name
:
dns-tcp
protocol
:
TCP
-
name
:
healthz
image
:
gcr.io/google_containers/exechealthz:1.0
resources
:
# keep request = limit to keep this container in guaranteed class
limits
:
cpu
:
10m
memory
:
20Mi
requests
:
cpu
:
10m
memory
:
20Mi
args
:
-
-cmd=nslookup kubernetes.default.svc.${DNS_DOMAIN} 127.0.0.1 >/dev/null
-
-port=8080
ports
:
-
containerPort
:
8080
protocol
:
TCP
volumes
:
-
name
:
etcd-storage
emptyDir
:
{}
dnsPolicy
:
Default
# Don't use cluster DNS.
cluster/libvirt-coreos/skydns-svc.yaml
deleted
100644 → 0
View file @
31da82df
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
kube-dns
namespace
:
kube-system
labels
:
k8s-app
:
kube-dns
kubernetes.io/cluster-service
:
\"true\"
kubernetes.io/name
:
\"KubeDNS\"
spec
:
selector
:
k8s-app
:
kube-dns
clusterIP
:
${DNS_SERVER_IP}
ports
:
-
name
:
dns
port
:
53
protocol
:
UDP
-
name
:
dns-tcp
port
:
53
protocol
:
TCP
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment