This file contains hidden or 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
apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: | |
name: apacheservice | |
role: service | |
name: apacheservice | |
spec: | |
ports: | |
- port: 8800 |
This file contains hidden or 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
diff --git a/vagrant/provisioning/setup-master.sh b/vagrant/provisioning/setup-master.sh | |
index 02add50..40c67cc 100755 | |
--- a/vagrant/provisioning/setup-master.sh | |
+++ b/vagrant/provisioning/setup-master.sh | |
@@ -19,24 +19,25 @@ MASTER_SUBNET=$4 | |
# FIXME(mestery): Remove once Vagrant boxes allow apt-get to work again | |
sudo rm -rf /var/lib/apt/lists/* | |
sudo apt-get update | |
+sudo apt-get build-dep dkms | |
sudo apt-get install -y graphviz autoconf automake bzip2 debhelper dh-autoreconf \ |
This file contains hidden or 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
A new pod: | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: apachetwin | |
labels: | |
name: apache | |
spec: | |
containers: |
This file contains hidden or 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
<interface type='bridge'> | |
<mac address='00:23:20:77:fc:3c'/> | |
<source bridge='breth2'/> | |
<virtualport type='openvswitch'> | |
<parameters interfaceid='b58dd804-5bcd-4504-abce-910512244654'/> | |
</virtualport> | |
<target dev='vm80c3-vif0'/> | |
<model type='virtio'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> | |
</interface> |
This file contains hidden or 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
{ | |
"name": "task1", | |
"task_id": {"value" : "1234"}, | |
"agent_id": {"value" : ""}, | |
"container": { | |
"type": "MESOS", | |
"mesos": { | |
"image": { | |
"type": "DOCKER", | |
"docker": { |
This file contains hidden or 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
{ | |
"name": "task1", | |
"task_id": {"value" : "1234"}, | |
"agent_id": {"value" : ""}, | |
"container": { | |
"type": "MESOS", | |
"mesos": { | |
"image": { | |
"type": "DOCKER", | |
"docker": { |
This file contains hidden or 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
{ | |
"name": "task2", | |
"task_id": {"value" : "9234"}, | |
"agent_id": {"value" : ""}, | |
"container": { | |
"type": "MESOS", | |
"mesos": { | |
"image": { | |
"type": "DOCKER", | |
"docker": { |
This file contains hidden or 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
OVS/OVN installation on Centos: | |
============================== | |
# Get the kernel module RPM build for your specific kernels and install them on all the hosts. e.g: | |
sudo rpm -ivh kmod-openvswitch-2.8.2-1.el7.centos.x86_64.rpm openvswitch-kmod-2.8.2-1.el7.centos.x86_64.rpm | |
# Building the above kernel rpms. The instructions are at the below link. You only need to build the kernel module rpms. | |
# You can ignore about the need to read the fedora instructions for RHEL 7.x series. | |
http://docs.openvswitch.org/en/latest/intro/install/rhel/ |
This file contains hidden or 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
* How to create a Ubuntu VM on your local Ubuntu KVM from Ubuntu cloud images. | |
1. Get the ubuntu cloud image (.img file from) | |
mkdir temp; cd temp; | |
wget http://cloud-images.ubuntu.com/trusty/20140101.55/trusty-server-cloudimg-amd64-disk1.img | |
2. Create a file "seed" |
This file contains hidden or 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
from ovsdbapp.backend.ovs_idl import connection | |
from ovsdbapp.schema.ovn_northbound import impl_idl | |
import ovs.db.idl | |
# If you need to register specific tables, custom schema, etc. | |
# helper = ovs.db.idl.SchemaHelper("/opt/stack/ovs/ovn/ovn-nb.ovsschema") | |
# helper.register_all() | |
#idl = ovs.db.idl.Idl("ptcp:127.0.0.1:12345", helper) | |
# generic helper function that pulls schema from server and |
OlderNewer