-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed machineDeployment SystemManagedMachiePool
Signed-off-by: Devesh Sharma <devesh@obmondo.com>
- Loading branch information
Devesh Sharma
committed
Aug 29, 2024
1 parent
ea3df45
commit 5a1ce66
Showing
2 changed files
with
10 additions
and
9 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
argocd-helm-charts/capi-cluster/charts/azure/templates/MachineDeployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 9 additions & 8 deletions
17
argocd-helm-charts/capi-cluster/charts/azure/templates/SelfSystemMachinePool.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,33 @@ | ||
{{- if .Values.selfManagedCluster.enabled }} | ||
{{- $global := . }} | ||
{{- $pools := list "vmu" "vmus" }} | ||
{{- range $index, $pool := $pools }} | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: MachinePool | ||
metadata: | ||
labels: | ||
cluster.x-k8s.io/cluster-name: {{ .Values.global.clusterName }} | ||
name: {{ .Values.global.clusterName }}-{{ $pool }}-0 | ||
namespace: {{ .Release.Namespace }} | ||
cluster.x-k8s.io/cluster-name: {{ $global.Values.global.clusterName }} | ||
name: {{ $global.Values.global.clusterName }}-{{ $pool }}-0 | ||
namespace: {{ $global.Release.Namespace }} | ||
spec: | ||
clusterName: {{ .Values.global.clusterName }} | ||
clusterName: {{ $global.Values.global.clusterName }} | ||
failureDomains: | ||
- "1" | ||
- "3" | ||
replicas: 3 | ||
template: | ||
spec: | ||
clusterName: {{ .Values.global.clusterName }} | ||
clusterName: {{ $global.Values.global.clusterName }} | ||
bootstrap: | ||
configRef: | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmConfigTemplate | ||
name: {{ .Values.global.clusterName }}-md-0 | ||
clusterName: {{ .Values.global.clusterName }} | ||
name: {{ $global.Values.global.clusterName }}-md-0 | ||
clusterName: {{ $global.Values.global.clusterName }} | ||
infrastructureRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: AzureMachinePool | ||
name: spool1 | ||
version: {{ .Values.global.kubernetes.version }} | ||
version: {{ $global.Values.global.kubernetes.version }} | ||
{{- end }} | ||
{{- end }} |