Skip to content

Commit

Permalink
use nodename field, ccm label
Browse files Browse the repository at this point in the history
  • Loading branch information
eaudetcobello committed Aug 21, 2024
1 parent 394ff17 commit 0f07038
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions templates/aws/cluster-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: cluster.x-k8s.io/v1beta1
kind: Cluster
metadata:
name: ${CLUSTER_NAME}
labels:
ccm: external
spec:
clusterNetwork:
pods:
Expand Down Expand Up @@ -49,7 +51,7 @@ spec:
kind: AWSMachineTemplate
name: ${CLUSTER_NAME}-control-plane
spec:
nodeName: {{ ds.meta_data.local_hostname }}
nodeName: "{{ ds.meta_data.local_hostname }}"
files:
# note(ben): This is only required as long as k8s does not have a stable release.
- path: /capi/scripts/install.sh
Expand Down Expand Up @@ -122,7 +124,7 @@ metadata:
spec:
template:
spec:
nodeName: {{ ds.meta_data.local_hostname }}
nodeName: "{{ ds.meta_data.local_hostname }}"
files:
# note(ben): This is only required as long as k8s does not have a stable release.
- path: /capi/scripts/install.sh
Expand All @@ -139,7 +141,7 @@ metadata:
spec:
clusterSelector:
matchLabels:
cluster.x-k8s.io/cluster-name: ${CLUSTER_NAME}
ccm: external
resources:
- kind: ConfigMap
name: cloud-controller-manager-addon
Expand Down

0 comments on commit 0f07038

Please sign in to comment.