Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deploy(helm): fix agent daemonset & config #270

Merged
merged 1 commit into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions deploy/helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ type: application
annotations:
category: Analytics
licenses: Apache-2.0
version: 1.0.1
appVersion: 1.0.0
version: 1.0.2
appVersion: 1.0.0-rc.1
icon: https://img.shields.io/github/v/tag/alibaba/kubeskoop
keywords:
- kubeskoop
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ metadata:
data:
config.yaml: |-
debugmode: {{ .Values.agent.debug }}
port: {{ .Values.agent.port }}
port: {{ .Values.agent.config.port }}
enableController: {{ .Values.controller.enabled }}
metrics:
probes:
{{- toYaml .Values.config.metricProbes | nindent 6 }}
Expand Down
101 changes: 55 additions & 46 deletions deploy/helm/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
image: "{{ .btfhack.repository }}:{{ .btfhack.tag }}"
imagePullPolicy: {{ .btfhack.imagePullPolicy }}
volumeMounts:
- name: bpfdir
- name: btf-rawdata
mountPath: /etc/net-exporter/btf
- mountPath: /boot/
name: boot
Expand All @@ -41,40 +41,44 @@ spec:
- /etc/net-exporter/btf/
{{- end }}
containers:
- name: inspector
image: "{{ .image.repository }}:{{ .image.tag }}"
imagePullPolicy: {{ .image.imagePullPolicy }}
env:
- name: INSPECTOR_NODENAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
volumeMounts:
- name: configvolume
mountPath: /etc/config/
- name: bpfdir
mountPath: /etc/net-exporter/btf
- name: procfs
mountPath: /proc
- mountPath: /run/containerd/containerd.sock
name: runtimeendpoint
- mountPath: /var/run/
name: rundir
- mountPath: /sys/fs/bpf
name: bpfmap
mountPropagation: HostToContainer
- mountPath: /sys/kernel/debug
name: bpfdebugfs
mountPropagation: HostToContainer
- mountPath: /etc/node-hostname
name: hostname
command:
- /bin/inspector
- server
securityContext:
privileged: true
resources:
{{- toYaml .resources | nindent 12 }}
- name: inspector
image: "{{ .image.repository }}:{{ .image.tag }}"
imagePullPolicy: {{ .image.imagePullPolicy }}
env:
- name: INSPECTOR_NODENAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
volumeMounts:
- name: config-volume
mountPath: /etc/config/
- name: btf-rawdata
mountPath: /etc/net-exporter/btf
- name: proc
mountPath: /proc
- mountPath: /run/containerd/
name: containerd
- mountPath: /var/run/
name: dockershim
- mountPath: /sys/fs/bpf
name: bpf-maps
mountPropagation: HostToContainer
- mountPath: /sys/fs/cgroup
name: cgroup
mountPropagation: HostToContainer
- mountPath: /sys/kernel/debug
name: bpf-events
mountPropagation: HostToContainer
- mountPath: /etc/node-hostname
name: hostname
command:
- /bin/inspector
- server
- -d
securityContext:
privileged: true
resources:
{{- toYaml .resources | nindent 12 }}
{{- with .nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand All @@ -84,32 +88,37 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
- name: procfs
- name: proc
hostPath:
path: /proc
- name: runtimeendpoint
hostPath:
path: {{ .config.runtimeEndpoint }}
- name: boot
- name: containerd
hostPath:
path: /boot/
- name: rundir
path: /run/containerd/
- name: dockershim
hostPath:
path: /var/run/
- hostPath:
path: /sys/fs/bpf
type: DirectoryOrCreate
name: bpfmap
name: bpf-maps
- name: boot
hostPath:
path: /boot
type: DirectoryOrCreate
- hostPath:
path: /sys/fs/cgroup
type: DirectoryOrCreate
name: cgroup
- hostPath:
path: /sys/kernel/debug
name: bpfdebugfs
name: bpf-events
- name: hostname
hostPath:
path: /etc/hostname
type: FileOrCreate
- name: configvolume
- name: config-volume
configMap:
name: kubeskoop-config
- name: bpfdir
- name: btf-rawdata
emptyDir: {}
{{- end }}
10 changes: 4 additions & 6 deletions deploy/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ config:
- name: tcp
- name: tcpext
- name: udp
- name: kernellatency
- name: packetloss
- name: flow
args:
Expand All @@ -28,10 +27,9 @@ agent:
config:
debug: false
port: 9102
runtimeEndpoint: /run/containerd/containerd.sock
image:
repository: kubeskoop/agent
tag: v1.0.0
tag: v1.0.0-rc.1
imagePullPolicy: IfNotPresent
resources:
limits:
Expand All @@ -43,7 +41,7 @@ agent:
btfhack:
enabled: true
repository: kubeskoop/agent
tag: v1.0.0
tag: v1.0.0-rc.1
imagePullPolicy: IfNotPresent
nodeSelector: {}
tolerations: {}
Expand All @@ -56,7 +54,7 @@ controller:
lokiEndpoint: http://loki-service:3100
image:
repository: kubeskoop/controller
tag: v1.0.0
tag: v1.0.0-rc.1
imagePullPolicy: IfNotPresent
resources:
limits:
Expand Down Expand Up @@ -85,7 +83,7 @@ webconsole:
password: kubeskoop
image:
repository: kubeskoop/controller
tag: v1.0.0
tag: v1.0.0-rc.1
imagePullPolicy: IfNotPresent
resources:
limits:
Expand Down
Loading