influxdata / influxdata/kapacitor

K8sAutoscaleNode and Openshift

Open
#1,810 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
2.4k
Forks
479
Avg merge
4d 16h
Merged PRs (30d)
4

Description

Kapacitor 1.4.0
Openshift 3.7

Im trying to get the K8sAutoscaleNode to work with Openshift and Im running into a strange issue.

```
|k8sAutoscale()
.kind('deployments')
.namespace('testproj')
.resourceName('test')
.increaseCooldown(increase_cooldown)
.decreaseCooldown(decrease_cooldown)
.replicas(lambda: int(ceil("avg_workers" / target)))
```

In the logs Im getting the following.

`ts=2018-02-22T16:51:40.007+01:00 lvl=error msg="error handling point" service=kapacitor task_master=main task=autoscaler node=k8s_autoscale5 err="could not determine initial scale for \"testproj/deployments/test\": failed to get scale testproj/deployments/test: failed to understand k8s server response: Code: 403: invalid character 'U' looking for beginning of value"
`

It looks like it picks up all the k8s info that it needs but it's getting something strange back.
Tried all different .kind settings, not getting any progress though.

Any ideas?

Contributor guide

Open the contributing guide

Research direction

Start at the K8sAutoscaleNode entry point and reproduce the issue against the stated Kapacitor 1.4.0 and OpenShift 3.7 setup. Inspect the 403 response and determine whether the failure is caused by authentication or API compatibility; done means documenting or fixing the supported behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.