update kubedns add-on

pull/49/head
Kelsey Hightower 2016-09-11 06:20:02 -07:00
parent fdec4174ba
commit 608b4e5439
3 changed files with 23 additions and 25 deletions

View File

@ -12,36 +12,34 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
# This file should be kept in sync with cluster/images/hyperkube/dns-rc.yaml apiVersion: extensions/v1beta1
kind: Deployment
# 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
metadata: metadata:
name: kube-dns-v18 name: kube-dns-v19
namespace: kube-system namespace: kube-system
labels: labels:
k8s-app: kube-dns k8s-app: kube-dns
version: v18 version: v19
kubernetes.io/cluster-service: "true" kubernetes.io/cluster-service: "true"
spec: spec:
replicas: 2 replicas: 2
selector: selector:
k8s-app: kube-dns matchLabels:
version: v18 k8s-app: kube-dns
version: v19
template: template:
metadata: metadata:
labels: labels:
k8s-app: kube-dns k8s-app: kube-dns
version: v18 version: v19
kubernetes.io/cluster-service: "true" kubernetes.io/cluster-service: "true"
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ''
scheduler.alpha.kubernetes.io/tolerations: '[{"key":"CriticalAddonsOnly", "operator":"Exists"}]'
spec: spec:
containers: containers:
- name: kubedns - name: kubedns
image: gcr.io/google_containers/kubedns-amd64:1.6 image: gcr.io/google_containers/kubedns-amd64:1.7
resources: resources:
# TODO: Set memory limits when we've profiled the container for large # TODO: Set memory limits when we've profiled the container for large
# clusters, then set request = limit to keep this container in # clusters, then set request = limit to keep this container in
@ -49,10 +47,10 @@ spec:
# "burstable" category so the kubelet doesn't backoff from restarting it. # "burstable" category so the kubelet doesn't backoff from restarting it.
limits: limits:
cpu: 100m cpu: 100m
memory: 200Mi memory: 170Mi
requests: requests:
cpu: 100m cpu: 100m
memory: 100Mi memory: 70Mi
livenessProbe: livenessProbe:
httpGet: httpGet:
path: /healthz path: /healthz
@ -96,15 +94,15 @@ spec:
name: dns-tcp name: dns-tcp
protocol: TCP protocol: TCP
- name: healthz - name: healthz
image: gcr.io/google_containers/exechealthz-amd64:1.0 image: gcr.io/google_containers/exechealthz-amd64:1.1
resources: resources:
# keep request = limit to keep this container in guaranteed class # keep request = limit to keep this container in guaranteed class
limits: limits:
cpu: 10m cpu: 10m
memory: 20Mi memory: 50Mi
requests: requests:
cpu: 10m cpu: 10m
memory: 20Mi memory: 50Mi
args: 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 - -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 - -port=8080

View File

@ -7,10 +7,10 @@ In this lab you will deploy the DNS add-on which is required for every Kubernete
## Cluster DNS Add-on ## 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 #### Verification
@ -23,10 +23,10 @@ NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kube-dns 10.32.0.10 <none> 53/UDP,53/TCP 1m 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 #### Verification