-
Notifications
You must be signed in to change notification settings - Fork 231
add support for openshift actuator #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,39 +1,15 @@ | ||
| --- | ||
| apiVersion: "cluster.k8s.io/v1alpha1" | ||
| kind: Cluster | ||
| metadata: | ||
| name: test | ||
| namespace: test | ||
| name: {{.ClusterName}} | ||
| namespace: default | ||
| spec: | ||
| clusterNetwork: | ||
| services: | ||
| cidrBlocks: | ||
| - "10.0.0.1/24" | ||
| - "10.0.0.1/24" | ||
| pods: | ||
| cidrBlocks: | ||
| - "10.0.0.2/24" | ||
| serviceDomain: example.com | ||
| providerConfig: | ||
| value: | ||
| apiVersion: awsproviderconfig/v1alpha1 | ||
| kind: AWSClusterProviderConfig | ||
| clusterId: {{.VpcName}} | ||
| clusterVersionRef: | ||
| namespace: test | ||
| name: test | ||
| hardware: | ||
| aws: | ||
| region: {{.Region}} | ||
| keyPairName: {{.SshKey}} | ||
| defaultHardwareSpec: | ||
| aws: | ||
| instanceType: m4.large | ||
| machineSets: | ||
| - nodeType: Master | ||
| size: 1 | ||
| - shortName: infra | ||
| nodeType: Compute | ||
| infra: true | ||
| size: 1 | ||
| - shortName: compute | ||
| nodeType: Compute | ||
| size: 1 | ||
| - "10.0.0.2/24" | ||
| serviceDomain: unused |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,40 +1,56 @@ | ||
| --- | ||
| apiVersion: cluster.k8s.io/v1alpha1 | ||
| kind: MachineSet | ||
| metadata: | ||
| name: worker | ||
| namespace: test | ||
| namespace: default | ||
| labels: | ||
| machineapioperator.openshift.io/cluster: test | ||
| sigs.k8s.io/cluster-api-cluster: {{.ClusterName}} | ||
| sigs.k8s.io/cluster-api-machine-role: worker | ||
| sigs.k8s.io/cluster-api-machine-type: worker | ||
| spec: | ||
| replicas: 3 | ||
| replicas: {{.Replicas}} | ||
| selector: | ||
| matchLabels: | ||
| machineapioperator.openshift.io/machineset: worker | ||
| machineapioperator.openshift.io/cluster: test | ||
| sigs.k8s.io/cluster-api-machineset: worker | ||
| sigs.k8s.io/cluster-api-cluster: {{.ClusterName}} | ||
| template: | ||
| metadata: | ||
| labels: | ||
| machineapioperator.openshift.io/machineset: worker | ||
| machineapioperator.openshift.io/cluster: test | ||
| sigs.k8s.io/cluster-api-machineset: worker | ||
| sigs.k8s.io/cluster-api-cluster: {{.ClusterName}} | ||
| sigs.k8s.io/cluster-api-machine-role: worker | ||
| sigs.k8s.io/cluster-api-machine-type: worker | ||
| spec: | ||
| providerConfig: | ||
| value: | ||
| apiVersion: awsproviderconfig/v1alpha1 | ||
| apiVersion: aws.cluster.k8s.io/v1alpha1 | ||
| kind: AWSMachineProviderConfig | ||
| clusterId: {{.VpcName}} | ||
| clusterHardware: | ||
| aws: | ||
| keyPairName: {{.SshKey}} | ||
| region: {{.Region}} | ||
| hardware: | ||
| aws: | ||
| instanceType: m4.large | ||
| infra: false | ||
| vmImage: | ||
| awsImage: {{.Image}} | ||
| ami: | ||
| id: {{.Image}} | ||
| instanceType: m4.large | ||
| placement: | ||
| region: {{.Region}} | ||
| availabilityZone: {{.AvailabilityZone}} | ||
| subnet: | ||
| filters: | ||
| - name: "tag:Name" | ||
| values: | ||
| - {{.ClusterName}}-worker-{{.AvailabilityZone}} | ||
| publicIp: true | ||
| iamInstanceProfile: | ||
| id: {{.ClusterName}}-master-profile | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this be |
||
| keyName: tectonic | ||
| tags: | ||
| - name: tectonicClusterID | ||
| value: {{.ClusterID}} | ||
| securityGroups: | ||
| - filters: | ||
| - name: "tag:Name" | ||
| values: | ||
| - {{.ClusterName}}_worker_sg | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is probably fine for now, but just a thought: If we're going to select security groups this way, we may want to also filter by cluster ID if that's available. |
||
| userDataSecret: | ||
| name: ignition-worker | ||
| versions: | ||
| kubelet: 0.0.0 | ||
| controlPlane: 0.0.0 | ||
| roles: | ||
| - Master | ||
|
|
||
| kubelet: "" | ||
| controlPlane: "" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,8 @@ | ||
| apiVersion: v1 | ||
| kind: machineAPIOperatorConfig | ||
| vpcName: "test" | ||
| sshKey: "test" | ||
| clusterName: "test" | ||
| clusterDomain: "test" | ||
| clusterName: meh | ||
| clusterID: b302cf66-f5ff-4d5d-1cc1-0ab2755d2065 | ||
| image: ami-0e502f54daeb8686e | ||
| region: eu-west-1 | ||
| availabilityZone: eu-west-1a | ||
| replicas: 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
defaultstill better thantest. Though, is this the final namespace? I would rather make the namespace configurable. Either via configmap or via mao--namespaceor similar option.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks. Yes, there's separate tickets for addressing dedicated namespaces and service accounts.