Closed alxxyz closed 1 year ago
@alxxyz can you attach the rest of the workflow? which action are you using to set your context before calling k8s-create-secret?
Hi @davidgamero, these are other actions
- name: Authenticate to AKS
uses: azure/login@v1
with:
creds: ${{ inputs.principal }}
- name: Set AKS Context
uses: azure/aks-set-context@v3
with:
cluster-name: ${{ inputs.cluster-name }}
resource-group: ${{ inputs.resource-group }}
subscription: ${{ inputs.subscription }}
are you using this as a non-admin user? you may need to add kubelogin
You can do this by adding use-kubelogin: 'true'
to your aks-set-context "with" clause and adding this step before it:
- name: Set up kubelogin for non-interactive login
uses: azure/use-kubelogin@v1
with:
kubelogin-version: 'v0.0.24'
It works, thank you!
I guess it will be good to add this info to documentation.
@alxxyz I'm glad it works for you! this is already included in the documentation under Example > Kubelogin in the README
I get an error for this action