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

Support for OKE Infra and Service Log Collection #100

Open
wants to merge 9 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
40 changes: 33 additions & 7 deletions charts/logan/templates/discovery-cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,20 @@ metadata:
spec:
schedule: {{ .Values.k8sDiscovery.objects.cronSchedule | quote }}
startingDeadlineSeconds: 120
concurrencyPolicy: Replace
concurrencyPolicy: Forbid
successfulJobsHistoryLimit: {{ .Values.k8sDiscovery.objects.successfulJobsHistoryLimit }}
failedJobsHistoryLimit: {{ .Values.k8sDiscovery.objects.failedJobsHistoryLimit }}
jobTemplate:
spec:
backoffLimit: {{ .Values.k8sDiscovery.objects.backoffLimit }}
backoffLimit: 0 #{{ .Values.k8sDiscovery.objects.backoffLimit }} #TODO: should we hardcode to 0 now; current default is 2
paliwalparitosh marked this conversation as resolved.
Show resolved Hide resolved
# Specifies the number of retries before marking this job failed. Defaults to 6
activeDeadlineSeconds: 590 # TODO: Max time to finish a job: ~10 minutes; 10 seconds buffer for K8s to kill the job before next one is ready to start
# Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer.
# If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again.
ttlSecondsAfterFinished: 3600 # TODO: Check if this helps in avoiding deletion of timed out pods
template:
spec:
restartPolicy: {{ .Values.k8sDiscovery.objects.restartPolicy }}
restartPolicy: "Never" #{{ .Values.k8sDiscovery.objects.restartPolicy }} #TODO: Should hardcode to never
serviceAccountName: {{ $serviceAccount }}
{{- if .Values.image.imagePullSecrets }}
imagePullSecrets:
Expand Down Expand Up @@ -83,10 +88,6 @@ spec:
- --oci_domain
- {{ .Values.ociDomain }}
{{- end }}
{{- if .Values.k8sDiscovery.objects.discoveryMode }}
- --discovery
- {{ .Values.k8sDiscovery.objects.discoveryMode }}
{{- end }}
{{- if .Values.k8sDiscovery.objects.log_format }}
- --log_format
- {{ .Values.k8sDiscovery.objects.log_format }}
Expand All @@ -107,6 +108,31 @@ spec:
{{- if .Values.k8sDiscovery.objects.collect_warning_events_only }}
- --collect_warning_events_only
{{- end }}
{{- /* Infra Discovery */}}
{{- if eq .Values.k8sDiscovery.infra.enable_service_log true }}
- --enable_service_log
{{- if eq .Values.k8sDiscovery.infra.probe_all_compartments true }}
{{- if .Values.k8sDiscovery.infra.tenancy_ocid }}
- --probe_all_compartments
- --tenancy_ocid
- {{ .Values.k8sDiscovery.infra.tenancy_ocid | quote }}
{{- else -}}
{{- required "tenancy ocid must be set when probe_all_compartments is set as true" .Values.k8sDiscovery.infra.tenancy_ocid }}
{{- end }}
{{- end }}
{{- if .Values.k8sDiscovery.infra.oci_tags_base64 }}
- --oci_tags_base64
- {{ .Values.k8sDiscovery.infra.oci_tags_base64 }}
{{- end }}
{{- if .Values.k8sDiscovery.infra.rms_template_base64_encoded }}
paliwalparitosh marked this conversation as resolved.
Show resolved Hide resolved
- --rms_template_base64_encoded
- {{ .Values.k8sDiscovery.infra.rms_template_base64_encoded }}
{{- end }}
{{- if .Values.k8sDiscovery.infra.stack_operation_timeout }}
- --stack_operation_timeout
- {{ .Values.k8sDiscovery.infra.stack_operation_timeout | quote }}
{{- end }}
paliwalparitosh marked this conversation as resolved.
Show resolved Hide resolved
{{- end }}
{{- /* optional kubernetes cluster configuration */}}
{{- if .Values.k8sDiscovery.kubeClientOptions.kubernetes_url }}
- --kubernetes_url
Expand Down
24 changes: 21 additions & 3 deletions charts/logan/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,7 @@ fluentd:
# In case of container log (/var/log/containers/*.log), exclude the corresponding log path in "genericContainerLogs" section.
customFluentdConf: |

