Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Commit

Permalink
Merge pull request #724 from felixbuenemann/k8s-1.4.1
Browse files Browse the repository at this point in the history
all: bump to v1.4.1+coreos.0 / kube-dns-v20
  • Loading branch information
Patrick Baxter authored Oct 14, 2016
2 parents 249a434 + 0c59646 commit c25ac21
Show file tree
Hide file tree
Showing 16 changed files with 148 additions and 104 deletions.
4 changes: 2 additions & 2 deletions Documentation/configure-kubectl.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ Download `kubectl` from the Kubernetes release artifact site with the `curl` too
The linux `kubectl` binary can be fetched with a command like:

```sh
$ curl -O https://storage.googleapis.com/kubernetes-release/release/v1.4.0/bin/linux/amd64/kubectl
$ curl -O https://storage.googleapis.com/kubernetes-release/release/v1.4.1/bin/linux/amd64/kubectl
```

On an OS X workstation, replace `linux` in the URL above with `darwin`:

```sh
$ curl -O https://storage.googleapis.com/kubernetes-release/release/v1.4.0/bin/darwin/amd64/kubectl
$ curl -O https://storage.googleapis.com/kubernetes-release/release/v1.4.1/bin/darwin/amd64/kubectl
```

After downloading the binary, ensure it is executable and move it into your `PATH`:
Expand Down
55 changes: 33 additions & 22 deletions Documentation/deploy-addons.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,30 +41,29 @@ spec:
apiVersion: v1
kind: ReplicationController
metadata:
name: kube-dns-v19
name: kube-dns-v20
namespace: kube-system
labels:
k8s-app: kube-dns
version: v19
version: v20
kubernetes.io/cluster-service: "true"
spec:
replicas: 1
selector:
k8s-app: kube-dns
version: v19
version: v20
template:
metadata:
labels:
k8s-app: kube-dns
version: v19
kubernetes.io/cluster-service: "true"
version: v20
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.7
image: gcr.io/google_containers/kubedns-amd64:1.8
resources:
limits:
memory: 170Mi
Expand All @@ -73,7 +72,7 @@ spec:
memory: 70Mi
livenessProbe:
httpGet:
path: /healthz
path: /healthz-kubedns
port: 8080
scheme: HTTP
initialDelaySeconds: 60
Expand All @@ -85,7 +84,7 @@ spec:
path: /readiness
port: 8081
scheme: HTTP
initialDelaySeconds: 30
initialDelaySeconds: 3
timeoutSeconds: 5
args:
- --domain=cluster.local.
Expand All @@ -98,7 +97,16 @@ spec:
name: dns-tcp-local
protocol: TCP
- name: dnsmasq
image: gcr.io/google_containers/kube-dnsmasq-amd64:1.3
image: gcr.io/google_containers/kube-dnsmasq-amd64:1.4
livenessProbe:
httpGet:
path: /healthz-dnsmasq
port: 8080
scheme: HTTP
initialDelaySeconds: 60
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 5
args:
- --cache-size=1000
- --no-resolv
Expand All @@ -112,26 +120,29 @@ spec:
name: dns-tcp
protocol: TCP
- name: healthz
image: gcr.io/google_containers/exechealthz-amd64:1.1
image: gcr.io/google_containers/exechealthz-amd64:1.2
resources:
limits:
memory: 50Mi
requests:
cpu: 10m
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
- -quiet
- --cmd=nslookup kubernetes.default.svc.cluster.local 127.0.0.1 >/dev/null
- --url=/healthz-dnsmasq
- --cmd=nslookup kubernetes.default.svc.cluster.local 127.0.0.1:10053 >/dev/null
- --url=/healthz-kubedns
- --port=8080
- --quiet
ports:
- containerPort: 8080
protocol: TCP
dnsPolicy: Default
dnsPolicy: Default
```
*Note:* The above YAML definition is based on the upstream DNS addon in the [Kubernetes addon folder][k8s-dns-addon].
[k8s-dns-addon]: https://github.com/kubernetes/kubernetes/tree/v1.4.0/cluster/addons/dns
[k8s-dns-addon]: https://github.com/kubernetes/kubernetes/tree/v1.4.1/cluster/addons/dns
This single YAML file is actually creating 2 different Kubernetes objects, separated by `---`.

Expand All @@ -145,10 +156,10 @@ Next, start the DNS add-on:
$ kubectl create -f dns-addon.yml
```

