Giter VIP home page Giter VIP logo

Comments (6)

chrigl avatar chrigl commented on September 24, 2024

I will start working on it this week if there are no concerns.

from cluster-api-provider-openstack.

gdoctor avatar gdoctor commented on September 24, 2024

@chrigl I am currently working on the security group aspect, very similar to the aws implementation if you want to keep that our of your scope for now. You could just let me know what you had in mind for security groups within the cluster actuator, because right now most of that logic exists in the machine actuator. Up to you

from cluster-api-provider-openstack.

chrigl avatar chrigl commented on September 24, 2024

@gdoctor I definitely appreciate help on this. I think, all building blocks necessary for a cluster should go into the cluster actuator, because they are not tight to a specific machine. I count SecurityGroups also as building block, because it is created once (at cluster level) and then used individually in the machines.

I am starting with getting the types in apis/openstackproviderconfig/v1alpha1 to support a cluster config and status, and get this landed in master. I want to have as many small-ish PRs as possible. You could build on top of this, then... Does this sound legit?

from cluster-api-provider-openstack.

gdoctor avatar gdoctor commented on September 24, 2024

@chrigl sorry this got lost for me during the holidays here in the US. So is your idea that the cluster actuator actually creates the Security Groups within OpenStack? And then the machine actuator would manage which security groups exist, are added, or are removed on a per machine/machineset basis? I see this working well

from cluster-api-provider-openstack.

chrigl avatar chrigl commented on September 24, 2024

@gdoctor No problem. Hoping you had a great vacation :)

Yes this is the basic idea. I already have custom cluster actuator running, which creates network, subnet and external router. If successful, it writes it back to the ProviderStatus:
Example:

apiVersion: cluster.k8s.io/v1alpha1
kind: Cluster
[...]
status:
  apiEndpoints:
  - host: 185.116.245.190
    port: 443
  providerStatus:
    metadata:
      creationTimestamp: null
    network:
      id: acbeb99e-eee0-4ddd-9544-ab88406eff2b
      name: k8s-cluster-test1
      subnets:
      - cidr: 10.1.0.0/24
        id: 6bdad12c-6aa4-46b9-9671-fededafeece5
        name: k8s-cluster-test1

So the machine actuator can pick up the network, and there is no need to configure the network per node. The same I would do for SecurityGroups... so there will be a field securityGroups at the same level as subnets.
Maybe we create a map here. For securityGroups["master"] and securityGroups["node"]... at least the AWS provider does it this way. We also maybe provide a way to configure additional SecurityGroups by node (which the AWS provider does as well).

I'm currently waiting for #109 to continue here.

from cluster-api-provider-openstack.

chrigl avatar chrigl commented on September 24, 2024

/assign @chrigl

from cluster-api-provider-openstack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.