ebcarty / k8s

Kubernetes - testing related resources.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kubernetes

Testing Kubernetes resources through setting up clusters on AWS and running quick demos.

Tools

  1. kubectl command line tool lets you interact with and control Kubernetes clusters; it looks for a file named config (usually located under the $HOME/.kube directory). Cheatsheet for reference.

kubeconfig clean-up in 3 steps

  • kubectl config unset users.<mycluster_name>
  • kubectl config unset contexts.<mycluster_name>
  • kubectl config unset clusters.<mycluster_name>
  1. kops provides a way to create kubernetes clusters through the terminal.

AWS

  • export KOPS_STATE_STORE=s3://<aws_bucket_name>
  • export AWS_ACCESS_KEY_ID=$(aws configure get aws_access_key_id)
  • export AWS_SECRET_ACCESS_KEY=$(aws configure get aws_secret_access_key)

Example: kops create cluster --node-count 2 --node-size t3a.medium --master-size t3a.medium --zones us-east-1b,us-east-1c --networking cilium --cloud-labels "Team=myTeam,Owner=myName,env=T3sTing" er1ck.k8s.local

  1. helm, sometimes known as the package manager for kubernetes. Search for software packages on https://artifacthub.io/

About

Kubernetes - testing related resources.