Skip to content

Commit

Permalink
Sync <1.6 yaml with the 1.6 yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdee committed Mar 24, 2017
1 parent 7deb07c commit b84aad6
Showing 1 changed file with 28 additions and 29 deletions.
57 changes: 28 additions & 29 deletions k8s-install/kubeadm/canal.yaml
Expand Up @@ -2,7 +2,7 @@
kind: ConfigMap
apiVersion: v1
metadata:
name: canal-config
name: canal-config
namespace: kube-system
data:
# Configure this with the location of your etcd cluster.
Expand Down Expand Up @@ -42,9 +42,9 @@ data:

# This manifest installs the Canal etcd on the kubeadm master. This uses a DaemonSet
# to force it to run on the master even when the master isn't schedulable, and uses
# nodeSelector to ensure it only runs on the master.
apiVersion: extensions/v1beta1
kind: DaemonSet
# nodeSelector to ensure it only runs on the master.
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: canal-etcd
namespace: kube-system
Expand All @@ -65,9 +65,9 @@ spec:
hostNetwork: true
containers:
- name: canal-etcd
image: gcr.io/google_containers/etcd:2.2.1
image: quay.io/coreos/etcd:v3.1.4
env:
- name: ETCD_IP
- name: ETCD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
Expand Down Expand Up @@ -97,17 +97,15 @@ spec:
selector:
k8s-app: canal-etcd
# This ClusterIP needs to be known in advance, since we cannot rely
# on DNS to get access to etcd.
# on DNS to get access to etcd.
clusterIP: 10.96.232.136
ports:
- port: 6666

---



# This manifest installs the per-node agents, as well
# as the CNI plugins and network config on
# as the CNI plugins and network config on
# each master and worker node in a Kubernetes cluster.
kind: DaemonSet
apiVersion: extensions/v1beta1
Expand Down Expand Up @@ -138,18 +136,18 @@ spec:
configMapKeyRef:
name: canal-config
key: etcd_endpoints
# The interface flannel should run on.
# The interface flannel should run on.
- name: FLANNELD_IFACE
valueFrom:
configMapKeyRef:
name: canal-config
key: canal_iface
key: canal_iface
# Perform masquerade on traffic leaving the pod cidr.
- name: FLANNELD_IP_MASQ
valueFrom:
configMapKeyRef:
name: canal-config
key: masquerade
key: masquerade
# Write the subnet.env file to the mounted directory.
- name: FLANNELD_SUBNET_FILE
value: "/run/flannel/subnet.env"
Expand All @@ -160,19 +158,19 @@ spec:
name: resolv
- mountPath: /run/flannel
name: run-flannel
# Runs calico/node container on each Kubernetes node. This
# Runs calico/node container on each Kubernetes node. This
# container programs network policy and local routes on each
# host.
- name: calico-node
image: quay.io/calico/node:v1.0.1
image: quay.io/calico/node:v1.1.0
env:
# The location of the etcd cluster.
- name: ETCD_ENDPOINTS
valueFrom:
configMapKeyRef:
name: canal-config
key: etcd_endpoints
# Disable Calico BGP. Calico is simply enforcing policy.
# Disable Calico BGP. Calico is simply enforcing policy.
- name: CALICO_NETWORKING
value: "false"
# Disable file logging so `kubectl logs` works.
Expand All @@ -190,13 +188,13 @@ spec:
# This container installs the Calico CNI binaries
# and CNI network config file on each node.
- name: install-calico-cni
image: quay.io/calico/cni:v1.5.5
image: quay.io/calico/cni:v1.6.2
imagePullPolicy: Always
command: ["/install-cni.sh"]
env:
# The name of the CNI network config file to install.
- name: CNI_CONF_NAME
value: "10-canal.conf"
value: "10-canal.conf"
# The location of the etcd cluster.
- name: ETCD_ENDPOINTS
valueFrom:
Expand Down Expand Up @@ -239,15 +237,15 @@ spec:

---

# This manifest deploys a Job which performs one time
# configuration of Canal.
# This manifest deploys a Job which performs one time
# configuration of Canal.
apiVersion: batch/v1
kind: Job
metadata:
name: configure-canal
name: configure-canal
namespace: kube-system
labels:
k8s-app: canal
k8s-app: canal
spec:
template:
metadata:
Expand All @@ -257,19 +255,20 @@ spec:
scheduler.alpha.kubernetes.io/critical-pod: ''
spec:
hostNetwork: true
restartPolicy: OnFailure
restartPolicy: OnFailure
containers:
# Writes basic flannel configuration to etcd.
# Writes basic flannel configuration to etcd.
- name: configure-flannel
image: quay.io/coreos/etcd:v3.0.9
command:
image: quay.io/coreos/etcd:v3.1.4
command:
- "etcdctl"
- "--no-sync"
- "set"
- "/coreos.com/network/config"
- '{ "Network": "192.168.0.0/16", "Backend": {"Type": "vxlan"} }'
env:
# The location of the etcd cluster.
- name: ETCDCTL_PEERS
- name: ETCDCTL_PEERS
valueFrom:
configMapKeyRef:
name: canal-config
Expand Down Expand Up @@ -304,7 +303,7 @@ spec:
hostNetwork: true
containers:
- name: calico-policy-controller
image: quay.io/calico/kube-policy-controller:v0.5.2
image: quay.io/calico/kube-policy-controller:v0.5.4
env:
# The location of the Calico etcd cluster.
- name: ETCD_ENDPOINTS
Expand All @@ -316,7 +315,7 @@ spec:
# service for API access.
- name: K8S_API
value: "https://kubernetes.default:443"
# Since we're running in the host namespace and might not have KubeDNS
# Since we're running in the host namespace and might not have KubeDNS
# access, configure the container's /etc/hosts to resolve
# kubernetes.default to the correct service clusterIP.
- name: CONFIGURE_ETC_HOSTS
Expand Down

1 comment on commit b84aad6

@kfox1111
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tomdee We're using this file in github.com/openstack/kolla-kubernetes and this change broke our gate.

Are you sure all the containers are k8s 1.5 compatible?

Please sign in to comment.