Skip to content

Commit

Permalink
更新K8S v1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgao1983 committed Dec 19, 2017
1 parent e42cc48 commit 6134c1a
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 25 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@

## 组件版本

1. kubernetes v1.8.4
1. etcd v3.2.10
1. docker 17.09.0-ce
1. calico/node v2.6.2
1. kubernetes v1.9.0
1. etcd v3.2.11
1. docker 17.09.1-ce
1. calico/node v2.6.3

附:集群用到的所有二进制文件已打包好供下载 [https://pan.baidu.com/s/1eSetFSA](https://pan.baidu.com/s/1eSetFSA)
附:集群用到的所有二进制文件已打包好供下载 [https://pan.baidu.com/s/1i5u3SEh](https://pan.baidu.com/s/1i5u3SEh)
注:`Kubernetes v1.8.x` 版本请切换到项目分支 `v1.8`

## 快速指南

Expand Down
9 changes: 5 additions & 4 deletions bin/VERSION.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# 主要组件版本
kubernetes v1.8.4
etcd v3.2.10
docker 17.09.0-ce
calico/node v2.6.2

+ kubernetes v1.9.0
+ etcd v3.2.11
+ docker 17.09.1-ce
+ calico/node v2.6.3
2 changes: 1 addition & 1 deletion manifests/dashboard/kubernetes-dashboard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ subjects:
namespace: kube-system
---
kind: Deployment
apiVersion: extensions/v1beta1
apiVersion: apps/v1
metadata:
labels:
k8s-app: kubernetes-dashboard
Expand Down
2 changes: 1 addition & 1 deletion manifests/heapster/grafana.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: monitoring-grafana
Expand Down
2 changes: 1 addition & 1 deletion manifests/heapster/heapster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ roleRef:
apiGroup: rbac.authorization.k8s.io
---

apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: heapster
Expand Down
2 changes: 1 addition & 1 deletion manifests/heapster/influxdb.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: monitoring-influxdb
Expand Down
2 changes: 1 addition & 1 deletion manifests/ingress/traefik-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ metadata:
namespace: kube-system
---
kind: Deployment
apiVersion: extensions/v1beta1
apiVersion: apps/v1
metadata:
name: traefik-ingress-controller
namespace: kube-system
Expand Down
2 changes: 1 addition & 1 deletion manifests/kubedns/kubedns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
protocol: TCP

---
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: kube-dns
Expand Down
2 changes: 1 addition & 1 deletion roles/calico/templates/calico-node.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ExecStart={{ bin_dir }}/docker run --net=host --privileged --name=calico-node \
-v /run/docker/plugins:/run/docker/plugins \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/log/calico:/var/log/calico \
calico/node:v2.6.2
calico/node:v2.6.3
ExecStop={{ bin_dir }}/docker rm -f calico-node
Restart=always
RestartSec=10
Expand Down
2 changes: 1 addition & 1 deletion roles/deploy/templates/kubedns.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
protocol: TCP

---
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: kube-dns
Expand Down
4 changes: 2 additions & 2 deletions roles/kube-node/files/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
---

kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: calico-kube-controllers
rules:
Expand All @@ -21,7 +21,7 @@ rules:
---

kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: calico-kube-controllers
roleRef:
Expand Down
15 changes: 9 additions & 6 deletions roles/kube-node/templates/calico-kube-controllers.yaml.j2
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Calico Version v2.6.2
# https://docs.projectcalico.org/v2.6/releases#v2.6.2
# Calico Version v2.6.3
# https://docs.projectcalico.org/v2.6/releases#v2.6.3
# This manifest includes the following component versions:
# calico/kube-controllers:v1.0.0
# calico/kube-controllers:v1.0.1

# Create this manifest using kubectl to deploy
# the Calico Kubernetes controllers.
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: calico-kube-controllers
Expand All @@ -20,6 +20,9 @@ spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
k8s-app: calico-kube-controllers
template:
metadata:
name: calico-kube-controllers
Expand All @@ -31,8 +34,8 @@ spec:
serviceAccountName: calico-kube-controllers
containers:
- name: calico-kube-controllers
#image: quay.io/calico/kube-controllers:v1.0.0
image: calico/kube-controllers:v1.0.0
#image: quay.io/calico/kube-controllers:v1.0.1
image: calico/kube-controllers:v1.0.1
env:
# Configure the location of your etcd cluster.
- name: ETCD_ENDPOINTS
Expand Down

0 comments on commit 6134c1a

Please sign in to comment.