# TODO: Should I get rid of following config section: kubernetesObjects
paliwalparitosh marked this conversation as resolved.
Show resolved Hide resolved
# -- Configuration for collecting Kubernetes Object information.
# Supported objects are Node, Pod, Namespace, Event, DaemonSet, ReplicaSet, Deployment, StatefulSet, Job, CronJob
kubernetesObjects:
Expand Down Expand Up @@ -695,7 +696,7 @@ k8sDiscovery:
# restartPolicy: "Never" or "OnFailure"
# Failed containers will be removed by job in case restartPolicy is not set as Never
# Ref - https://github.com/kubernetes/kubernetes/issues/74848
restartPolicy: "Never"
# restartPolicy: "Never"
# successfulJobsHistoryLimit: specify how many completed jobs should be kept
successfulJobsHistoryLimit: 3
# failedJobsHistoryLimit: specify how many failed jobs should be kept
Expand All @@ -720,8 +721,25 @@ k8sDiscovery:
# Default: All logs are collected and sent to OCI logging analytics for processing
collect_warning_events_only: false
# backoffLimit: Specify the number of retries before considering a Job as failed
backoffLimit: 2
# kubernetes: kubernetes cluster related inputs for kubernetes disocvery job
# backoffLimit: 1
infra:
# Enable Logs collection for OKE's OCI infra components - LB, OKE Cluster control plane, Subnet logs etc
# Not supported for Non OKE clusters
enable_service_log: false
# Discovers OKE Node Pools in all compartments of tenant
# when false, Node Pools present in OKE's compartment are discovered
probe_all_compartments: false
# tenancy ocid - must be provided if probe_all_compartments is set as true
tenancy_ocid:
# Base64 encoded string of OCI freeform and defined tags
# expected/example format: {"definedTags":{"Oracle-Recommended-Tags.ResourceOwner":"testOwner","Oracle-Recommended-Tags.ResourceUsage":"testUsage","test.key":"testOwner"},"freeformTags":{"project":"logan","test_number":"1"}}
oci_tags_base64:
# This is a helper stack which is used to enable service logs collection by creating a Service connector and Enable Logging for discovered OCI service components
# [Users are usually not expected to alter this]
rms_template_base64_encoded: UEsDBBQAAAAIAKtzglkjIsV55A0AAP5CAAAOABwAZmlsdGVyLWxvZ3MucHlVVAkAA+p2TWdbf01ndXgLAAEE9QEAAAQUAAAA7Vxtb9s4Ev7uX8F1sC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e0cEi/AER8qgYOVlte3ACPWNV66zoVumU1LiTazZgkONPCsKe8uI6XeDNJmz9fqP4lZjMvi+gNQSwECHgMUAAAACACrc4JZIyLFeeQNAAD+QgAADgAYAAAAAAABAAAApIEAAAAAZmlsdGVyLWxvZ3MucHlVVAUAA+p2TWd1eAsAAQT1AQAABBQAAABQSwECHgMUAAAACABAa4pZ/T8TcakGAAApHgAABwAYAAAAAAABAAAApIEsDgAAbWFpbi50ZlVUBQADEPRXZ3V4CwABBPUBAAAEFAAAAFBLAQIeAxQAAAAIAKqZelmybFiEOQEAAJwCAAALABgAAAAAAAEAAACkgRYVAABwcm92aWRlci50ZlVUBQADd9BFZ3V4CwABBPUBAAAEFAAAAFBLAQIeAxQAAAAIAFuBelnJwlbQRAAAAEcAAAAKABgAAAAAAAEAAACkgZQWAABvdXRwdXRzLnRmVVQFAAO2pUVndXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAdH+JWQptua8yAQAAtAQAAAkAGAAAAAAAAQAAAKSBHBcAAGlucHV0cy50ZlVUBQADk8ZWZ3V4CwABBPUBAAAEFAAAAFBLAQIeAxQAAAAIACuWelmiCq6u+gAAAGMBAAAIABgAAAAAAAEAAACkgZEYAABkZWJ1Zy50ZlVUBQAD2spFZ3V4CwABBPUBAAAEFAAAAFBLBQYAAAAABgAGAN8BAADNGQAAAAA=
# Maximum amount of time (in seconds) the job should wait while checking the status of stack APPLY operation. Default: 300
stack_operation_timeout: 300
# kubernetes: kubernetes cluster related inputs for kubernetes discovery job
kubeClientOptions:
# kubernetes_url: Kubernetes API server URL.
kubernetes_url:
Expand Down
2 changes: 1 addition & 1 deletion charts/oci-onm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ oci-onm-logan:
kubernetesClusterID: "{{ .Values.global.kubernetesClusterID }}"
kubernetesClusterName: "{{ .Values.global.kubernetesClusterName }}"
image:
url: container-registry.oracle.com/oci_observability_management/oci-la-fluentd-collector:1.5.2
url: iad.ocir.io/id3m3bqjn6oc/oci-la-fluentd-collector-dev:discovery-1.1.0.2 #DO-NOT-MERGE
# Go to OCI Logging Analytics Administration, click Service Details, and note the namespace value.
ociLANamespace:
# OCI Logging Analytics Default Log Group OCID
Expand Down
36 changes: 21 additions & 15 deletions terraform/modules/helm/helm-inputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -94,35 +94,41 @@ variable "opt_deploy_metric_server" {
}

