Skip to content

Commit

Permalink
update kubedns add-on
Browse files Browse the repository at this point in the history
  • Loading branch information
kelseyhightower committed Sep 11, 2016
1 parent fdec417 commit 608b4e5
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 25 deletions.
38 changes: 18 additions & 20 deletions skydns-rc.yaml → deployments/kubedns.yaml
Expand Up @@ -12,47 +12,45 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# This file should be kept in sync with cluster/images/hyperkube/dns-rc.yaml

# TODO - At some point, we need to rename all skydns-*.yaml.* files to kubedns-*.yaml.*

# Warning: This is a file generated from the base underscore template file: skydns-rc.yaml.base

apiVersion: v1
kind: ReplicationController
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: kube-dns-v18
name: kube-dns-v19
namespace: kube-system
labels:
k8s-app: kube-dns
version: v18
version: v19
kubernetes.io/cluster-service: "true"
spec:
replicas: 2
replicas: 2
selector:
k8s-app: kube-dns
version: v18
matchLabels:
k8s-app: kube-dns
version: v19
template:
metadata:
labels:
k8s-app: kube-dns
version: v18
version: v19
kubernetes.io/cluster-service: "true"
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ''
scheduler.alpha.kubernetes.io/tolerations: '[{"key":"CriticalAddonsOnly", "operator":"Exists"}]'
spec:
containers:
- name: kubedns
image: gcr.io/google_containers/kubedns-amd64:1.6
image: gcr.io/google_containers/kubedns-amd64:1.7
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
memory: 170Mi
requests:
cpu: 100m
memory: 100Mi
memory: 70Mi
livenessProbe:
httpGet:
path: /healthz
Expand Down Expand Up @@ -96,15 +94,15 @@ spec:
name: dns-tcp
protocol: TCP
- name: healthz
image: gcr.io/google_containers/exechealthz-amd64:1.0
image: gcr.io/google_containers/exechealthz-amd64:1.1
resources:
# keep request = limit to keep this container in guaranteed class
limits:
cpu: 10m
memory: 20Mi
memory: 50Mi
requests:
cpu: 10m
memory: 20Mi
memory: 50Mi
args:
- -cmd=nslookup kubernetes.default.svc.cluster.local 127.0.0.1 >/dev/null && nslookup kubernetes.default.svc.cluster.local 127.0.0.1:10053 >/dev/null
- -port=8080
Expand Down
10 changes: 5 additions & 5 deletions docs/08-dns-addon.md
Expand Up @@ -7,10 +7,10 @@ In this lab you will deploy the DNS add-on which is required for every Kubernete

## Cluster DNS Add-on

### Create the `skydns` service:
### Create the `kubedns` service:

```
kubectl create -f https://raw.githubusercontent.com/kelseyhightower/kubernetes-the-hard-way/master/skydns-svc.yaml
kubectl create -f https://raw.githubusercontent.com/kelseyhightower/kubernetes-the-hard-way/master/services/kubedns.yaml
```

#### Verification
Expand All @@ -23,10 +23,10 @@ NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kube-dns 10.32.0.10 <none> 53/UDP,53/TCP 1m
```

### Create the `skydns` replication controller:
### Create the `kubedns` deployment:

```
kubectl create -f https://raw.githubusercontent.com/kelseyhightower/kubernetes-the-hard-way/master/skydns-rc.yaml
kubectl create -f https://raw.githubusercontent.com/kelseyhightower/kubernetes-the-hard-way/master/deployments/kubedns.yaml
```

#### Verification
Expand All @@ -38,4 +38,4 @@ kubectl --namespace=kube-system get pods
NAME READY STATUS RESTARTS AGE
kube-dns-v18-79maa 3/3 Running 0 41s
kube-dns-v18-bcs1f 3/3 Running 0 41s
```
```
File renamed without changes.

0 comments on commit 608b4e5

Please sign in to comment.