Skip to content

Instantly share code, notes, and snippets.

@yuvalif
Created October 22, 2018 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuvalif/70f1932c8c53f0e76bdf9eff61c3067e to your computer and use it in GitHub Desktop.
Save yuvalif/70f1932c8c53f0e76bdf9eff61c3067e to your computer and use it in GitHub Desktop.
apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
name: net-a-conf
annotations:
openstack.org/kuryr-config: '{
"subnetId": "subnet-a"
}'
spec:
config: '{}'
@yuvalif
Copy link
Author

yuvalif commented Oct 22, 2018

To create the network in openstack use:

openstack network create net-a
openstack subnet create subnet-a --network net-a --subnet-range 10.10.0.0/24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment