Aiven Project VPC
Virtual Private Cloud (VPC) peering is a method of connecting separate AWS, Google Cloud or Microsoft Azure private networks to each other. It makes it possible for the virtual machines in the different VPCs to talk to each other directly without going through the public internet.
Within the Aiven Kubernetes Operator, you can create a
ProjectVPC on Aiven’s side to connect to your cloud provider.
Before going through this guide, make sure you have a Kubernetes cluster with the operator installed, and a Kubernetes Secret with an Aiven authentication token.
Creating an Aiven VPC
- Create a file named
vpc-sample.yamlwith the following content:
apiVersion: aiven.io/v1alpha1 kind: ProjectVPC metadata: name: vpc-sample spec: # gets the authentication token from the `aiven-token` Secret authSecretRef: name: aiven-token key: token project: <your-project-name> # creates a VPC to link an AWS account on the South Africa region cloudName: aws-af-south-1 # the network range used by the VPC networkCidr: 192.168.0.0/24
- Create the Project by applying the configuration:
$ kubectl apply -f vpc-sample.yaml
- Review the resource you created with the following command:
$ kubectl get projects.aiven.io vpc-sample NAME PROJECT CLOUD NETWORK CIDR vpc-sample <your-project> aws-af-south-1 192.168.0.0/24
Using the Aiven VPC
Follow the official VPC documentation to complete the VPC peering on your cloud of choice.