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
20ea3510
Commit
20ea3510
authored
May 05, 2015
by
Alex Robinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7619 from a-robinson/dns
Convert the skydns rc to use v1beta3 and add a health check to it
parents
ba438a80
9ea76dc0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
41 deletions
+44
-41
skydns-rc.yaml.in
cluster/addons/dns/skydns-rc.yaml.in
+44
-41
No files found.
cluster/addons/dns/skydns-rc.yaml.in
View file @
20ea3510
apiVersion: v1beta3
kind: ReplicationController
kind: ReplicationController
apiVersion: v1beta1
metadata:
id: kube-dns
labels:
namespace: default
labels:
k8s-app: kube-dns
k8s-app: kube-dns
kubernetes.io/cluster-service: "true"
kubernetes.io/cluster-service: "true"
desiredState:
name: kube-dns
namespace: default
spec:
replicas: {{ pillar['dns_replicas'] }}
replicas: {{ pillar['dns_replicas'] }}
replicaS
elector:
s
elector:
k8s-app: kube-dns
k8s-app: kube-dns
podTemplate:
template:
metadata:
labels:
labels:
name: kube-dns
k8s-app: kube-dns
k8s-app: kube-dns
kubernetes.io/cluster-service: "true"
kubernetes.io/cluster-service: "true"
desiredState:
name: kube-dns
manifest:
spec:
version: v1beta2
id: kube-dns
dnsPolicy: "Default" # Don't use cluster DNS.
containers:
containers:
- name: etcd
- name: etcd
image: gcr.io/google_containers/etcd:2.0.9
image: gcr.io/google_containers/etcd:2.0.9
command: [
command:
"/usr/local/bin/etcd",
- /usr/local/bin/etcd
"--addr",
- --addr
"127.0.0.1:4001",
- 127.0.0.1:4001
"--bind-addr",
- --bind-addr
"127.0.0.1:4001",
- 127.0.0.1:4001
"-initial-cluster-token=skydns-etcd",
- -initial-cluster-token=skydns-etcd
]
- name: kube2sky
- name: kube2sky
image: gcr.io/google_containers/kube2sky:1.4
image: gcr.io/google_containers/kube2sky:1.4
args:
# entrypoint = "/kube2sky"
- -domain={{ pillar['dns_domain'] }}
- -kubecfg_file=/etc/dns_token/kubeconfig
volumeMounts:
volumeMounts:
- name: dns-
token
- mountPath: /etc/dns_
token
mountPath: /etc/dns_
token
name: dns-
token
readOnly: true
readOnly: true
command: [
# entrypoint = "/kube2sky",
"-domain={{ pillar['dns_domain'] }}",
"-kubecfg_file=/etc/dns_token/kubeconfig",
]
- name: skydns
- name: skydns
image: gcr.io/google_containers/skydns:2015-03-11-001
image: gcr.io/google_containers/skydns:2015-03-11-001
command: [
args:
# entrypoint = "/skydns",
# entrypoint = "/skydns"
"-machines=http://localhost:4001",
- -machines=http://localhost:4001
"-addr=0.0.0.0:53",
- -addr=0.0.0.0:53
"-domain={{ pillar['dns_domain'] }}.",
- -domain={{ pillar['dns_domain'] }}.
]
ports:
ports:
- name: dns
- containerPort: 53
containerPort: 53
name: dns
protocol: UDP
protocol: UDP
livenessProbe:
exec:
command:
- "/bin/sh"
- "-c"
# The health check succeeds by virtue of not hanging. It'd be nice
# to also check local services are known, but if that's broken then
# etcd or kube2sky has to be restarted, not skydns.
- "nslookup foobar 127.0.0.1 &> /dev/null; echo ok"
initialDelaySeconds: 30
timeoutSeconds: 5
dnsPolicy: Default # Don't use cluster DNS.
volumes:
volumes:
- name: dns-token
- name: dns-token
source:
secret:
secret:
target:
secretName: token-system-dns
kind: Secret
namespace: default
name: token-system-dns
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