And check for `kube-dns-v19-*` pod up and running:
And check for `kube-dns-v20-*` pod up and running:

```sh
$ kubectl get pods --namespace=kube-system | grep kube-dns-v19
$ kubectl get pods --namespace=kube-system | grep kube-dns-v20
```

## Deploy the kube Dashboard Add-on
Expand All @@ -162,11 +173,11 @@ Create `kube-dashboard-rc.yaml` and `kube-dashboard-svc.yaml` on your local mach
apiVersion: v1
kind: ReplicationController
metadata:
name: kubernetes-dashboard-v1.4.0
name: kubernetes-dashboard-v1.4.1
namespace: kube-system
labels:
k8s-app: kubernetes-dashboard
version: v1.4.0
version: v1.4.1
kubernetes.io/cluster-service: "true"
spec:
replicas: 1
Expand All @@ -176,15 +187,15 @@ spec:
metadata:
labels:
k8s-app: kubernetes-dashboard
version: v1.4.0
version: v1.4.1
kubernetes.io/cluster-service: "true"
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ''
scheduler.alpha.kubernetes.io/tolerations: '[{"key":"CriticalAddonsOnly", "operator":"Exists"}]'
spec:
containers:
- name: kubernetes-dashboard
image: gcr.io/google_containers/kubernetes-dashboard-amd64:v1.4.0
image: gcr.io/google_containers/kubernetes-dashboard-amd64:v1.4.1
resources:
limits:
cpu: 100m
Expand Down Expand Up @@ -234,7 +245,7 @@ Access the dashboard by port forwarding with `kubectl`.

```sh
$ kubectl get pods --namespace=kube-system
$ kubectl port-forward kubernetes-dashboard-v1.4.0-SOME-ID 9090 --namespace=kube-system
$ kubectl port-forward kubernetes-dashboard-v1.4.1-SOME-ID 9090 --namespace=kube-system
```