####
## livelab
## OCI Client Config
####

# Option to deploy mushop specific values.yaml (inputs)
variable "deploy_mushop_config" {
type = bool
default = false
}

# Service Account to be used when working on livelab cluster
variable "livelab_service_account" {
# OCI domain
variable "oci_domain" {
type = string
default = ""
default = null
}

####
## OCI Client Config
## Discovery Configuration
####

# OCI domain
variable "oci_domain" {
type = string
default = null
# Enable service logs collection for OKE infra components
variable "enable_service_log" {
type = bool
default = false
}

# OCI Tags
variable "tags" {
type = object({ freeformTags = map(string), definedTags = map(string) })
default = { "freeformTags" = {}, "definedTags" = {} }
}

####
## Others
####

variable "LOGAN_ENDPOINT" {
description = "Logging Analytics Endpoint."
type = string
default = null
}

# Save data resources in local_file for debug purposes
variable "debug" {
type = bool
Expand Down
4 changes: 3 additions & 1 deletion terraform/modules/helm/helm-outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ locals {
"--set oci-onm-logan.ociLANamespace=${var.oci_la_namespace}",
"--set oci-onm-logan.ociLAClusterEntityID=${var.oci_la_cluster_entity_ocid}",
"--set oci-onm-mgmt-agent.deployMetricServer=${var.opt_deploy_metric_server}",
"--set oci-onm-mgmt-agent.mgmtagent.installKeyFileContent=${var.mgmt_agent_install_key_content}"
"--set oci-onm-mgmt-agent.mgmtagent.installKeyFileContent=${var.mgmt_agent_install_key_content}",
"--set oci-onm-logan.k8sDiscovery.infra.enable_service_log=${var.enable_service_log}",
"--set oci-onm-logan.k8sDiscovery.infra.oci_tags_base64=${base64encode(jsonencode(var.tags))}"
])

cmd_3_layer_1 = var.oci_domain == null ? local.cmd_3_layer_0 : "${local.cmd_3_layer_0} --set oci-onm-logan.ociDomain=${var.oci_domain}"
Expand Down
Loading