{"action":"created","issue":{"url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/issues/298","repository_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator","labels_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/issues/298/labels{/name}","comments_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/issues/298/comments","events_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/issues/298/events","html_url":"https://github.com/oracle/weblogic-kubernetes-operator/issues/298","id":323938605,"node_id":"MDU6SXNzdWUzMjM5Mzg2MDU=","number":298,"title":"Question about 'Using a WLDF policy rule and script action to call the operator's REST scale API'","user":{"login":"jhzhu89","id":17221448,"node_id":"MDQ6VXNlcjE3MjIxNDQ4","avatar_url":"https://avatars1.githubusercontent.com/u/17221448?v=4","gravatar_id":"","url":"https://api.github.com/users/jhzhu89","html_url":"https://github.com/jhzhu89","followers_url":"https://api.github.com/users/jhzhu89/followers","following_url":"https://api.github.com/users/jhzhu89/following{/other_user}","gists_url":"https://api.github.com/users/jhzhu89/gists{/gist_id}","starred_url":"https://api.github.com/users/jhzhu89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhzhu89/subscriptions","organizations_url":"https://api.github.com/users/jhzhu89/orgs","repos_url":"https://api.github.com/users/jhzhu89/repos","events_url":"https://api.github.com/users/jhzhu89/events{/privacy}","received_events_url":"https://api.github.com/users/jhzhu89/received_events","type":"User","site_admin":false},"labels":[{"id":853947663,"node_id":"MDU6TGFiZWw4NTM5NDc2NjM=","url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/labels/customer%20reported","name":"customer reported","color":"0852db","default":false},{"id":770470370,"node_id":"MDU6TGFiZWw3NzA0NzAzNzA=","url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2018-05-17T09:18:58Z","updated_at":"2018-05-31T07:59:14Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI need to enable the auto scaling for a cluster, I have watched [the video](https://www.youtube.com/watch?v=Q8iZi2e9HvU&feature=youtu.be), now I am trying to scale up my cluster using scalingAction.sh.\r\n\r\nI encountered some problems. I have these questions:\r\n\r\n- I deployed the operator into its own namespace, for example, weblogic-operator, and deployed domains into their own namespaces, for example, weblogic-domain1, as mentioned in [Architectural overview](https://github.com/oracle/weblogic-kubernetes-operator/blob/master/site/architecture.md). While I found that in this video, the instructor deployed them into one namespace - weblogic-operator, why is that?\r\n- Is the script `$WEBLOGIC_KUBERNETES_OPERATOR_HOME/src/scripts/scaling/scalingAction.sh` the same as the script used by the instructor? I had to provide many params to get it run.\r\n- I tried running this script in domain*-admin-server as the instructor did, why I encountered such error:\r\n```\r\n\"status\": \"Failure\",\r\n  \"message\": \"services \\\"internal-weblogic-operator-svc\\\" is forbidden: User \\\"system:serviceaccount:weblogic-domain2:default\\\" cannot get services/status in the namespace \\\"weblogic-operator\\\"\",        \r\n  \"reason\": \"Forbidden\",\r\n  \"details\": {\r\n    \"name\": \"internal-weblogic-operator-svc\",\r\n    \"kind\": \"services\"\r\n  },\r\n  \"code\": 403\r\n```\r\nSo I switched to run this script in weblogic-operator-*, and modified some roles, then the script was able to query weblogic operator service port, etc. While it failed to test the existence of \r\n`${INTERNAL_OPERATOR_CERT}`. Could you explain what this ENV var is?\r\n- Is there a detailed step by step tutorial about running scalingAction.sh and defining WLDF policy rule and script action?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/issues/comments/393444890","html_url":"https://github.com/oracle/weblogic-kubernetes-operator/issues/298#issuecomment-393444890","issue_url":"https://api.github.com/repos/oracle/weblogic-kubernetes-operator/issues/298","id":393444890,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzQ0NDg5MA==","user":{"login":"jhzhu89","id":17221448,"node_id":"MDQ6VXNlcjE3MjIxNDQ4","avatar_url":"https://avatars1.githubusercontent.com/u/17221448?v=4","gravatar_id":"","url":"https://api.github.com/users/jhzhu89","html_url":"https://github.com/jhzhu89","followers_url":"https://api.github.com/users/jhzhu89/followers","following_url":"https://api.github.com/users/jhzhu89/following{/other_user}","gists_url":"https://api.github.com/users/jhzhu89/gists{/gist_id}","starred_url":"https://api.github.com/users/jhzhu89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhzhu89/subscriptions","organizations_url":"https://api.github.com/users/jhzhu89/orgs","repos_url":"https://api.github.com/users/jhzhu89/repos","events_url":"https://api.github.com/users/jhzhu89/events{/privacy}","received_events_url":"https://api.github.com/users/jhzhu89/received_events","type":"User","site_admin":false},"created_at":"2018-05-31T07:59:14Z","updated_at":"2018-05-31T07:59:14Z","author_association":"NONE","body":"@alai8 ,\r\n\r\nThank you very much, it works :) \r\nReally appreciate your help!\r\n\r\nJiahao "}}
{"actor":{"display_login":"jhzhu89"}}