Skip to content

Commit

Permalink
Expose nodeName field in node-agent pod spec (#145)
Browse files Browse the repository at this point in the history
Signed-off-by: Jeffrey Friedman <20387583+jeffreyfriedman@users.noreply.github.com>
  • Loading branch information
jeffreyfriedman authored May 10, 2024
1 parent 47edc14 commit d74bbe9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stable/ksoc-plugins/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: ksoc-plugins
version: 1.4.13
version: 1.4.14
description: A Helm chart to run the KSOC plugins
home: https://ksoc.com
icon: https://ksoc.com/hubfs/Ksoc-logo.svg
Expand All @@ -17,7 +17,7 @@ annotations:
# Possible kind options are added, changed, deprecated, removed, fixed and security.
artifacthub.io/changes: |
- kind: added
description: KSOC runtime - added user-configurable PriorityClass
description: KSOC runtime - expose nodeName field in pod spec
artifacthub.io/containsSecurityUpdates: "false"
artifacthub.io/links: |
- name: source
Expand Down
1 change: 1 addition & 0 deletions stable/ksoc-plugins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,7 @@ The command removes all the Kubernetes components associated with the chart and
| ksocNodeAgent.exporter.resources.requests.memory | string | `"128Mi"` | |
| ksocNodeAgent.image.repository | string | `"us.gcr.io/ksoc-public/ksoc-node-agent"` | |
| ksocNodeAgent.image.tag | string | `"v0.0.8"` | |
| ksocNodeAgent.nodeName | string | `""` | |
| ksocNodeAgent.nodeSelector | object | `{}` | |
| ksocNodeAgent.reachableVulnerabilitiesEnabled | bool | `false` | |
| ksocNodeAgent.tolerations | list | `[]` | |
Expand Down
3 changes: 3 additions & 0 deletions stable/ksoc-plugins/templates/ksoc-node-agent/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ spec:
name: unix-socket

dnsPolicy: ClusterFirst
{{ if .Values.ksocNodeAgent.nodeName -}}
nodeName: {{ .Values.ksocNodeAgent.nodeName }}
{{ end -}}
{{- with .Values.ksocNodeAgent.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
Expand Down
1 change: 1 addition & 0 deletions stable/ksoc-plugins/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ ksocNodeAgent:
memory: 128Mi
ephemeral-storage: 100Mi
nodeSelector: {}
nodeName: ""
tolerations: []

# -- Falco Daemonset configuration. The tolerations and resources are what are provided by default.
Expand Down

0 comments on commit d74bbe9

Please sign in to comment.