import * as azure from "@pulumi/azure" ; import * as pulumi from "@pulumi/pulumi" ; import * as config from "./config" ; const k8sCluster = new azure . containerservice . KubernetesCluster ( "aksCluster" , { resourceGroupName : config . resourceGroupName , location : config . location , agentPoolProfile : { name : "aksagentpool" , count : config . nodeCount , vmSize : config . nodeSize , } , dnsPrefix : `${ pulumi . getStack ( ) }-kube` , linuxProfile : { adminUsername : "aksuser" , sshKeys : [ { keyData : config . sshPublicKey , } , ] , } , servicePrincipal : { clientId : config . applicationID , clientSecret : config . servicePrincipalPassword , } , } ) ; export const kubeconfig = k8sCluster . kubeConfigRaw ;