Skip to content

Instantly share code, notes, and snippets.

@zshi-redhat
Created January 18, 2019 01:49
Show Gist options
  • Save zshi-redhat/75fb9387191ab69ca6aabdf246ecf4ad to your computer and use it in GitHub Desktop.
Save zshi-redhat/75fb9387191ab69ca6aabdf246ecf4ad to your computer and use it in GitHub Desktop.
apiVersion: "networkoperator.openshift.io/v1"
kind: "NetworkConfig"
metadata:
name: "default"
spec:
serviceNetwork: "172.30.0.0/16"
clusterNetworks:
- cidr: "10.128.0.0/14"
hostSubnetLength: 9
defaultNetwork:
type: OpenShiftSDN
openshiftSDNConfig:
mode: NetworkPolicy
additionalNetworks:
- type: Raw
name: macvlan-net
rawCNIConfig: '{
"type": "macvlan",
"name": "macvlan-network",
"master": "eth0",
"ipam": {
"type": "host-local",
"subnet": "10.56.217.0/24",
"routes": [{
"dst": "0.0.0.0/0"
}],
"gateway": "10.56.217.1"
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment