Coder Social home page Coder Social logo

scalyr / helm-scalyr Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 10.0 1.18 MB

A helm chart for the Scalyr agent.

Home Page: https://scalyr.github.io/helm-scalyr/

License: Apache License 2.0

Shell 47.21% Mustache 52.79%
helm helm-chart k8s kubernetes monitoring

helm-scalyr's People

Contributors

alesnovak-s1 avatar arthurkamalov avatar dependabot[bot] avatar dlobue avatar dploeger avatar jmakar-s1 avatar justinb-shipt avatar kami avatar scalp42 avatar tomaz-s1 avatar xdvpser avatar yuri-1987 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

helm-scalyr's Issues

".Values.volumeMounts" not used inside Daemonset/Deployment Chart Templates

Hello everyone,

first, I want to thank you for all the time you already spent into this project!

Unfortunately, there seems to be a small bug inside the volumeMounts section of the daemonset.yaml and deployment.yaml chart templates.

For some reason .Values.volumes is used there instead of .Values.volumeMounts what makes it currently impossible, to add volume (mounts) via a values.yaml file.

It would be great, If this issue could be fixed some day.

Many thanks in advance!
Johannes

Latest agent image 2.2.3 does not work with EKS

I recently set about upgrading our old scalyr chart which we had manually downloaded and modified because at the time serviceAccount annotations were not supported. However, attempting to use the latest chart with the 2.2.3 image gives me this error:

Warning FailedCreate 2s daemonset-controller Error creating: Internal error occurred: failed calling webhook "pods.kube-secrets-init.adm
ission.doit-intl.com": failed to call webhook: an error on the server ("{"kind":"AdmissionReview","apiVersion":"admission.k8s.io/v1beta1","response":{
"uid":"c5b44feb-95e6-46a2-b264-490e01c7e805","allowed":false,"status":{"metadata":{},"status":"Failure","message":"could not mutate object: failed to mutate pod: : cannot download manifest for image: Get \"https://index.docker.io/v2/scalyr/scalyr-k8s-agent/manifests/2.2.3\\\": http: non-successful response (status=404 body=\"{\\\"errors\\\":[{\\\"code\\\":\\\"MANIFEST_UNKNOWN\\\",\\\"message\\\":\\\"OCI index found, but accept header does not support OCI indexes\\\"}]}\\n\")"}}}") has prevented the request from succeeding

If I change my values file to set image.tag to the older version of 2.1.3, the problem goes away. We use kube-secrets-init to allow use of parameter store for secret values, so it is essential they work together (I have a second problem with this, but I will file this under a different issue).

BUG: Using `scalyr.config` produces error

Problem

Using scalyr.config produces following error:

Error: UPGRADE FAILED: YAML parse error on scalyr-agent/templates/configmap.yaml: error converting YAML to JSON: yaml: line 31: did not find expected key
helm.go:88: [debug] error converting YAML to JSON: yaml: line 31: did not find expected key
YAML parse error on scalyr-agent/templates/configmap.yaml
helm.sh/helm/v3/pkg/releaseutil.(*manifestFile).sort
	helm.sh/helm/v3/pkg/releaseutil/manifest_sorter.go:146
helm.sh/helm/v3/pkg/releaseutil.SortManifests
	helm.sh/helm/v3/pkg/releaseutil/manifest_sorter.go:106
helm.sh/helm/v3/pkg/action.(*Configuration).renderResources
	helm.sh/helm/v3/pkg/action/action.go:165
helm.sh/helm/v3/pkg/action.(*Upgrade).prepareUpgrade
	helm.sh/helm/v3/pkg/action/upgrade.go:231
helm.sh/helm/v3/pkg/action.(*Upgrade).RunWithContext
	helm.sh/helm/v3/pkg/action/upgrade.go:140
main.newUpgradeCmd.func2
	helm.sh/helm/v3/cmd/helm/upgrade.go:200
github.com/spf13/cobra.(*Command).execute
	github.com/spf13/[email protected]/command.go:856
github.com/spf13/cobra.(*Command).ExecuteC
	github.com/spf13/[email protected]/command.go:974
github.com/spf13/cobra.(*Command).Execute
	github.com/spf13/[email protected]/command.go:902
main.main
	helm.sh/helm/v3/cmd/helm/helm.go:87
runtime.main
	runtime/proc.go:225
runtime.goexit
	runtime/asm_amd64.s:1371
UPGRADE FAILED
main.newUpgradeCmd.func2
	helm.sh/helm/v3/cmd/helm/upgrade.go:202
github.com/spf13/cobra.(*Command).execute
	github.com/spf13/[email protected]/command.go:856
