Score:0

Unable to connect aks cluster using github actions, how to fix that?

uz flag

I am trying to connect to cluster and create a namespace using github actions. For that, I tried these steps.

In the link shared above, I first retrieved the azure service principal for connecting aks.

az ad sp create-for-rbac --name "myApp" --role contributor --scopes /subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP> --sdk-auth

And then, proceeded with the steps. But, during namespace creation, I am getting error as below.

W1102 12:06:42.227952 3700 helpers.go:555] --dry-run is deprecated and can be replaced with --dry-run=client.
The connection to the server localhost:8080 was refused - did you specify the right host or port?
Error: Process completed with exit code 1.

Below is the github job failing.

> - name:  Set the target Azure Kubernetes Service (AKS) cluster.    uses: azure/aks-set-context@v1   with:
>     creds: '${{ secrets.AZURE_CREDENTIALS }}'
>     cluster-name: ${{ env.CLUSTER_NAME }}
>     resource-group: ${{ env.CLUSTER_RESOURCE_GROUP }}
>    
> - name: Deploy to Cluster   uses: azure/k8s-deploy@v1   with:
>     manifests: |
>       manifests/deployment.yml
>       manifests/service.yml
>     images: |
>       ${{ env.REGISTRY_NAME }}.azurecr.io/${{ env.APP_NAME }}:${{ github.sha }}
>     imagepullsecrets: |
>       ${{ env.SECRET }}
>     namespace: ${{ env.NAMESPACE }}
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.