Skip to content

Commit

Permalink
Merge pull request #14 from fredrkl/feature/private-cluster-test
Browse files Browse the repository at this point in the history
feature/private cluster test
  • Loading branch information
fredrkl committed Oct 20, 2022
2 parents fd79327 + 17d3052 commit 44e7524
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/create-infra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ jobs:
- name: Kubectl tool installer
uses: Azure/setup-kubectl@v3

- name: Kick off GitOps
run: |
kubectl get nodes
kubectl get ns
- name: Azure CLI script
uses: azure/CLI@v1
with:
azcliversion: 2.30.0
inlineScript: |
az aks command invoke --resource-group ${{ env.CLUSTER_NAME }} --name ${{ env.CLUSTER_NAME }} --command "kubectl get nodes"
3 changes: 3 additions & 0 deletions bicep/modules/aks.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ resource aks 'Microsoft.ContainerService/managedClusters@2022-05-02-preview' = {
}
properties: {
dnsPrefix: dnsPrefix
apiServerAccessProfile: {
enablePrivateCluster: true
}
agentPoolProfiles: [
{
name: 'agentpool'
Expand Down

0 comments on commit 44e7524

Please sign in to comment.