Skip to content

Commit

Permalink
Merge pull request #45 from deepflowio/feature-watcher
Browse files Browse the repository at this point in the history
add config K8S_WATCH_POLICY
  • Loading branch information
LYootsz authored Sep 25, 2024
2 parents f6d771f + 40adbc3 commit dec166b
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 12 deletions.
4 changes: 2 additions & 2 deletions charts/deepflow-agent/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ description: An automated observability platform for cloud-native developers.
name: deepflow-agent
engine: gotpl
type: application
version: 6.6.010
appVersion: "6.6.4"
version: 6.6.011
appVersion: "6.6.5"
kubeVersion: ">=1.16.0-0"
sources:
- https://github.com/deepflowio/deepflow
Expand Down
4 changes: 4 additions & 0 deletions charts/deepflow-agent/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ spec:
- name: CTRL_NETWORK_INTERFACE
value: "eth0"
{{- end }}
{{- if .Values.AgentWatchDisabled }}
- name: K8S_WATCH_POLICY
value: "watch-disabled"
{{- end }}
- name: K8S_POD_IP_FOR_DEEPFLOW
valueFrom:
fieldRef:
Expand Down
4 changes: 2 additions & 2 deletions charts/deepflow-agent/templates/watcher-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ spec:
# initialDelaySeconds: 5
# periodSeconds: 10
env:
- name: ONLY_WATCH_K8S_RESOURCE
value: "true"
- name: K8S_WATCH_POLICY
value: "watch-only"
{{- range .Values.env}}
- name: {{ .name }}
value: {{ .value }}
Expand Down
3 changes: 2 additions & 1 deletion charts/deepflow-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ deployComponent:
# - "watcher"
#
tke_sidecar: false
AgentWatchDisabled: false # Whether to disable the watch for Agent configured through daemonset

image:
repository: registry.cn-hongkong.aliyuncs.com/deepflow-ce/deepflow-agent
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
tag: v6.6.4
tag: v6.6.5

env: []

Expand Down
4 changes: 2 additions & 2 deletions charts/deepflow/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ description: An automated observability platform for cloud-native developers.
name: deepflow
engine: gotpl
type: application
version: 6.6.010
appVersion: "6.6.4"
version: 6.6.011
appVersion: "6.6.5"
kubeVersion: ">=1.16.0-0"
sources:
- https://github.com/deepflowio/deepflow
Expand Down
10 changes: 5 additions & 5 deletions charts/deepflow/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ global:
image:
server:
repository: "{{ .Values.global.image.repository }}/deepflow-server"
tag: v6.6.4
tag: v6.6.5
pullPolicy: "{{ .Values.global.image.pullPolicy }}"
app:
repository: "{{ .Values.global.image.repository }}/deepflow-app"
tag: v6.6.4
tag: v6.6.5
pullPolicy: "{{ .Values.global.image.pullPolicy }}"

imagePullSecrets: []
Expand Down Expand Up @@ -667,7 +667,7 @@ deepflow-agent:
repository: "{{ .Values.global.image.repository }}/deepflow-agent"
pullPolicy: "{{ .Values.global.image.pullPolicy }}"
# Overrides the image tag whose default is the chart appVersion.
tag: v6.6.4
tag: v6.6.5

imagePullSecrets: []
nameOverride: ""
Expand All @@ -679,7 +679,7 @@ deepflow-agent:
# - "watcher"
#
tke_sidecar: false

AgentWatchDisabled: false # Whether to disable the watch for Agent configured through daemonset
podAnnotations: {}
nodeIPInjection: true
podSecurityContext: {}
Expand Down Expand Up @@ -836,7 +836,7 @@ grafana:

extraInitContainers:
- name: init-custom-plugins
image: "{{ .Values.global.image.repository }}/deepflowio-init-grafana:v6.6.4"
image: "{{ .Values.global.image.repository }}/deepflowio-init-grafana:v6.6.5"
imagePullPolicy: "{{ tpl .Values.global.image.pullPolicy . }}"
volumeMounts:
- name: custom-plugins
Expand Down

0 comments on commit dec166b

Please sign in to comment.