Skip to content
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
6 changes: 3 additions & 3 deletions charts/flyte-binary/eks-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ configuration:
s3:
region: "<AWS-REGION-CODE>"
authType: "iam"
#For logging to work, you need to setup an agent.
#For logging to work, you need to setup an agent.
# Learn more: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Container-Insights-EKS-logs.html
logging:
level: 5
plugins:
cloudwatch:
enabled: true
templateUri: |-
https://console.aws.amazon.com/cloudwatch/home?region=<AWS_REGION>#logEventViewer:group=/aws/eks/<EKS_CLUSTER_NAME>/cluster;stream=var.log.containers.{{ .podName }}_{{ .namespace }}_{{ .containerName }}-{{ .containerId }}.log
region: "<AWS_REGION>" # replace with your AWS region, e.g. us-east-1
logGroup: "/aws/eks/<EKS_CLUSTER_NAME>/cluster" # replace <EKS_CLUSTER_NAME> with your cluster name
# To configure auth, refer to https://docs.flyte.org/en/latest/deployment/configuration/auth_setup.html
auth:
enabled: false
Expand Down
6 changes: 3 additions & 3 deletions charts/flyte-binary/eks-starter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ configuration:
s3:
region: "<AWS-REGION-CODE>"
authType: "iam"
#For logging to work, you need to setup an agent.
#For logging to work, you need to setup an agent.
# Learn more: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Container-Insights-EKS-logs.html
logging:
level: 5
plugins:
cloudwatch:
enabled: true
templateUri: |-
https://console.aws.amazon.com/cloudwatch/home?region=<AWS_REGION>#logEventViewer:group=/aws/eks/<EKS_CLUSTER_NAME>/cluster;stream=var.log.containers.{{ .podName }}_{{ .namespace }}_{{ .containerName }}-{{ .containerId }}.log
region: "<AWS_REGION>" # replace with your AWS region, e.g. us-east-1
logGroup: "/aws/eks/<EKS_CLUSTER_NAME>/cluster" # replace <EKS_CLUSTER_NAME> with your cluster name
# To configure auth, refer to https://docs.flyte.org/en/latest/deployment/configuration/auth_setup.html
auth:
enabled: false
Expand Down
7 changes: 6 additions & 1 deletion charts/flyte-binary/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,12 @@ kubernetes-template-uri: {{ required "Template URI required for Kubernetes loggi
{{- end }}
cloudwatch-enabled: {{ .cloudwatch.enabled }}
{{- if .cloudwatch.enabled }}
cloudwatch-template-uri: {{ required "Template URI required for CloudWatch logging plugin" .cloudwatch.templateUri }}
{{- if .cloudwatch.templateUri }}
cloudwatch-template-uri: {{ .cloudwatch.templateUri }}
{{- else }}
cloudwatch-region: {{ required "Either cloudwatch.templateUri or cloudwatch.region is required when CloudWatch logging is enabled" .cloudwatch.region }}
cloudwatch-log-group: {{ required "cloudwatch.logGroup is required when cloudwatch.region is set" .cloudwatch.logGroup }}
{{- end }}
{{- end }}
stackdriver-enabled: {{ .stackdriver.enabled }}
{{- if .stackdriver.enabled }}
Expand Down
9 changes: 9 additions & 0 deletions charts/flyte-binary/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,16 @@ configuration:
# cloudwatch Configure logging plugin to have logs visible in CloudWatch
cloudwatch:
enabled: false
# templateUri Provide a fully custom CloudWatch URL template. Supports Go template variables
# such as {{ .podName }}, {{ .namespace }}, {{ .containerName }}, {{ .containerId }}.
# When set, takes precedence over region and logGroup.
templateUri: ""
# region AWS region where CloudWatch logs are stored (e.g. us-east-1).
# Used to construct the CloudWatch URL when templateUri is not set.
region: ""
# logGroup CloudWatch log group name (e.g. /aws/eks/my-cluster/cluster).
# Used to construct the CloudWatch URL when templateUri is not set.
logGroup: ""
# stackdriver Configure logging plugin to have logs visible in StackDriver
stackdriver:
enabled: false
Expand Down