Skip to content

Commit

Permalink
update ephemeral templates and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
nawazkh committed Nov 19, 2024
1 parent aa4fba5 commit 2c85c47
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 23 deletions.
10 changes: 5 additions & 5 deletions templates/cluster-template-ephemeral.yaml

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

27 changes: 14 additions & 13 deletions templates/flavors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,19 +96,20 @@ worker-templates:
- Below VNet CIDRs are opininated and can be changed as per the requirement.
- AKS cluster created as part of [`aks-as-mgmt.sh`](../../hack/aks-as-mgmt.sh) script uses the `20.255.0.0/16` as the VNet CIDR. So the templates should have non overlapping CIDRs to that of AKS mgmt cluster.

| Flavor | VNet | Control Plane Subnet | Private IP | Node Subnet |
|-----------------------------------------------------|--------------|----------------------|---------------|---------------|
| [`default`](default/kustomization.yaml) | `10.0.0.0/8` | `10.0.0.0/16` | `10.0.11.100` | `10.1.0.0/16` |
| [`aad`](aad/kustomization.yaml) | `30.0.0.0/8` | `30.0.0.0/16` | `30.0.11.100` | `30.1.0.0/16` |
| [`azure-bastion`](azure-bastion/kustomization.yaml) | `40.0.0.0/8` | `40.0.0.0/16` | `40.0.11.100` | `40.1.0.0/16` |
| [`azure-cni-v1`](azure-cni-v1/kustomization.yaml) | `50.0.0.0/8` | `50.0.0.0/16` | `50.0.11.100` | `50.1.0.0/16` |
| [`edgezone`](edgezone/kustomization.yaml) | `60.0.0.0/8` | `60.0.0.0/16` | `60.0.11.100` | `60.1.0.0/16` |
| [`private`](private/kustomization.yaml) | `70.0.0.0/8` | `70.0.0.0/16` | `70.0.11.100` | `70.1.0.0/16` |
| [`dual-stack`](dual-stack/kustomization.yaml) | `10.0.0.0/8` | `10.0.0.0/16` | `10.0.11.100` | `10.1.0.0/16` |
| [`ipv6`](ipv6/kustomization.yaml) | `10.0.0.0/8` | `10.0.0.0/16` | `10.0.11.100` | `10.1.0.0/16` |
| [`flatcar`](flatcar/kustomization.yaml) | `80.0.0.0/8` | `80.0.0.0/16` | `80.0.11.100` | `80.1.0.0/16` |
| [`nvdia-gpu`](nvdia-gpu/kustomization.yaml) | `90.0.0.0/8` | `90.0.0.0/16` | `90.0.11.100` | `90.1.0.0/16` |
| [`windows`](windows/kustomization.yaml) | `10.0.0.0/8` | `10.0.0.0/16` | `10.0.11.100` | `10.1.0.0/16` |
| Flavor | VNet | Control Plane Subnet | Private IP | Node Subnet |
|-----------------------------------------------------|---------------|----------------------|----------------|----------------|
| [`default`](default/kustomization.yaml) | `10.0.0.0/8` | `10.0.0.0/16` | `10.0.0.100` | `10.1.0.0/16` |
| [`aad`](aad/kustomization.yaml) | `30.0.0.0/8` | `30.0.0.0/16` | `30.0.11.100` | `30.1.0.0/16` |
| [`azure-bastion`](azure-bastion/kustomization.yaml) | `40.0.0.0/8` | `40.0.0.0/16` | `40.0.11.100` | `40.1.0.0/16` |
| [`azure-cni-v1`](azure-cni-v1/kustomization.yaml) | `50.0.0.0/8` | `50.0.0.0/16` | `50.0.11.100` | `50.1.0.0/16` |
| [`edgezone`](edgezone/kustomization.yaml) | `60.0.0.0/8` | `60.0.0.0/16` | `60.0.11.100` | `60.1.0.0/16` |
| [`private`](private/kustomization.yaml) | `70.0.0.0/8` | `70.0.0.0/16` | `70.0.11.100` | `70.1.0.0/16` |
| [`dual-stack`](dual-stack/kustomization.yaml) | `10.0.0.0/8` | `10.0.0.0/16` | `10.0.11.100` | `10.1.0.0/16` |
| [`ipv6`](ipv6/kustomization.yaml) | `10.0.0.0/8` | `10.0.0.0/16` | `10.0.11.100` | `10.1.0.0/16` |
| [`flatcar`](flatcar/kustomization.yaml) | `80.0.0.0/8` | `80.0.0.0/16` | `80.0.11.100` | `80.1.0.0/16` |
| [`nvdia-gpu`](nvidia-gpu/kustomization.yaml) | `90.0.0.0/8` | `90.0.0.0/16` | `90.0.11.100` | `90.1.0.0/16` |
| [`windows`](windows/kustomization.yaml) | `10.0.0.0/8` | `10.0.0.0/16` | `10.0.11.100` | `10.1.0.0/16` |
| [`ephemeral`](ephemeral/kustomization.yaml) | `100.0.0.0/8` | `100.0.0.0/16` | `100.0.11.100` | `100.1.0.0/16` |

Note:
- Dual-stack has not been updated with non-overlapping CIDR and uses the `10.0.0.0` based CIDR.
Expand Down
10 changes: 5 additions & 5 deletions templates/flavors/ephemeral/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,31 +27,31 @@ patches:
patch: |-
- op: add
path: /spec/template/spec/preKubeadmCommands/-
value: echo '10.5.0.100 ${CLUSTER_NAME}-${APISERVER_LB_DNS_SUFFIX}.${AZURE_LOCATION}.cloudapp.azure.com' >> /etc/hosts
value: echo '100.5.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.5.0.100
value: 100.0.11.100
- target:
kind: AzureCluster
patch: |-
- op: replace
path: /spec/networkSpec/vnet/cidrBlocks/0
value: 10.5.0.0/16
value: 100.0.0.0/8
- target:
kind: AzureCluster
patch: |-
- op: replace
path: /spec/networkSpec/subnets/0/cidrBlocks/0
value: 10.5.0.0/24
value: 100.0.0.0/16
- target:
kind: AzureCluster
patch: |-
- op: replace
path: /spec/networkSpec/subnets/1/cidrBlocks/0
value: 10.5.1.0/24
value: 100.1.0.0/16
- target:
kind: KubeadmConfigTemplate
patch: |-
Expand Down

0 comments on commit 2c85c47

Please sign in to comment.