Skip to content

Commit

Permalink
update private templates
Browse files Browse the repository at this point in the history
  • Loading branch information
nawazkh committed Nov 15, 2024
1 parent ab59a5f commit 0fde5aa
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 4 deletions.
17 changes: 14 additions & 3 deletions templates/cluster-template-private.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions templates/flavors/private/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,48 @@ patches:
- path: patches/private-lb.yaml
- path: patches/apiserver-host-dns.yaml
- path: patches/azure-bastion.yaml
- path: ../../internal-load-balancer/azure-cluster-cidrs-and-frontend-ips.yaml
- path: ../../internal-load-balancer/kubeadm-config-template-worker-node.yaml
- target:
kind: KubeadmConfigTemplate
patch: |-
- op: add
path: /spec/template/spec/preKubeadmCommands/-
value: echo '10.9.0.100 ${CLUSTER_NAME}-${APISERVER_LB_DNS_SUFFIX}.${AZURE_LOCATION}.cloudapp.azure.com' >> /etc/hosts
- target:
kind: AzureCluster
patch: |-
- op: replace
path: /spec/networkSpec/apiServerLB/frontendIPs/1/privateIP
value: 10.9.0.100
- target:
kind: AzureCluster
patch: |-
- op: replace
path: /spec/networkSpec/vnet/cidrBlocks/0
value: 10.9.0.0/16
- target:
kind: AzureCluster
patch: |-
- op: replace
path: /spec/networkSpec/subnets/0/cidrBlocks/0
value: 10.9.0.0/24
- target:
kind: AzureCluster
patch: |-
- op: replace
path: /spec/networkSpec/subnets/1/cidrBlocks/0
value: 10.9.1.0/24
- target:
kind: AzureCluster
patch: |-
- op: remove
path: /spec/networkSpec/apiServerLB/frontendIPs/0
- target:
kind: KubeadmConfigTemplate
patch: |-
- op: remove
path: /spec/template/spec/preKubeadmCommands/0
sortOptions:
order: fifo
4 changes: 3 additions & 1 deletion templates/test/ci/cluster-template-prow-private.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0fde5aa

Please sign in to comment.