GithubHelp home page GithubHelp logo

jjsair0412 / my_treasure_box Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 31.12 MB

Wokring WIKI and My Study history repository ,,

Smarty 2.18% Mustache 32.66% Scala 1.95% Dockerfile 0.36% Java 53.39% Shell 1.33% HTML 0.88% JavaScript 1.81% CSS 0.41% HCL 3.18% Makefile 1.85%
devops docker kuberentes openstack cloud

my_treasure_box's Introduction

My_Treasure_Box

header

☆ If this document was helpful to you, please give it a star !! ★

TO - Do - List

  1. ElasticSearch Scroll API 계념정리 및 Java에서 사용하는 방안 정리
  2. DNS Server 구축하기
  3. Kubernetes calico cni 동작원리 study

storageClass local provisioner information

Local volumes do not currently support dynamic provisioning, however a StorageClass should still be created to delay volume binding until Pod scheduling.

동적 프로비저닝이 필요할 때에는 , storageclass를 local로 생성하는것 보다 nfs 등을 사용해서 storageclass를 사용하는 편이 편합니다. local은 pv 동적 프로비저닝이 되지 않습니다.

관련 문서

known issues

1. kubeconfig file's location is not set in right direction.

The connection to the server localhost:8080 was refused - did you specify the right host or port?

  • cp kube.config file into $HOME/.kube/config
  • kubeconfig file is for each different which k8s provider systems.
    • exampe : location of rancher's kubeconfig file is /etc/rancher/rke2/rke2.yaml
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config

2. helm install

curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh

3. install kubectl in linux

first , kubectl latest releases version download

curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"

install kubectl

sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl

If you don't have root permission, you can install kubectl in ~/.local/bin directory

chmod +x kubectl
mkdir -p ~/.local/bin
mv ./kubectl ~/.local/bin/kubectl
# 그리고 ~/.local/bin 을 $PATH의 앞부분 또는 뒷부분에 추가

4. bad interpreter error

kubectl exec 명령어 변경점

  • -- 를 추가로 넣어줘야 먹힘
# before
kubectl exec -it my-pod /bin/bash

# after
kubectl exec -it my-pod -- /bin/bash

5. bad interpreter error

윈도우에서 수정한 파일을 리눅스에 옮겨서 작업할 경우 , 개행문자가 파일에 섞여들어가서 발생하는 에러

ide 툴에서 개행문자가 안들어가게끔 하는 설정을 해 두면 미리 방지 가능

해결 방안 : 관련 문서

ETC

1. K8S TLS Secret 생성 및 교체

  • tls 인증서 생성 command line
$ kubectl create secret tls ${tls-secret-name} --key ${tls-key} --cert ${tls-cert} -n ${namespace} --save-config
  • tls 인증서 yaml template 생성 command line
$ kubectl create secret tls ${tls-secret-name} --key ${tls-key} --cert ${tls-cert} -n ${namespace} --dry-run=client -o yaml > secret.yaml
  • tls 인증서 교체
$ kubectl create secret tls ${tls-secret-name} --key ${tls-key} --cert ${tls-cert} -n ${namespace} --dry-run=client -o yaml | kubectl apply -f -

my_treasure_box's People

Contributors

jjsair0412 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

preferbaik

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.