-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tamal Saha <[email protected]>
- Loading branch information
Showing
42 changed files
with
119,415 additions
and
0 deletions.
There are no files selected for viewing
211 changes: 211 additions & 0 deletions
211
files/cluster-api-provider-azure/v1.12.3/cluster-template-aad.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 |
---|---|---|
@@ -0,0 +1,211 @@ | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: Cluster | ||
metadata: | ||
name: ${CLUSTER_NAME} | ||
namespace: default | ||
spec: | ||
clusterNetwork: | ||
pods: | ||
cidrBlocks: | ||
- 192.168.0.0/16 | ||
controlPlaneRef: | ||
apiVersion: controlplane.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmControlPlane | ||
name: ${CLUSTER_NAME}-control-plane | ||
infrastructureRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: AzureCluster | ||
name: ${CLUSTER_NAME} | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: AzureCluster | ||
metadata: | ||
name: ${CLUSTER_NAME} | ||
namespace: default | ||
spec: | ||
identityRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: AzureClusterIdentity | ||
name: ${CLUSTER_IDENTITY_NAME} | ||
location: ${AZURE_LOCATION} | ||
networkSpec: | ||
subnets: | ||
- name: control-plane-subnet | ||
role: control-plane | ||
- name: node-subnet | ||
role: node | ||
vnet: | ||
name: ${AZURE_VNET_NAME:=${CLUSTER_NAME}-vnet} | ||
resourceGroup: ${AZURE_RESOURCE_GROUP:=${CLUSTER_NAME}} | ||
subscriptionID: ${AZURE_SUBSCRIPTION_ID} | ||
--- | ||
apiVersion: controlplane.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmControlPlane | ||
metadata: | ||
name: ${CLUSTER_NAME}-control-plane | ||
namespace: default | ||
spec: | ||
kubeadmConfigSpec: | ||
clusterConfiguration: | ||
apiServer: | ||
extraArgs: | ||
cloud-provider: external | ||
oidc-client-id: ${AZURE_SERVER_APP_ID} | ||
oidc-groups-claim: groups | ||
oidc-issuer-url: https://sts.windows.net/${AZURE_TENANT_ID}/ | ||
oidc-username-claim: oid | ||
oidc-username-prefix: '-' | ||
timeoutForControlPlane: 20m | ||
controllerManager: | ||
extraArgs: | ||
allocate-node-cidrs: "false" | ||
cloud-provider: external | ||
cluster-name: ${CLUSTER_NAME} | ||
etcd: | ||
local: | ||
dataDir: /var/lib/etcddisk/etcd | ||
extraArgs: | ||
quota-backend-bytes: "8589934592" | ||
diskSetup: | ||
filesystems: | ||
- device: /dev/disk/azure/scsi1/lun0 | ||
extraOpts: | ||
- -E | ||
- lazy_itable_init=1,lazy_journal_init=1 | ||
filesystem: ext4 | ||
label: etcd_disk | ||
- device: ephemeral0.1 | ||
filesystem: ext4 | ||
label: ephemeral0 | ||
replaceFS: ntfs | ||
partitions: | ||
- device: /dev/disk/azure/scsi1/lun0 | ||
layout: true | ||
overwrite: false | ||
tableType: gpt | ||
files: | ||
- contentFrom: | ||
secret: | ||
key: control-plane-azure.json | ||
name: ${CLUSTER_NAME}-control-plane-azure-json | ||
owner: root:root | ||
path: /etc/kubernetes/azure.json | ||
permissions: "0644" | ||
initConfiguration: | ||
nodeRegistration: | ||
kubeletExtraArgs: | ||
cloud-provider: external | ||
name: '{{ ds.meta_data["local_hostname"] }}' | ||
joinConfiguration: | ||
nodeRegistration: | ||
kubeletExtraArgs: | ||
cloud-provider: external | ||
name: '{{ ds.meta_data["local_hostname"] }}' | ||
mounts: | ||
- - LABEL=etcd_disk | ||
- /var/lib/etcddisk | ||
postKubeadmCommands: [] | ||
preKubeadmCommands: [] | ||
machineTemplate: | ||
infrastructureRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: AzureMachineTemplate | ||
name: ${CLUSTER_NAME}-control-plane | ||
replicas: ${CONTROL_PLANE_MACHINE_COUNT} | ||
version: ${KUBERNETES_VERSION} | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: AzureMachineTemplate | ||
metadata: | ||
name: ${CLUSTER_NAME}-control-plane | ||
namespace: default | ||
spec: | ||
template: | ||
spec: | ||
dataDisks: | ||
- diskSizeGB: 256 | ||
lun: 0 | ||
nameSuffix: etcddisk | ||
osDisk: | ||
diskSizeGB: 128 | ||
osType: Linux | ||
sshPublicKey: ${AZURE_SSH_PUBLIC_KEY_B64:=""} | ||
vmSize: ${AZURE_CONTROL_PLANE_MACHINE_TYPE} | ||
--- | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: MachineDeployment | ||
metadata: | ||
name: ${CLUSTER_NAME}-md-0 | ||
namespace: default | ||
spec: | ||
clusterName: ${CLUSTER_NAME} | ||
replicas: ${WORKER_MACHINE_COUNT} | ||
selector: | ||
matchLabels: null | ||
template: | ||
spec: | ||
bootstrap: | ||
configRef: | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmConfigTemplate | ||
name: ${CLUSTER_NAME}-md-0 | ||
clusterName: ${CLUSTER_NAME} | ||
infrastructureRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: AzureMachineTemplate | ||
name: ${CLUSTER_NAME}-md-0 | ||
version: ${KUBERNETES_VERSION} | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: AzureMachineTemplate | ||
metadata: | ||
name: ${CLUSTER_NAME}-md-0 | ||
namespace: default | ||
spec: | ||
template: | ||
spec: | ||
osDisk: | ||
diskSizeGB: 128 | ||
managedDisk: | ||
storageAccountType: Premium_LRS | ||
osType: Linux | ||
sshPublicKey: ${AZURE_SSH_PUBLIC_KEY_B64:=""} | ||
vmSize: ${AZURE_NODE_MACHINE_TYPE} | ||
--- | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmConfigTemplate | ||
metadata: | ||
name: ${CLUSTER_NAME}-md-0 | ||
namespace: default | ||
spec: | ||
template: | ||
spec: | ||
files: | ||
- contentFrom: | ||
secret: | ||
key: worker-node-azure.json | ||
name: ${CLUSTER_NAME}-md-0-azure-json | ||
owner: root:root | ||
path: /etc/kubernetes/azure.json | ||
permissions: "0644" | ||
joinConfiguration: | ||
nodeRegistration: | ||
kubeletExtraArgs: | ||
cloud-provider: external | ||
name: '{{ ds.meta_data["local_hostname"] }}' | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: AzureClusterIdentity | ||
metadata: | ||
labels: | ||
clusterctl.cluster.x-k8s.io/move-hierarchy: "true" | ||
name: ${CLUSTER_IDENTITY_NAME} | ||
namespace: default | ||
spec: | ||
allowedNamespaces: {} | ||
clientID: ${AZURE_CLIENT_ID} | ||
clientSecret: | ||
name: ${AZURE_CLUSTER_IDENTITY_SECRET_NAME} | ||
namespace: ${AZURE_CLUSTER_IDENTITY_SECRET_NAMESPACE} | ||
tenantID: ${AZURE_TENANT_ID} | ||
type: ServicePrincipal |
125 changes: 125 additions & 0 deletions
125
files/cluster-api-provider-azure/v1.12.3/cluster-template-aks-clusterclass.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 |
---|---|---|
@@ -0,0 +1,125 @@ | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: ClusterClass | ||
metadata: | ||
name: ${CLUSTER_CLASS_NAME} | ||
namespace: default | ||
spec: | ||
controlPlane: | ||
ref: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: AzureManagedControlPlaneTemplate | ||
name: ${CLUSTER_NAME}-control-plane | ||
infrastructure: | ||
ref: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: AzureManagedClusterTemplate | ||
name: ${CLUSTER_NAME} | ||
workers: | ||
machinePools: | ||
- class: default-system | ||
template: | ||
bootstrap: | ||
ref: | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmConfigTemplate | ||
name: ${CLUSTER_NAME}-pool0 | ||
infrastructure: | ||
ref: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: AzureManagedMachinePoolTemplate | ||
name: ${CLUSTER_NAME}-pool0 | ||
- class: default-worker | ||
template: | ||
bootstrap: | ||
ref: | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmConfigTemplate | ||
name: ${CLUSTER_NAME}-pool1 | ||
infrastructure: | ||
ref: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: AzureManagedMachinePoolTemplate | ||
name: ${CLUSTER_NAME}-pool1 | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: AzureManagedControlPlaneTemplate | ||
metadata: | ||
name: ${CLUSTER_NAME}-control-plane | ||
namespace: default | ||
spec: | ||
template: | ||
spec: | ||
identityRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: AzureClusterIdentity | ||
name: ${CLUSTER_IDENTITY_NAME} | ||
location: ${AZURE_LOCATION} | ||
subscriptionID: ${AZURE_SUBSCRIPTION_ID} | ||
version: ${KUBERNETES_VERSION} | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: AzureManagedClusterTemplate | ||
metadata: | ||
name: ${CLUSTER_NAME} | ||
namespace: default | ||
spec: | ||
template: | ||
spec: {} | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: AzureManagedMachinePoolTemplate | ||
metadata: | ||
name: ${CLUSTER_NAME}-pool0 | ||
namespace: default | ||
spec: | ||
template: | ||
spec: | ||
mode: System | ||
name: pool0 | ||
sku: ${AZURE_NODE_MACHINE_TYPE} | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: AzureManagedMachinePoolTemplate | ||
metadata: | ||
name: ${CLUSTER_NAME}-pool1 | ||
namespace: default | ||
spec: | ||
template: | ||
spec: | ||
mode: User | ||
name: pool1 | ||
sku: ${AZURE_NODE_MACHINE_TYPE} | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: AzureClusterIdentity | ||
metadata: | ||
labels: | ||
clusterctl.cluster.x-k8s.io/move-hierarchy: "true" | ||
name: ${CLUSTER_IDENTITY_NAME} | ||
namespace: default | ||
spec: | ||
allowedNamespaces: {} | ||
clientID: ${AZURE_CLIENT_ID} | ||
clientSecret: | ||
name: ${AZURE_CLUSTER_IDENTITY_SECRET_NAME} | ||
namespace: ${AZURE_CLUSTER_IDENTITY_SECRET_NAMESPACE} | ||
tenantID: ${AZURE_TENANT_ID} | ||
type: ServicePrincipal | ||
--- | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmConfigTemplate | ||
metadata: | ||
name: ${CLUSTER_NAME}-pool0 | ||
namespace: default | ||
spec: | ||
template: | ||
spec: {} | ||
--- | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmConfigTemplate | ||
metadata: | ||
name: ${CLUSTER_NAME}-pool1 | ||
namespace: default | ||
spec: | ||
template: | ||
spec: {} |
21 changes: 21 additions & 0 deletions
21
files/cluster-api-provider-azure/v1.12.3/cluster-template-aks-topology.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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: Cluster | ||
metadata: | ||
name: ${CLUSTER_NAME} | ||
namespace: default | ||
spec: | ||
clusterNetwork: | ||
pods: | ||
cidrBlocks: | ||
- 192.168.0.0/16 | ||
topology: | ||
class: ${CLUSTER_CLASS_NAME} | ||
version: ${KUBERNETES_VERSION} | ||
workers: | ||
machinePools: | ||
- class: default-system | ||
name: mp-0 | ||
replicas: 1 | ||
- class: default-worker | ||
name: mp-1 | ||
replicas: 1 |
Oops, something went wrong.