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
[base] | |
name=CentOS-$releasever - Base | |
baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ | |
gpgcheck=0 | |
#released updates | |
[update] | |
name=CentOS-$releasever - Updates | |
baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ | |
gpgcheck=0 |
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
# on Fedora28 as root | |
set -ex | |
# install and enable docker | |
dnf update -y | |
dnf install -y docker | |
systemctl enable docker && systemctl start docker | |
# permanently disable selinux | |
setenforce 0 |
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
# this is based on ovn-kubernetes installation as described here: https://gist.github.com/yuvalif/b79add8202de69202c0d2bc6c2b67e00 | |
# this runs ovnkube as master and minion | |
# run on Fedora28 as root | |
set -ex | |
# set variables | |
export CENTRAL_IP=`ip -o addr show|grep -v docker |awk '{ print $4 }'|grep -v '^127' |grep -v '^fe80' |grep -v '^::' |head -n 1 |cut -f1 -d/` | |
export CLUSTER_IP_SUBNET=10.244.0.0/16 | |
export NODE_NAME=$CENTRAL_IP | |
export TOKEN=abcdef.1234567890123456 |
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
# on Fedora28 as root | |
set -ex | |
# install and enable docker | |
dnf update -y | |
dnf install -y docker | |
systemctl enable docker && systemctl start docker | |
# permanently disable selinux | |
setenforce 0 |
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
# on Fedora28 as root | |
if [ "$#" -ne 1 ]; then | |
echo "Usage: $0 <master IP>" | |
exit 1 | |
fi | |
set -ex | |
MASTER_IP=$1 |
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
# this is based on ovn-kubernetes installation as described here: | |
# https://gist.github.com/yuvalif/ce6c576390585e8a39c98e385ce9b83f | |
# this runs ovnkube as master | |
# run on Fedora28 as root | |
set -ex | |
# set variables | |
export CENTRAL_IP=`ip -o addr show|grep -v docker |awk '{ print $4 }'|grep -v '^127' |grep -v '^fe80' |grep -v ':' |head -n 1 |cut -f1 -d/` | |
export CLUSTER_IP_SUBNET=10.244.0.0/16 | |
export NODE_NAME=$CENTRAL_IP |
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
# this is based on ovn-kubernetes minion installation as described here: | |
# https://gist.github.com/yuvalif/2b732a66f1903ff505fb392ed35f8d65 | |
# this runs ovnkube as master | |
# run on Fedora28 as root | |
set -ex | |
# set variables | |
export CENTRAL_IP=`kubectl get nodes | grep master | cut -f 1 -d' '` | |
export CLUSTER_IP_SUBNET=10.244.0.0/16 | |
export NODE_NAME=`ip -o addr show|grep -v docker |awk '{ print $4 }'|grep -v '^127' |grep -v '^fe80' |grep -v ':' | grep -v "10.244" | head -n 1 |cut -f1 -d/` |
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
#!/bin/bash | |
set -e | |
if [ "$#" -ne 2 ]; then | |
echo "Usage: $0 <hostname> <cluster-name>" | |
exit 1 | |
fi | |
set -x |
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: Pod | |
metadata: | |
name: cirros-multinet | |
annotations: | |
k8s.v1.cni.cncf.io/networks: net-a-conf | |
spec: | |
containers: | |
- name: cirros | |
image: cirros |
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: "k8s.cni.cncf.io/v1" | |
kind: NetworkAttachmentDefinition | |
metadata: | |
name: net-a-conf | |
annotations: | |
openstack.org/kuryr-config: '{ | |
"subnetId": "subnet-a" | |
}' | |
spec: | |
config: '{}' |