step1 - setup file cluster.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: eksctl.io/v1alpha5 | |
kind: ClusterConfig | |
metadata: | |
name: my-cluster-ec2 | |
region: ap-southeast-1 | |
nodeGroups: | |
- name: ng-1 | |
instanceType: t3.small | |
desiredCapacity: 3 | |
ssh: | |
publickeyName: the1-cpp | |
cloudWatch: | |
clusterLogging: | |
enableTypes: ["*"] |
step2 - enable cloudwatch log with eksctl
eksctl utils update-cluster-logging --config-file ((cluster-config.file.yaml)) --approve
loggin in aws console
CloudWatch -> log groups -> /aws/eks
disable cloudwatch logging
eksctl utils update-cluster-logging --name=((EKS-course-cluster-name)) --disable-types all --approve
Top comments (0)