Skip to content

Logan 22004 #111

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion charts/logan/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apiVersion: v2
name: oci-onm-logan
description: Charts for sending Kubernetes platform logs, compute logs, and Kubernetes Objects information to OCI Logging Analytics.
type: application
version: 3.5.3
version: 3.5.4
appVersion: "3.0.0"

dependencies:
Expand Down
2 changes: 1 addition & 1 deletion charts/logan/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@
{{- else -}}
{{- "UNDEFINED" -}}
{{- end -}}
{{- end -}}
{{- end -}}
4 changes: 4 additions & 0 deletions charts/logan/templates/discovery-cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ spec:
spec:
restartPolicy: {{ .Values.k8sDiscovery.objects.restartPolicy }}
serviceAccountName: {{ $serviceAccount }}
{{- if .Values.tolerations }}
tolerations:
{{- toYaml .Values.tolerations | nindent 12 }}
{{- end }}
{{- if .Values.image.imagePullSecrets }}
imagePullSecrets:
- name: {{ .Values.image.imagePullSecrets }}
Expand Down
3 changes: 3 additions & 0 deletions charts/logan/templates/fluentd-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ spec:
effect: NoSchedule
- key: node-role.kubernetes.io/control-plane
effect: NoSchedule
{{- if .Values.tolerations }}
{{- toYaml .Values.tolerations | nindent 6 }}
{{- end }}
{{- if $imagePullSecrets }}
imagePullSecrets:
- name: {{ .Values.image.imagePullSecrets }}
Expand Down
4 changes: 4 additions & 0 deletions charts/logan/templates/fluentd-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ spec:
version: v1
spec:
serviceAccountName: {{ include "logan.serviceAccount" . }}
{{- if .Values.tolerations }}
tolerations:
{{- toYaml .Values.tolerations | nindent 8 }}
{{- end }}
{{- if $imagePullSecrets }}
imagePullSecrets:
- name: {{ .Values.image.imagePullSecrets }}
Expand Down
3 changes: 3 additions & 0 deletions charts/logan/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ kubernetesClusterName:
# e.g. ocid1.loganalyticsentity.oc1.phx.amaaaaaabulluiqabqeq4delvhdlmd7aqcjrdla57n2szsxyz7pfdvnhwuua
ociLAClusterEntityID:

# Add custom Tolerations for resources
tolerations:

# -- Kubernetes Security Context privileged flag
# Default: 'false'. This is not a required for OKE clusters.
# In Kubernetes environments where SELinux mode is enforced, set this flag to 'true' to allow fluentd pods to access log files.
Expand Down
2 changes: 1 addition & 1 deletion charts/mgmt-agent/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 3.0.4
version: 3.0.5

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 1 addition & 1 deletion charts/mgmt-agent/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
{{- else -}}
{{- "UNDEFINED" -}}
{{- end -}}
{{- end -}}
{{- end -}}
4 changes: 4 additions & 0 deletions charts/mgmt-agent/templates/metric_server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ spec:
labels:
k8s-app: metrics-server
spec:
{{- if .Values.tolerations }}
tolerations:
{{- toYaml .Values.tolerations | nindent 8 }}
{{- end }}
containers:
- args:
- --cert-dir=/tmp
Expand Down
4 changes: 4 additions & 0 deletions charts/mgmt-agent/templates/mgmt-agent-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ spec:
labels:
app: {{ include "mgmt-agent.resourceNamePrefix" . }}-mgmt-agent
spec:
{{- if .Values.tolerations }}
tolerations:
{{- toYaml .Values.tolerations | nindent 8 }}
{{- end }}
securityContext:
runAsUser: {{ default 0 .Values.deployment.security.runAsUser }}
runAsGroup: {{ default 0 .Values.deployment.security.runAsGroup }}
Expand Down
4 changes: 4 additions & 0 deletions charts/mgmt-agent/templates/mgmt-agent-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ spec:
labels:
app: {{ include "mgmt-agent.resourceNamePrefix" . }}-mgmt-agent
spec:
{{- if .Values.tolerations }}
tolerations:
{{- toYaml .Values.tolerations | nindent 8 }}
{{- end }}
securityContext:
runAsUser: {{ default 0 .Values.deployment.security.runAsUser }}
runAsGroup: {{ default 0 .Values.deployment.security.runAsGroup }}
Expand Down
3 changes: 3 additions & 0 deletions charts/mgmt-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ serviceAccount: "{{ .Values.global.resourceNamePrefix }}"
# -- By default, metric server will be deployed and used by Management Agent to collect metrics. You can set this to false if you already have metric server installed on your cluster
deployMetricServer: true

# Add custom Tolerations for resources
tolerations:

# Kubernetes Cluster details to monitor
kubernetesCluster:
# -- OCI Compartment Id to push Kubernetes Monitoring metrics. If not specified default is same as Agent compartment
Expand Down
4 changes: 2 additions & 2 deletions charts/oci-onm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ dependencies:
repository: "file://../common"
condition: oci-onm-common.enabled
- name: oci-onm-logan
version: "3.5.3"
version: "3.5.4"
repository: "file://../logan"
condition: oci-onm-logan.enabled
- name: oci-onm-mgmt-agent
version: "3.0.4"
version: "3.0.5"
repository: "file://../mgmt-agent"
condition: oci-onm-mgmt-agent.enabled
4 changes: 4 additions & 0 deletions charts/oci-onm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,16 @@ oci-onm-logan:
# Format: <oci-region>.oci.<oci_domain>
# Example: us-ashburn-1.oci.oraclecloud.com
ociDomain:
# Add custom Tolerations for resources
tolerations:

oci-onm-mgmt-agent:
oci-onm-common:
enabled: false
namespace: "{{ .Values.global.namespace }}"
serviceAccount: "{{ .Values.global.resourceNamePrefix }}"
# Add custom Tolerations for resources
tolerations:
kubernetesCluster:
name: "{{ .Values.global.kubernetesClusterName }}"
mgmtagent:
Expand Down