-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Container group cannot be updated #56
Comments
I had the same problem. The cause was, that when creting container instances I used non-default values for RAM nad the aci-deploy action has default values on these params and these values were different, therefore Azure thinks "Oh hey, you are trying add more memory? No way without delete." So the solution was to specify these optional params in pipeline and set them to the same values as in Container Instances. It also updated my secure env variables. I have some secrets there, so I can't specify it in pipeline. It could be resolved adding them to Gihtub Secrets probably, but I'd prefer not to have specify them at all. |
This issue is idle because it has been open for 14 days with no activity. |
Hello @kanika1894,
The latter one would be the ultimate solution. |
This issue is idle because it has been open for 14 days with no activity. |
Hey @roncsak, The default values for This is in sync with the fact that changes in certain properties require deletion and redeployment. Please refer this doc for more information. |
Hey @kanika1894, Just look at the example code written here.
Do you see? Even the example code omits the usage of So what happens if an infastructure guy creates a Container Instance beforehand with 2 vcpu and 2 GB memory? The very simple problem with this action that it provides default values for some attributes (e.g. cpu and memory) even if the Container Instance is already created! |
I understand your concern @roncsak . Thanks a lot for explaining it with all details. |
This issue is idle because it has been open for 14 days with no activity. |
Hello!
I wanted to to use this action for the following use-case:
Description
For some reason it failed and GH Actions log said that if I wish to update memory, cpu, os, restart strategy (and whatnot) I should delete and create a new ACI.
After some thinking I checked the
actions.yml
and I found these optional inputs with default values:However I created my ACI with 2 cpus, 7GB memory, and OnFailure restart policy.
After I set these optional inputs to actual values in my GitHub Action deployment works.
Why it is a problem?
I simple want to deploy a new image from the container registry to the container instance. I create my ACI with arm template or Bicep and I don't want to define cpu, memory, os (etc) specific metadata during this action.
How would be better?
If someone does not defines these inputs, don't set a default value to it. If the action cannot update ACI without them, make these inputs required without default values.
Regards,
roncsak
The text was updated successfully, but these errors were encountered: