"node_size": "Standard_D2_v2" }, ] cluster_names = [] for config in aks_cluster_config: cluster = containerservice.KubernetesCluster( "aksCluster-%s" % config["name"], resource_group_name=resource_group.name, linux_profile=containerservice.KubernetesClusterLinuxProfileArgs( admin_username="******", ssh_key=containerservice.KubernetesClusterLinuxProfileSshKeyArgs( key_data=ssh_public_key, ), ), service_principal=containerservice. KubernetesClusterServicePrincipalArgs( client_id=ad_app.application_id, client_secret=ad_sp_password.value), location=config["location"], default_node_pool=containerservice. KubernetesClusterDefaultNodePoolArgs( name="aksagentpool", node_count=config["node_count"], vm_size=config["node_size"], ), dns_prefix="sample-kube", ) cluster_names.append(cluster.name) export("aks_cluster_names", Output.all(cluster_names))
virtual_network_name=vnet.name, address_prefix="10.1.0.0/24", resource_group_name=rg.name) aks = containerservice.KubernetesCluster( "aksCluster", opts=pulumi.ResourceOptions(depends_on=[subnet]), resource_group_name=rg.name, dns_prefix="pul", linux_profile={ "adminUsername": "******", "ssh_key": { "keyData": SSHKEY } }, default_node_pool={ "name": "pool1", "node_count": 2, "vm_size": "Standard_B2ms", "vnet_subnet_id": subnet.id }, network_profile={ "networkPlugin": "azure", "dnsServiceIp": "10.10.1.254", "dockerBridgeCidr": "172.17.0.1/16", "serviceCidr": "10.10.1.0/24" }, identity={"type": "SystemAssigned"}) k8s = Provider( "k8s", kubeconfig=aks.kube_config_raw,
import pulumi from pulumi_azure import containerservice, core containerservice.KubernetesCluster( resource_name='cloudskillsakscluster', default_node_group={ 'min_count': 2, 'max_count': 10, 'name': 'cloudskillsakscluster', 'vm_size': 'Standard_D12_v2', 'enable_auto_scaling': True }, dns_prefix='mynewdnscloudskills', resource_group_name='cloudskills-rg', service_principal={ 'client_id': '', 'client_secret': '' } )
"node_count": "2", "node_size": "Standard_D2_v2" }) cluster_names = [] for config in aks_cluster_config: cluster = containerservice.KubernetesCluster( "aksCluster-%s" % config["name"], resource_group_name=resource_group.name, linux_profile={ "admin_username": "******", "ssh_key": { "key_data": ssh_public_key, }, }, service_principal={ "client_id": ad_app.application_id, "client_secret": ad_sp_password.value }, location=config["location"], default_node_pool={ "name": "aksagentpool", "node_count": config["node_count"], "vm_size": config["node_size"], }, dns_prefix="sample-kube", ) cluster_names.append(cluster.name) export("aks_cluster_names", Output.all(cluster_names))