Then visit [http://127.0.0.1:9090](http://127.0.0.1:9090/) in your browser.
Expand Down
10 changes: 5 additions & 5 deletions Documentation/deploy-master.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Note that the kubelet running on a master node may log repeated attempts to post

* Replace `${ADVERTISE_IP}` with this node's publicly routable IP.
* Replace `${DNS_SERVICE_IP}`
* Replace `${K8S_VER}` This will map to: `quay.io/coreos/hyperkube:${K8S_VER}` release, e.g. `v1.4.0_coreos.0`.
* Replace `${K8S_VER}` This will map to: `quay.io/coreos/hyperkube:${K8S_VER}` release, e.g. `v1.4.1_coreos.0`.
* Replace `${NETWORK_PLUGIN}` with `cni` if using Calico. Otherwise just leave it blank.
* Decide if you will use [additional features][rkt-opts-examples] such as:
- [mounting ephemeral disks][mount-disks]
Expand Down Expand Up @@ -158,7 +158,7 @@ spec:
hostNetwork: true
containers:
- name: kube-apiserver
image: quay.io/coreos/hyperkube:v1.4.0_coreos.0
image: quay.io/coreos/hyperkube:v1.4.1_coreos.0
command:
- /hyperkube
- apiserver
Expand Down Expand Up @@ -217,7 +217,7 @@ spec:
hostNetwork: true
containers:
- name: kube-proxy
image: quay.io/coreos/hyperkube:v1.4.0_coreos.0
image: quay.io/coreos/hyperkube:v1.4.1_coreos.0
command:
- /hyperkube
- proxy
Expand Down Expand Up @@ -257,7 +257,7 @@ spec:
hostNetwork: true
containers:
- name: kube-controller-manager
image: quay.io/coreos/hyperkube:v1.4.0_coreos.0
image: quay.io/coreos/hyperkube:v1.4.1_coreos.0
command:
- /hyperkube
- controller-manager
Expand Down Expand Up @@ -306,7 +306,7 @@ spec:
hostNetwork: true
containers:
- name: kube-scheduler
image: quay.io/coreos/hyperkube:v1.4.0_coreos.0
image: quay.io/coreos/hyperkube:v1.4.1_coreos.0
command:
- /hyperkube
- scheduler
Expand Down
4 changes: 2 additions & 2 deletions Documentation/deploy-workers.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Create `/etc/systemd/system/kubelet.service` and substitute the following variab
* Replace `${MASTER_HOST}`
* Replace `${ADVERTISE_IP}` with this node's publicly routable IP.
* Replace `${DNS_SERVICE_IP}`
* Replace `${K8S_VER}` This will map to: `quay.io/coreos/hyperkube:${K8S_VER}` release, e.g. `v1.4.0_coreos.0`.
* Replace `${K8S_VER}` This will map to: `quay.io/coreos/hyperkube:${K8S_VER}` release, e.g. `v1.4.1_coreos.0`.
* Replace `${NETWORK_PLUGIN}` with `cni` if using Calico. Otherwise just leave it blank.
* Decide if you will use [additional features][rkt-opts-examples] such as:
- [mounting ephemeral disks][mount-disks]
Expand Down Expand Up @@ -170,7 +170,7 @@ spec:
hostNetwork: true
containers:
- name: kube-proxy
image: quay.io/coreos/hyperkube:v1.4.0_coreos.0
image: quay.io/coreos/hyperkube:v1.4.1_coreos.0
command:
- /hyperkube
- proxy
Expand Down
12 changes: 6 additions & 6 deletions Documentation/kubelet-wrapper.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ An example systemd kubelet.service file which takes advantage of the kubelet-wra

```ini
[Service]
Environment=KUBELET_VERSION=v1.4.0_coreos.0
Environment=KUBELET_VERSION=v1.4.1_coreos.0
ExecStart=/usr/lib/coreos/kubelet-wrapper \
--api-servers=http://127.0.0.1:8080 \
--config=/etc/kubernetes/manifests
Expand All @@ -38,7 +38,7 @@ Mount the host's `/etc/resolv.conf` file directly into the container in order to
```ini
[Service]
Environment="RKT_OPTS=--volume=resolv,kind=host,source=/etc/resolv.conf --mount volume=resolv,target=/etc/resolv.conf"
Environment=KUBELET_VERSION=v1.4.0_coreos.0
Environment=KUBELET_VERSION=v1.4.1_coreos.0
ExecStart=/usr/lib/coreos/kubelet-wrapper \
--api-servers=http://127.0.0.1:8080 \
--config=/etc/kubernetes/manifests
Expand All @@ -52,7 +52,7 @@ Pods running in your cluster can reference remote storage volumes located on an
```ini
[Service]
Environment="RKT_OPTS=--volume iscsiadm,kind=host,source=/usr/sbin/iscsiadm --mount volume=iscsiadm,target=/usr/sbin/iscsiadm"
Environment=KUBELET_VERSION=v1.4.0_coreos.0
Environment=KUBELET_VERSION=v1.4.1_coreos.0
ExecStart=/usr/lib/coreos/kubelet-wrapper \
--api-servers=http://127.0.0.1:8080 \
--config=/etc/kubernetes/manifests
Expand All @@ -69,11 +69,11 @@ Environment="RKT_OPTS=--volume modprobe,kind=host,source=/usr/sbin/modprobe \
--mount volume=modprobe,target=/usr/sbin/modprobe \
--volume lib-modules,kind=host,source=/lib/modules \
--mount volume=lib-modules,target=/lib/modules \
Environment=KUBELET_VERSION=v1.4.0_coreos.0
Environment=KUBELET_VERSION=v1.4.1_coreos.0
...
```
Note that the kubelet also requires access to the userspace `rbd` tool that is included only in hyperkube images tagged `v1.4.0_coreos.0` or later.
Note that the kubelet also requires access to the userspace `rbd` tool that is included only in hyperkube images tagged `v1.3.6_coreos.0` or later.
## Manual deployment
Expand All @@ -88,7 +88,7 @@ For example:
```ini
[Service]
Environment=KUBELET_VERSION=v1.4.0_coreos.0
Environment=KUBELET_VERSION=v1.4.1_coreos.0
ExecStart=/opt/bin/kubelet-wrapper \
--api-servers=http://127.0.0.1:8080 \
--config=/etc/kubernetes/manifests
Expand Down
4 changes: 2 additions & 2 deletions Documentation/kubernetes-on-vagrant-single.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ Navigate to the [Vagrant downloads page][vagrant-downloads] and grab the appropr
The linux `kubectl` binary can be fetched with a command like:

```sh
$ curl -O https://storage.googleapis.com/kubernetes-release/release/v1.4.0/bin/linux/amd64/kubectl
$ curl -O https://storage.googleapis.com/kubernetes-release/release/v1.4.1/bin/linux/amd64/kubectl
```

On an OS X workstation, replace `linux` in the URL above with `darwin`:

```sh
$ curl -O https://storage.googleapis.com/kubernetes-release/release/v1.4.0/bin/darwin/amd64/kubectl
$ curl -O https://storage.googleapis.com/kubernetes-release/release/v1.4.1/bin/darwin/amd64/kubectl
```

After downloading the binary, ensure it is executable and move it into your PATH:
Expand Down
4 changes: 2 additions & 2 deletions Documentation/kubernetes-on-vagrant.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ Navigate to the [Vagrant downloads page][vagrant-downloads] and grab the appropr
The linux `kubectl` binary can be fetched with a command like:

```sh
$ curl -O https://storage.googleapis.com/kubernetes-release/release/v1.4.0/bin/linux/amd64/kubectl
$ curl -O https://storage.googleapis.com/kubernetes-release/release/v1.4.1/bin/linux/amd64/kubectl
```

On an OS X workstation, replace `linux` in the URL above with `darwin`:

```sh
$ curl -O https://storage.googleapis.com/kubernetes-release/release/v1.4.0/bin/darwin/amd64/kubectl
$ curl -O https://storage.googleapis.com/kubernetes-release/release/v1.4.1/bin/darwin/amd64/kubectl
```

After downloading the binary, ensure it is executable and move it into your PATH:
Expand Down
2 changes: 1 addition & 1 deletion Documentation/kubernetes-upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ For example, modifying the `KUBELET_VERSION` environment variable in the followi
**/etc/systemd/system/kubelet.service**

```
Environment=KUBELET_VERSION=v1.4.0_coreos.0
Environment=KUBELET_VERSION=v1.4.1_coreos.0
ExecStart=/usr/lib/coreos/kubelet-wrapper \
--api-servers=https://master [...]
```
Expand Down
4 changes: 2 additions & 2 deletions contrib/bump-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

if [ $# -ne 1 ] || [ `expr $1 : ".*_.*"` == 0 ]; then
echo "USAGE: $0 <target-version>"
echo " example: $0 'v1.4.0_coreos.0'"
echo " example: $0 'v1.4.1_coreos.0'"
exit 1
fi

CURRENT_VERSION=${CURRENT_VERSION:-"v1.4.0_coreos.0"}
CURRENT_VERSION=${CURRENT_VERSION:-"v1.4.1_coreos.0"}
TARGET_VERSION=${1}

CURRENT_VERSION_BASE=${CURRENT_VERSION%%_*}
Expand Down
2 changes: 1 addition & 1 deletion contrib/conformance-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -euo pipefail

CHECK_NODE_COUNT=${CHECK_NODE_COUNT:-true}
CONFORMANCE_REPO=${CONFORMANCE_REPO:-github.com/coreos/kubernetes}
CONFORMANCE_VERSION=${CONFORMANCE_VERSION:-v1.4.0+coreos.0}
CONFORMANCE_VERSION=${CONFORMANCE_VERSION:-v1.4.1+coreos.0}
SSH_OPTS=${SSH_OPTS:-}

usage() {
Expand Down
2 changes: 1 addition & 1 deletion multi-node/aws/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func newDefaultCluster() *Cluster {
PodCIDR: "10.2.0.0/16",
ServiceCIDR: "10.3.0.0/24",
DNSServiceIP: "10.3.0.10",
K8sVer: "v1.4.0_coreos.0",
K8sVer: "v1.4.1_coreos.0",
HyperkubeImageRepo: "quay.io/coreos/hyperkube",
TLSCADurationDays: 365 * 10,
TLSCertDurationDays: 365,
Expand Down
Loading

0 comments on commit c25ac21

Please sign in to comment.