Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sh4d1/scaleway-k8s-vpc
A Kubernetes Controller for VPC/Private Network on a Scaleway Kubernetes cluster
https://github.com/sh4d1/scaleway-k8s-vpc
controller k8s kubernetes private-network scaleway vpc
Last synced: about 8 hours ago
JSON representation
A Kubernetes Controller for VPC/Private Network on a Scaleway Kubernetes cluster
- Host: GitHub
- URL: https://github.com/sh4d1/scaleway-k8s-vpc
- Owner: Sh4d1
- License: other
- Created: 2020-12-07T09:27:01.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-26T15:26:01.000Z (about 2 years ago)
- Last Synced: 2023-03-03T22:20:23.226Z (almost 2 years ago)
- Topics: controller, k8s, kubernetes, private-network, scaleway, vpc
- Language: Go
- Homepage:
- Size: 117 KB
- Stars: 21
- Watchers: 5
- Forks: 7
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Scaleway K8S VPC
**Note**: This in just a Proof of Concept, it is not suited for production usage.
Scaleway K8S VPC is a controller for Kubernetes running on Scaleway, leveraging CRDs to use PrivateNetwork in the cluster.
## Getting started
Install the controller and the node daemon with:
```yaml
kubectl create -k https://github.com/Sh4d1/scaleway-k8s-vpc/config/default
```Create and enter your Scaleway credentials with:
```yaml
kubectl create -f https://raw.githubusercontent.com/Sh4d1/scaleway-k8s-vpc/main/secret.yaml --edit --namespace scaleway-k8s-vpc-system
```You can now create the following PrivateNetwork object:
```yaml
apiVersion: vpc.scaleway.com/v1alpha1
kind: PrivateNetwork
metadata:
name: my-privatenetwork
spec:
id:
ipam:
type: Static
static:
cidr: 192.168.0.0/24
routes:
- to: 1.2.3.4/16
via: 192.168.0.10
```This will attach the private network to all nodes in the cluster, set up the interfaces with IPs in the range, and add the routes if needed.
If you have a DHCP running in the private network you can use it to assign IPs:
```yaml
apiVersion: vpc.scaleway.com/v1alpha1
kind: PrivateNetwork
metadata:
name: my-privatenetwork
spec:
id:
ipam:
type: DHCP
routes:
- to: 1.2.3.4/16
via: 192.168.0.10
```## Contribution
Feel free to submit any issue, feature request or pull request :smile:!