github.com/spf13/cobra.(*Command).ExecuteC
	github.com/spf13/[email protected]/command.go:974
github.com/spf13/cobra.(*Command).Execute
	github.com/spf13/[email protected]/command.go:902
main.main
	helm.sh/helm/v3/cmd/helm/helm.go:87
runtime.main
	runtime/proc.go:225
runtime.goexit
	runtime/asm_amd64.s:1371

Chart version: 0.2.19

no RBAC for rollouts

The scalyr agent now supports argo rollouts BUT the helm chart doesn't properly setup the clusterrole to allow access to rollouts.

ERROR [monitor:kubernetes_monitor] [scalyr_agent.builtin_monitors.kubernetes_monitor:1580] An error of type perm_error was seen when warming container 67ee3037d3db697eb4dd577ee749b04434f3ae059d782847a8faa793fa5538dd.  Exception was You don't have permission to access /apis/argoproj.io/v1alpha1/namespaces/default/rollouts/service1.  Please ensure you have correctly configured the RBAC permissions for the scalyr-agent's service account: Traceback (most recent call last):
  File "/usr/share/scalyr-agent-2/py/scalyr_agent/builtin_monitors/kubernetes_monitor.py", line 1611, in run_and_propagate
    self.__k8s_cache.pod(
  File "/usr/share/scalyr-agent-2/py/scalyr_agent/monitor_utils/k8s.py", line 1625, in pod
    return self._pods_cache.lookup(
  File "/usr/share/scalyr-agent-2/py/scalyr_agent/monitor_utils/k8s.py", line 802, in lookup
    result = self._update_object(
  File "/usr/share/scalyr-agent-2/py/scalyr_agent/monitor_utils/k8s.py", line 655, in _update_object
    result = self._processor.process_object(k8s, obj, query_options=query_options)
  File "/usr/share/scalyr-agent-2/py/scalyr_agent/monitor_utils/k8s.py", line 954, in process_object
    controller = self._get_controller_from_owners(
  File "/usr/share/scalyr-agent-2/py/scalyr_agent/monitor_utils/k8s.py", line 917, in _get_controller_from_owners
    parent_controller = self._controllers.lookup(
  File "/usr/share/scalyr-agent-2/py/scalyr_agent/monitor_utils/k8s.py", line 802, in lookup
    result = self._update_object(
  File "/usr/share/scalyr-agent-2/py/scalyr_agent/monitor_utils/k8s.py", line 654, in _update_object
    obj = k8s.query_object(kind, namespace, name, query_options=query_options)
  File "/usr/share/scalyr-agent-2/py/scalyr_agent/monitor_utils/k8s.py", line 2293, in query_object
    return self.query_api_with_retries(
  File "/usr/share/scalyr-agent-2/py/scalyr_agent/monitor_utils/k8s.py", line 2023, in query_api_with_retries
    return self.query_api(query)
  File "/usr/share/scalyr-agent-2/py/scalyr_agent/monitor_utils/k8s.py", line 2204, in query_api
    raise K8sApiAuthorizationException(
scalyr_agent.monitor_utils.k8s.K8sApiAuthorizationException: You don't have permission to access /apis/argoproj.io/v1alpha1/namespaces/default/rollouts/service1.  Please ensure you have correctly configured the RBAC permissions for the scalyr-agent's service account

Transfer Scalyr Agent Artifacthub entry

As I was maintaining this I created an entry over at ArtifactHub. I'd like to transfer that unmaintained entry to you. If you don't want to do that, I'll remove it from Artifacthub. I'd recommend keeping it as ArtifactHub is the number one source to find Helm Charts.

Latest chart does not support apiKey with parameter store

I recently set about upgrading our old scalyr chart which we had manually downloaded and modified because at the time serviceAccount annotations were not supported.

While serviceAccount annotations are now working, obtaining the apiKey from parameter store is not. We are used to our old manual deployment having this environment variable value:

    - name: SCALYR_API_KEY
      value: arn:aws:ssm:us-east-1:<account-id-redacted>:parameter/<path-to-key-redacted>

Then a mutating webhook for kube-secrets-init changes this to the actual parameter store value. However, there appears to be no way to do this in practice. The templates are hardcoded to use a secret, even though the README talks about using parameter store instead of a secret. I don't see a way to do this with the current chart.

Add the ability to configure PriorityClass

scalyr-agent gets a PriorityClass of default. When there's a cluster upgrade, there's a chance that the agent might not get scheduled on a Node because of all the resources already accounted for. Then the Pod is left in a pending state and you won't see any logs from Pods on that Node. Then manual intervention is needed. If scalyr-agent can be given a higher priority, it can be scheduled first and one will hopefully not run into this issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.