24개 유용한 Kubernetes 구성 내용(yaml 파일 작성)


참고 블로그: https://overcast.blog/24-kubernetes-mastersconfigurations-29235c65b337

Advanced Workload Management

  1. Affinity and Anti-Affinity
  2. Taints and Tolerations
  3. Pod Disruption Budgets (PDB)
  4. Using Init Containers for Setup Scripts
  5. Pod Topology Spread Constraints
  6. Custom Scheduler

Resource Optimization & Efficiency

  1. Horizontal Pod Autoscaler (HPA) Based on Custom Metrics
  2. Volume Snapshotting for Stateful Applications

Security Enhancements

  1. Network Policies for Enhanced Pod Communication Control
  2. Pod Security Policies (PSP)
  3. Network Policies for Egress Control
  4. Seccomp Profiles for Syscall Filtering

Efficient Cluster Management

  1. Read-Only Root Filesystems
  2. Kubernetes Secrets for Sensitive Data

Efficient Cluster Management

  1. Resource Quotas and Limit Ranges
  2. Node Affinity
  3. Auto-scaling Nodes with Cluster Autoscaler
  4. Quota Management for Namespaces
  5. Proactive Node Maintenance with Node Problem Detector
  6. PriorityClass for Workload Precedence
  7. CronJobs for Regular Tasks

Networking & Service Discovery

  1. Ingress for External Access
  2. Service Mesh with Istio
  3. ExternalDNS for Dynamic DNS Management

Best Practices:

  1. Securely manage credentials for your DNS provider, potentially using Kubernetes Secrets.
  2. Monitor ExternalDNS logs and metrics to ensure DNS records are updated as expected and troubleshoot any issues.
  3. Limit the –domain-filter to specific domains under your management to prevent accidental modifications to unrelated DNS records.

PowerShellGet Module 업데이트하기


1)어떤 모듈 버전이 설치되었는지 확인하기
Get-Module PowerShellGet -ListAvailable

2)새로운 버전으로 업데이트하기
Install-Module -Name PowerShellGet -Force -AllowClobber -repository PSGallery

3)업데이트된 모듈 확인하기
Get-Module PowerShellGet -ListAvailable
** 기존 버전과 새로운 버전이 동시에 존재한다.

4)기존 모듈 버전을 수동으로 삭제하기-1
Uninstall-Module -Name PowerShellGet -RequiredVersion 1.0.0.1 -Force
Get-Module PowerShellGet -ListAvailable

5)실패하면 아예 Module이 저장되어 있는 폴더 자체를 삭제한다
“C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1”

6)PowerShell을 다시 시작하여 업데이트된 모듈 버전 확인하기
Get-Module PowerShellGet -ListAvailable

참고 자료: https://jdhitsolutions.com/blog/powershell/9325/powershell-refresh/?utm_source=rss&utm_medium=rss&utm_campaign=powershell-refresh&fbclid=IwAR2F3v_n9fzyyME_hHqa-Kdvt_cBxScGUBGfGWoEFQzW7AqcrEKeOdJy_ns