on 2021 Apr 13 3:57 PM
Hello,
I am trying to deploy our application with autoscaler service and use JSON file with policy configuration to create a policy during deployment. I tried different configuration options in mta.yaml - but no success. Either policy is not created or deployment failed with error: "can not update default policy....."
So, this is a snap from mta.yaml (resources part)
- name: autoscaler-XXX
type: org.cloudfoundry.managed-service
parameters:
service: autoscaler
service-plan: standard
config-path: ./autoscaler.json
If I use "config-path" - nothing happens - deployment is successfully, but policy is not applied. After deployment I have to create policy manually.
If I use "path" - deployment failed with message above.
Do you have any hints for autoscaler?
Google also didn't find answer....
best regards,
Andrey
Request clarification before answering.
I'm not familiar with this specific service but generally speaking, you need to use "path" under "parameters" (Look here for the entire sample).
The text editor screws up the formatting here, so I can't see if you handle the whitespaces correctly.
Also, I'd recommend removing the entire service instance and recreate it to avoid weird update issues.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marius,
thanks for answer. mta.yaml is correctly formatted, I just copy pasted as text, here is also screen shot
If I deploy from "scratch" - everything is fine, but scaling policy from file autoscaler.json is not applied (problem #1).
If I do update deployment - it is failed with error:
Controller operation failed: 502 Updating service "app-autoscaler" failed: Bad Gateway: CF-ServiceBrokerRequestRejected(10001): Service broker error: Service broker autoscaler-broker failed with: {"code":"Unprocessable Entity","message":"Failed to update service instance: Only default_policy updates allowed"}
This is a problem #2. Then I have to unbind autoscaler service, delete it and deploy agian from "scratch".
best regards,
Andrey
User | Count |
---|---|
72 | |
19 | |
9 | |
8 | |
7 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.