Open lhriley opened 5 years ago
@lhriley The error says that the api is not getting any response for deployments. the code is as below:
deployments = self.extensions_v1_beta1.list_namespaced_deployment(self.options.kubernetes_namespace, label_selector="app={}".format(self.options.kubernetes_deployment))
return deployments.items[0]
Make sure the namespace and deployment which you are passing is correct. The deployment here is the label which you defile in deployment section of your yaml file e.g.
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend
spec:
template:
metadata:
labels:
app: frontend
In this case value of deployment is frontend.
I found your SQS autoscaler from the Wattpad issues discussion (https://github.com/Wattpad/kube-sqs-autoscaler/issues/7). Unfortunately, your tool is apparently suffering from it's own issues.
I ran into the region problem (https://github.com/sideshowbandana/k8s-sqs-autoscaler/issues/1), and was able to fix it with the suggested env var. However, I'm not faced with the following:
The error isn't really all that clear. Is this due to a lack of RBAC permissions? Or just some bad logic in your code? I can't really tell, unfortunately.