kubectl 1.24 error: exec plugin: invalid apiVersion "client.authentication.k8s.io/v1alpha1"
AWS 2022. 6. 11. 19:49

eks로 만든 cluster를 kubectl이 config map을 로드하지 못할 경우 오랫만에 eks로 cluster를 만든 후 kubectl을 통해 aws의 kubernetes config를 불러 오려고 했는데 아래와 같이 오류가 났다. steven@steven-ubuntu:~$ kubectl version error: exec plugin: invalid apiVersion "client.authentication.k8s.io/v1alpha1" 찾아보니 kubectl 12.4.x 버전에서 eks와 연동해서 사용할 경우 발생하는 오류라고 한다. https://github.com/aws/aws-cli/issues/6920 대부분의 사람들이 kubectl 버전을 12.3.6으로 내리고 문제가 해결 되었다..

EKS prometheus and grafana 설치하기
AWS 2022. 2. 7. 00:12

목표 EKS Cluster를 만든다 prometheus-grafana를 install한다 grafana를 실행한다 선행 프로그램 설치 eks cluster를 만들기 위해서는 다음과 같이 4가지 install이 선행되어야 한다. 윈도우 기준으로 install하겠다. package 관리 tool은 choco를 설치 해야한다. https://chocolatey.org/install#individual windows power shell을 administrator 모드로 실행 한다. (마우스 우측 관리자 권한으로 실행) Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [Syst..

kubernetes guestbook CICD (Blue/Green 배포)
Software활용 2021. 4. 4. 21:54

guestbook 을 local에 다운로드 v1-18.docs.kubernetes.io/docs/tutorials/stateless-application/guestbook/ git clone origin https://github.com/theyoung/guestbook.git guestbook의 php lint 확인 curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - sudo apt install nodejs sudo npm i -g phplint phplint "php-redis/*.php" No syntax errors detected in php-redis/guestbook.php docker image build cd php-redi..

EKS cluster Management
AWS 2021. 3. 13. 18:23

cluster 정보 얻기 $ eksctl get nodegroup --cluster EKS-course-cluster 2021-03-13 18:08:25 [ℹ] eksctl version 0.40.0 2021-03-13 18:08:25 [ℹ] using region us-west-2 CLUSTER NODEGROUP STATUS CREATED MIN SIZE MAX SIZE DESIRED CAPACITY INSTANCE TYPE IMAGE ID ASG NAME EKS-course-cluster ng-1 CREATE_COMPLETE 2021-03-13T08:48:55Z 3 3 3 t2.small ami-01f2f1180914aad2b eksctl-EKS-course-cluster-nodegroup-ng-1-..

EKS setup and make clustering
AWS 2021. 3. 13. 17:58

아마존 상에 kubernetes를 사용하게 하는 cli를 eks 라고 할 수 있다. eks를 사용하기 위해서는 2가지 환경이 선행 되어야 한다. aws cli 설치 : 2021.02.12 - [AWS] - AWS CLI EC2 사용법 kubectl 설치 : kubeadm은 설치 하지 않아도 된다. 2021.03.04 - [Software활용] - kubernetes install on ubuntus with Hyper-V 이 2가지가 설치 되어있다는 전제로 EKS를 setup하고 AWS에 cluster를 구성하려고 한다. 공식 eks 사이트는 아래와 같다. github.com/weaveworks/eksctl weaveworks/eksctl The official CLI for Amazon EKS. Con..