Define network spec

Registered by Pengfei Ni

Define network spec, it should be managed by third party resources.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Essential
Drafter:
Pengfei Ni
Direction:
Approved
Assignee:
Pengfei Ni
Definition:
Approved
Series goal:
Accepted for pike
Implementation:
Implemented
Milestone target:
milestone icon pike-2
Started by
Pengfei Ni
Completed by
Pengfei Ni

Related branches

Sprints

Whiteboard

Network is managed by kubernetes third party resources in stackube.

## Network third party resources

Network third party resource is provisioned when initializing the cluster:

```
apiVersion: extensions/v1beta1
kind: ThirdPartyResource
metadata:
  name: network.stackube.kubernetes.io
description: "Specification of a Network"
versions:
- name: v1
```

## Network spec

users could create network according the spec:

```
apiVersion: "stackube.kubernetes.io/v1"
kind: Network
metadata:
  name: alice-net
  namespace: alice-chen
spec:
  cidr: 192.168.1.0/24
  gateway: 192.168.1.1
  networkID: xx-xx-xx-xx
```

- namespace is required for identifying tenant
- if networkID is not provided, cni-controller will create a network/subnet/router according to network spec.
- else, existing network is used

Gerrit topic: https://review.openstack.org/#q,topic:bp/tenant-spec,n,z

Addressed by: https://review.openstack.org/469764
    Add initial network and tenant spec

(?)

Work Items

Work items:
- provision network third party resource on initializing cluster: TODO
- define network Go spec: DONE

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.