Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 15 additions & 18 deletions examples/clusterclasses/azure/rke2/clusterclass-rke2-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,20 +89,6 @@ spec:
description: "The VM size used by machines."
type: string
default: "Standard_D2s_v3"
- name: registrationMethod
required: true
schema:
openAPIV3Schema:
description: "Registration method to use. Defaults to control-plane endpoint (empty string). Immutable once is set."
type: string
default: ""
enum:
- internal-first
- internal-only-ips
- external-only-ips
- address
- control-plane-endpoint
- ""
patches:
- name: azureClusterTemplate
definitions:
Expand Down Expand Up @@ -137,10 +123,25 @@ spec:
subnets:
- name: {{ .builtin.cluster.name }}-kcps
role: control-plane
securityGroup:
securityRules:
- action: Allow
description: Allow port 9345 for RKE2
destination: '*'
destinationPorts: "9345"
direction: Inbound
name: allow_port_9345
priority: 2203
protocol: Tcp
source: '*'
sourcePorts: '*'
- name: {{ .builtin.cluster.name }}-nodes
natGateway:
name: {{ .builtin.cluster.name }}-nodes
role: node
additionalAPIServerLBPorts:
- name: rke2
port: 9345
- name: azureMachineTemplate
definitions:
- selector:
Expand All @@ -160,10 +161,6 @@ spec:
owner: root:root
path: /etc/kubernetes/azure.json
permissions: "0644"
- op: add
path: /spec/template/spec/registrationMethod
valueFrom:
variable: registrationMethod
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: AzureMachineTemplate
Expand Down
2 changes: 0 additions & 2 deletions test/e2e/data/cluster-templates/azure-rke2-topology.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ spec:
value: highlander-e2e-azure-rke2
- name: azureClusterIdentityName
value: cluster-identity
- name: registrationMethod
value: internal-first
version: ${RKE2_VERSION}
workers:
machineDeployments:
Expand Down