step1 - setup file cluster.yaml
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)