본문 바로가기
반응형

OpenSource/K8s10

k8s 대쉬보드 - openlens 회사 wiki에 올렸던 포스팅인데 좋아요를 2분이나 눌러줘서 기분이 좋았던 기억이나는군요 :) 설치https://github.com/MuhammedKalkan/OpenLensMacOSbrew install --cask openlens 새로운 클러스터를 넣어주시려면 +를 눌러서 하시거나 아래처럼 하시면 됩니다.Kubectl Config를 넣어서 추가를 해주면 됩니다.Kubectl 설치(Mac) : brew install kubernetes-clikubectl config set-credentials 블라블라kubectl config set-cluster 블라블라사용을 해보니 deep하게 사용하는 유저가 아니라면 상당히 좋아보입니다.수정도 쉽고 바로 바로 클릭으로 눈에 보이니 정말 좋습니다.단, 로그는 터미.. 2024. 7. 5.
이미 올라가있는 pod unchanged일 때 이럴 경우는 재시작을 해줘야 합니다. kubectl rollout restart deployment [deployment_name] deployments를 구하려면 아래의 명령어를 통해 알아냅니다. kubectl get deployments 끝~:) 2023. 6. 25.
[k8s] error: the server doesn't have a resource type "node" 상황 kubernetes context를 연결 후 kubectl get pods 명령어 수행 시 error: the server doesn't have a resource type "pods"라는 오류 발생 원인 .kube/config 파일에 context와 user명을 임의로 변경해줬더니 발생.. cluster: acet-dev 를 acet-dev-context user: acet-dev-admin 를 teri.epi_acet-dev-context 명령어가 아닌 config 파일을 수동으로 변경을 하면서 뭔가 꼬인듯 하다.. 우선적으로 다시 원복(롤백)을 한 뒤에 다시 해보니 잘되었다. 결과 다시 kubectl get node를 하니 잘 됨.. 2022. 8. 29.
k9s 셋팅 및 사용법 k9s란? k8s(쿠버네티스) 클러스터를 제어하기 위해 보통 kubectl 을 사용하는데 오늘 한 크루가 k9s라는것을 사용하는것을 보았다. 터미널에서 제어를 하는거였는데 좀 더 편하게 쿠버네티스를 제어할 수 있다고 한다. 그래서 설치를 해보고 사용해보려고 한다. 장단점으로 k9s를 바로 사용한다면 kubctl의 명령어들에 대해서 점점 더 잊혀질 가능성이 크다. 하지만 매우 편할것 같긴하다. 일단 둘 다 사용해보는걸로 하자! 셋팅-macOS 기준 brew install k9s 명령어로 인스톨 해줍니다. brew install k9s Running `brew update --preinstall`... ==> Downloading https://ghcr.io/v2/homebrew/portable-ruby/p.. 2022. 6. 17.
helm chart storm 참고 : https://artifacthub.io/packages/helm/gresearch/storm helm chart를 통해서 아파치 스톰을 설치해보자! 쿠버네티스의 패키지를 한번에 다 설치해주기 때문에 뭐가(storm, zookeepr, ui, service, pod등) 어떻게 뜨는지 알수 있을 것이다. 당연히 k8s와 helm chart가 설치된 전제하에 아래를 보시면 됩니다. 가이드에 나온것과 같이 아래의 명령어를 쳐줍니다. $ helm repo add gresearch https://g-research.github.io/charts $ helm install my-storm gresearch/storm 원샷 원킬..이제 어떻게 띄워져있는지 보도록 하자! nimbus, supervisor, z.. 2022. 1. 19.
pv, pvc terminating 말고 완전 삭제하기! kubectl delete pv 으로 무심코 지웠는데... 완전 삭제가 아닌 terminating으로 나왔다. kubectl delete pv --grace-period=0 --force 이후 kubectl patch pv -p '{"metadata": {"finalizers": null}}' 를 해주면 완전히 삭제 된다. 2022. 1. 11.
k8s와 docker 주저리 kubernetes를 공부하다가.. 아차! 싶었다! k8s는 도커 오케스트레이션을 위해서 나온 녀석인데..도커랑 나는 친한가? 도커를 확실히 가지고 놀아야겠다는 생각을 했다. 도커를 안해본건 아니다. 프로젝트에서도 해봤지만 제대로 모르는 느낌이다. 왜 이럴까? 온전히 내께 아니라서 그런거 같다. 좀 더 도커라는 녀석과 친해져야겠다. 외울껀 외우고 생각할껀 생각하며 온전히 이해 해보자! 2021. 12. 30.
k8s 자격증? 온라인 시험이.. 300달러..!!! 개 비싸다 ㅋㅋ 열공하고 회사에서 지원해주면 도전해 볼 만할듯! ㅋㅋ www.cncf.io/certification/cka/ Certified Kubernetes Administrator (CKA) | Cloud Native Computing Foundation The Certified Kubernetes Administrator (CKA) program was created by the Cloud Native Computing Foundation (CNCF), in collaboration with The Linux Foundation, to help develop the Kubernetes ecosystem. www.cncf.io 2020. 11. 12.
repository does not exist or may require 'docker login' k8s 상황은 이러하다. 1. Dockerfile로 이미지를 만들었다. Dockerfile + docker build 명령어 -> 이미지 뿅~ docker build -t xxxx:v0.1 . 2. docker images로 만들어진 이미지를 확인. 3. docker tag로 tag변경 가능. 4. docker push로 docker hub에 push!! docker push xxxx:v0.1 k8sdev.yaml apiVersion: apps/v1 kind: Deployment metadata: name: tomcat-deployment labels: app: tomcat spec: replicas: 1 selector: matchLabels: app: tomcat template: metadata: labe.. 2020. 2. 20.
docker hub login시 error 발생! docker login시에 error가 발생 하였다. Error saving credentials: error storing credentials - err: exit status 1, out: `error storing credentials - err: exit status 1, out: `The user name or passphrase you entered is not correct. ~/.docker/config.json { "auths" : { }, "credSstore" : "osxkeychain", "credsStore" : "desktop", "stackOrchestrator" : "swarm" } 다른 사람들과 config.json의 내용 또한 달랐다. 해결 방법 first rm /usr.. 2020. 1. 29.
반응형