This repository has been archived by the owner on Jul 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 414
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1521 from CiscoCloud/feature/mkc-combo-working
Calico with Mesos and Kubernetes integrated
- Loading branch information
Showing
25 changed files
with
271 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"libraries": [ | ||
{ | ||
"file": "/usr/local/lib/mesos/libmesos_network_isolator.so", | ||
"modules": [ | ||
{ | ||
"name": "com_mesosphere_mesos_NetworkIsolator", | ||
"parameters": [ | ||
{ | ||
"key": "isolator_command", | ||
"value": "/usr/local/bin/calico_mesos" | ||
}, | ||
{ | ||
"key": "ipam_command", | ||
"value": "/usr/local/bin/calico_mesos" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "com_mesosphere_mesos_NetworkHook" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
--- | ||
- name: Calico directory for plugins | ||
- name: Calico directory for cni config | ||
sudo: yes | ||
file: | ||
path: /usr/libexec/kubernetes/kubelet-plugins/net/exec/calico/ | ||
path: /etc/cni/net.d | ||
state: directory | ||
tags: | ||
- calico | ||
|
||
- name: Get calico-kubernetes plugin | ||
- name: Calico cni config for kubernetes | ||
sudo: yes | ||
get_url: | ||
url: https://github.com/projectcalico/calico-docker/releases/download/v0.5.4/calico_kubernetes | ||
dest: /usr/libexec/kubernetes/kubelet-plugins/net/exec/calico/calico | ||
mode: 0755 | ||
template: | ||
src: calico-plugin.conf | ||
dest: /etc/cni/net.d/10-calico.conf | ||
tags: | ||
- calico | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"name": "ng_calico-k8s-network", | ||
"type": "calico", | ||
"etcd_authority": "{{calico_etcdaddr}}", | ||
"log_level": "info", | ||
"ipam": { | ||
"type": "calico-ipam" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,2 @@ | ||
# This node's IPv4 address | ||
DEFAULT_IPV4={{ private_ipv4 }} | ||
|
||
# IP and port of etcd instance used by Calico | ||
ETCD_AUTHORITY={{ calico_etcdaddr }} | ||
|
||
{% if hostvars[inventory_hostname]['role'] == 'kubeworker' %} | ||
# The Kubernetes master IP | ||
KUBERNETES_MASTER={{ groups[master_group_name][0] }} | ||
|
||
KUBE_API_ROOT=https://{{ groups[master_group_name][0] }}:{{ kube_master_port }}/api/v1/ | ||
{% endif %} | ||
|
||
# Enable Calcio IPAM | ||
CALICO_IPAM=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.