Define network spec
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:
- pike-2
- Started by
- Pengfei Ni
- Completed by
- Pengfei Ni
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.
description: "Specification of a Network"
versions:
- name: v1
```
## Network spec
users could create network according the spec:
```
apiVersion: "stackube.
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/
- else, existing network is used
Gerrit topic: https:/
Addressed by: https:/
Add initial network and tenant spec
Work Items
Work items:
- provision network third party resource on initializing cluster: TODO
- define network Go spec: DONE